For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fetch growthepie Data In JS Or TS

Use JavaScript or TypeScript fetch to load growthepie data.

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

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

Last updated