# 1gateway US Macro Time Series

> 1gateway US Macro Time Series is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-30).

Fetches US macroeconomic time series data (unemployment, CPI, payrolls, Treasury rates, etc.) from BLS and US Treasury Fiscal Data sources

## Facts

- Endpoint: GET https://1gateway.dev/v1/macro/us?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-us-macro-time-series-ed79930a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eEfI_6wN0zEhBJSduHsRC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 1gateway-us-macro-time-series-ed79930a
```

Example prompt: Can you pull the US CPI time series starting from 2022 so I can see how inflation has trended over the past few years?

## When to prefer this

Use this endpoint when you need clean, structured US macroeconomic time series data with clear attribution and consistent JSON output, especially for BLS labor statistics or US Treasury debt/rate series. Prefer it over scraping government websites or calling BLS/Treasury APIs directly, as it handles formatting, caching, and normalization. It pairs well with the sibling Korea Bank of Korea endpoint for cross-country macro comparisons.

## Known failure modes

- Invalid or unsupported series identifier returns an error
- Date range exceeding 10 years is rejected
- Start year before 1990 is rejected
- Missing required 'series' parameter returns a 400 error
- Upstream BLS or Treasury data temporarily unavailable may cause 5xx errors

## How this service works

Use when you need a US macro time series (pairs with Korea's Bank of Korea series). Input: series (unemployment_rate, cpi, core_cpi, payrolls, avg_hourly_earnings, ppi, public_debt, avg_rate_bills, avg_rate_notes, avg_rate_bonds), optional start, end (years, max 10-year span, default last 3 years). Output: JSON title, unit, frequency, observations [{period,value}], latest and source attribution. Data: BLS and US Treasury Fiscal Data. Example: ?series=cpi&start=2024

## Output

A JSON object containing the series name, title, unit, frequency, start/end years, observation count, an array of period-value pairs (e.g. monthly or annual data points), the latest data point, the upstream series ID, cache info, and source attribution from BLS or US Treasury Fiscal Data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "series"
     ],
     "properties": {
      "end": {
       "type": "string",
       "pattern": "^\\d{4}$",
       "description": "End year (default current year)"
      },
      "start": {
       "type": "string",
       "pattern": "^\\d{4}$",
       "description": "Start year (default end-2, min 1990)"
      },
      "series": {
       "enum": [
        "unemployment_rate",
        "cpi",
        "core_cpi",
        "payrolls",
        "avg_hourly_earnings",
        "ppi",
        "public_debt",
        "avg_rate_bills",
        "avg_rate_notes",
        "avg_rate_bonds"
       ],
       "type": "string",
       "description": "Series id (see enum; BLS or Treasury)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "series",
      "title",
      "unit",
      "frequency",
      "start",
      "end",
      "latest",
      "count",
      "observations",
      "upstreamSeriesId"
     ],
     "properties": {
      "end": {
       "type": "integer"
      },
      "unit": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "start": {
       "type": "integer"
      },
      "title": {
       "type": "string"
      },
      "latest": {
       "type": "object",
       "properties": {
        "value": {
         "type": "number"
        },
        "period": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "series": {
       "type": "string"
      },
      "frequency": {
       "type": "string"
      },
      "observations": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "value": {
          "type": "number"
         },
         "period": {
          "type": "string"
         }
        },
        "additionalProperties": true
       }
      },
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-us-macro-time-series-ed79930a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
