Skip to content
Fourohtwo

agentsvc.io/api/v1/proxy/macro-data

Macroeconomic indicators per country from World Bank Open Data with yearly history: inflation, GDP, GDP growth, GDP per capita, unemployment, population, government debt, current account, exports, lending rate. Optionally current ECB policy rates. Params: country (ISO2 or ISO3, required), indicators (default inflation, gdp, gdp_growth, unemployment, population), years (1 to 20, default 5), include

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/macro-data

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentsvc.io/api/v1/proxy/macro-data", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"years":3,"country":"DE","indicators":["inflation","unemployment","gdp_growth"]}),
});
console.log(await res.json());

Example input

{
  "years": 3,
  "country": "DE",
  "indicators": [
    "inflation",
    "unemployment",
    "gdp_growth"
  ]
}