> For the complete documentation index, see [llms.txt](https://docs.growthepie.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growthepie.com/recipes-tutorials/recipes/fetch-growthepie-data-in-js-ts.md).

# Fetch growthepie Data In JS Or TS

This recipe fetches `master.json` and prints the supported metrics for `arbitrum`. Use this recipe when you want discovery metadata inside a browser app, Node.js tool, or TypeScript project.

## Example

```ts
const url = "https://api.growthepie.com/v1/master.json";

const response = await fetch(url);
if (!response.ok) {
  throw new Error(`Request failed with status ${response.status}`);
}

const master = await response.json();
console.log(master.chains.arbitrum.supported_metrics);
```

## Related Pages

* [Endpoint: master.json](/api-reference/api/master-json.md)
* [Choose The Right Endpoint](/getting-started/getting-started/choose-the-right-endpoint.md)
