# 2s.io US Census ACS 5-Year Demographics by ZIP Code

> 2s.io US Census ACS 5-Year Demographics by ZIP Code is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns detailed US Census ACS 5-year demographic data for a given 5-digit ZIP code (ZCTA), including population, income, poverty, race, education, workforce, and housing statistics.

## Facts

- Endpoint: GET https://2s.io/api/census/zipcode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-68e4ab10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bVQo3OeQR0w9_6172vAXQ

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 2s-io-68e4ab10
```

Example prompt: What are the demographics for ZIP code 94103 — population, median household income, poverty rate, and racial breakdown?

## When to prefer this

Use this endpoint when you need rich, multi-dimensional US Census ACS demographic data for a specific ZIP code in a single call. Prefer this over raw Census API calls because it pre-ingests ~33k ZCTAs and computes derived metrics (unemployment rate, owner-occupancy rate). Ideal for enriching address data, building demographic profiles for market research, underwriting, site selection, or social analysis.

## Known failure modes

- Invalid ZIP format (not exactly 5 digits) — schema validation error
- ZIP code not found in ZCTA database (rural or non-residential ZIPs may lack census data)
- Service unavailable during annual data refresh
- Payment failure via x402 protocol

## How this service works

US Census ACS 5-year demographics for a ZIP code (ZCTA). Returns population, median age, median household income, poverty rate, household composition, race + ethnicity breakdown, education attainment, workforce (with computed unemployment rate), and housing (with computed owner-occupancy rate and median rent/home value). Backed by ~33k ZCTAs pre-ingested from api.census.gov; refreshed annually. Public-domain US government data.

## Output

A structured JSON object containing ACS 5-year estimates for the requested ZIP code (ZCTA), including: total population, median age, median household income, poverty rate, household composition, full race and ethnicity breakdown, education attainment levels, workforce size with computed unemployment rate, and housing data with owner-occupancy rate, median rent, and median home value. Data is sourced from ~33k pre-ingested ZCTAs refreshed annually.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "zip": "10001"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "zip"
     ],
     "properties": {
      "zip": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-68e4ab10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
