# US Demographic Intelligence

> US Demographic Intelligence is a paid API for AI agents from agent-vending-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Query U.S. demographic, economic, education, labor, housing, and population statistics by geography using Census ACS data, with support for snapshots, comparisons, trends, and metric catalogs.

## Facts

- Endpoint: POST https://agent-vending-production.up.railway.app/v1/us-demographics?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-demographic-intelligence-de816b80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2aPqx58HHQU_4XdS9zUnN

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 us-demographic-intelligence-de816b80 -d '<json body>'
```

Example prompt: Give me a snapshot of demographic and economic stats for Travis County, Texas — I want total population, poverty rate, and median household income from the 2023 ACS 5-year release.

## When to prefer this

Choose this endpoint when you need structured U.S. Census ACS demographic, economic, housing, or labor statistics for specific geographies — especially when you need margins of error, multi-year trends, or geographic comparisons in a single normalized JSON response. Prefer this over raw Census API access when you want pre-normalized, LLM-ready output with source metadata already included. Best for research, policy analysis, real estate intelligence, market sizing, and civic data workflows.

## Known failure modes

- Unsupported geography type or misspelled place name returns an error
- Requested metric ID not found in the ACS catalog returns a validation error
- ACS data not available for requested year returns a not-found response
- Invalid mode/geography combination (e.g. compare mode with single geography) returns a schema validation error
- Rate limit or payment failure returns a 402 or 429 error

## How this service works

Pay-per-call machine utilities for autonomous agents.

## Output

Returns structured JSON containing normalized Census ACS estimates for the requested metrics and geography, including margins of error, trend data across years when requested, side-by-side comparisons between geographies, methodology notes, ACS release metadata, and source attribution. Metric values are normalized and human-readable with confidence intervals.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "snapshot",
    "compare",
    "trend",
    "catalog"
   ],
   "type": "string",
   "description": "Query mode."
  },
  "years": {
   "type": "array",
   "items": {
    "type": "integer"
   }
  },
  "metrics": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Friendly metric ids (e.g. total_population, poverty_rate)."
  },
  "release": {
   "type": "integer",
   "description": "ACS5 release year (e.g. 2023)."
  },
  "geography": {
   "type": "object",
   "description": "Target geography for snapshot/trend (type + name; state/county as needed)."
  },
  "geographies": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Exactly two geographies for compare mode."
  },
  "observations": {
   "type": "integer"
  },
  "allow_overlapping": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "snapshot",
  "notice": "This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau.",
  "metrics": [
   {
    "moe": null,
    "usable": true,
    "estimate": 39242785,
    "metric_id": "total_population"
   }
  ],
  "geography": {
   "fips": {
    "state": "06"
   },
   "geo_type": "state",
   "display_name": "California"
  },
  "price_usd": 0.01,
  "experiment": "LIMITED_PRODUCTION",
  "product_name": "US Demographic Intelligence"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-demographic-intelligence-de816b80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-vending-production.up.railway.app](https://www.zero.xyz/host/agent-vending-production.up.railway.app/llms.txt)
