Consume the Aave Address Book via JSON API
mainThe address book is available as static JSON files for programmatic access. You can fetch the manifest.json to discover available modules and their paths, then fetch the specific module JSON file.
const manifestUrl =
"https://aave-dao.github.io/aave-address-book/api/v1/manifest.json";
const manifest = await fetch(manifestUrl).then((response) => response.json());
const ethereum = manifest.modules.find(
(module: { name: string }) => module.name === "AaveV3Ethereum",
);
const addresses = await fetch(new URL(ethereum.path, manifestUrl)).then(
(response) => response.json(),
);