81trust / 100

Proxy Macro Data

by Macroeconomic Data World Bank in Markets & finance

x402 APIPassing, checked 5 h ago

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_ecb_rates (default false).

POST https://agentsvc.io/api/v1/proxy/macro-data

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
39 ms typical, 39 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/macro-data" \
  -H "content-type: application/json" \
  -d '{"country":"DE","indicators":["inflation","unemployment","gdp_growth"],"years":3}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fmacro-data
const res = await pay("https://agentsvc.io/api/v1/proxy/macro-data", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"country":"DE","indicators":["inflation","unemployment","gdp_growth"],"years":3}),
});
console.log(await res.json());

Example input

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

Example output

{
  "data": {
    "checked_at": "2026-10-06T14:17:45.054Z",
    "country": "DE",
    "country_name": "Germany",
    "indicators": [
      {
        "code": "FP.CPI.TOTL.ZG",
        "country_name": "Germany",
        "history": [
          {
            "value": 2.17178770949721,
            "year": 2025
          },
          {
            "value": 2.2564981433876,
            "year": 2024
          }
        ],
        "indicator": "inflation",
        "label": "Inflation, consumer prices (annual %)",
        "latest": {
          "value": 2.17178770949721,
          "year": 2025
        }
      },
      {
        "code": "SL.UEM.TOTL.ZS",
        "country_name": "Germany",
        "history": [
          {
            "value": 3.711,
            "year": 2025
          },
          {
            "value": 3.4,
            "year": 2024
          }
        ],
        "indicator": "unemployment",
        "label": "Unemployment (% of labor force, ILO)",
        "latest": {
          "value": 3.711,
          "year": 2025
        }
      }
    ],
    "source": "World Bank Open Data"
  },
  "success": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40239 ms$0.006