# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.growthepie.com/recipes-tutorials/recipes/fetch-growthepie-data-in-js-ts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
