# US macro data API: pay per call with x402

> US macro data API for AI agents: 11 official US macro series (BLS and Treasury) from official sources, $0.006 per call in USDC on Base with x402. No account or API key.

Pay per call for 11 official US macro series (BLS and Treasury) with [x402](/pricing/): no account and no API key. An x402 client gets a `402 Payment Required` answer with the price, pays in USDC on Base, and repeats the request.

## `GET /v1/macro/{series}`

**$0.006 per call** in USDC on Base. Returns one official macro series document (BLS CPI-U all items or unemployment rate, seasonally adjusted) with points and source URL. Series are included only when the source terms allow resale. Charged only when at least one record comes back; errors and empty results are free.

An unpaid call answers `402 Payment Required`:

```bash
curl -i "https://api.belfortagent.xyz/v1/macro/cpi_u_all_items_sa"
```

The `PAYMENT-REQUIRED` header, base64-decoded (trimmed to the payment terms):

```json
{
  "x402Version": 2,
  "resource": {
    "url": "https://api.belfortagent.xyz/v1/macro/cpi_u_all_items_sa"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "6000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x80bEF165f2895539CfEcd74A7949A88e576e5E09",
      "maxTimeoutSeconds": 60
    }
  ]
}
```

## Details

- Every field, parameter and error: [US macro data](/datasets/macro/).
- Machine-readable: the API's [OpenAPI document](https://api.belfortagent.xyz/openapi.json) (`x-payment-info` on each paid route) and [`/.well-known/x402`](https://api.belfortagent.xyz/.well-known/x402).
- With an API key and card credits instead: [Pricing](/pricing/).

---
Source: https://docs.belfortagent.xyz/x402/macro/
