A

Agentdatum · US Macro

by Agentdatum

GETBase

$0.01

per call · USD Coin on Base

🇺🇸 US MACRO SNAPSHOT — GDP, GDP growth, CPI inflation, unemployment rate, population, trade balance. Sourced from World Bank open data. The world's largest economy at your fingertips. 💎【付款后立得】实时结构化JSON,即插即用——无需注册,USDC一键支付即取数据。

Endpoint

GET https://agentdatum.com/api/v1/us/macro

6

Calls / 30d

3

Unique payers / 30d

Aug 28

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentdatum.com/api/v1/us/macro", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agentdatum.com/api/v1/us/macro?method=GET" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "cpi_yoy_pct": 2.9,
  "gdp_usd_trillions": 29.4,
  "population_millions": 335,
  "trade_balance_usd": -918,
  "unemployment_rate_pct": 3.9
}

Payment details

Pay to0xcd265870a20db25250535cb8a0d3bb0850417902
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Agentdatum & similar services