# red-web-utils Census Stats

> red-web-utils Census Stats is a paid API for AI agents from red-web-utils.agent-tools-x402.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-04).

Fetches U.S. Census statistics for a given URL or geographic entity, returning demographic and population data via a pay-per-call API.

## Facts

- Endpoint: POST https://red-web-utils.agent-tools-x402.workers.dev/api/census/stats?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/red-web-utils-census-stats-f2abdd17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lZ6X_JtJNpV8QIx3ADeOY

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 red-web-utils-census-stats-f2abdd17 -d '<json body>'
```

Example prompt: Can you pull census statistics for Travis County, Texas — I need population and demographic data from the Census Bureau?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to U.S. Census Bureau statistics without managing Census API keys directly. It is ideal for AI agents that need lightweight, on-demand demographic lookups billed in USDC micro-payments via x402 protocol. Prefer alternatives (direct Census API) for high-volume batch queries where per-call cost would accumulate.

## Known failure modes

- Invalid or malformed URL input returns a 400 error
- Census endpoint not found or unavailable returns a 404 or empty response
- Payment not received or insufficient USDC balance triggers a 402 Payment Required response
- Rate limiting or upstream Census Bureau API downtime may cause timeouts
- Unsupported geographic entity or census table returns empty or error response

## How this service works

Pay-per-call web and onchain utilities for AI agents (MPP + x402, USDC on Base).

## Output

Returns U.S. Census Bureau statistics corresponding to the queried URL or geographic reference, including demographic figures such as population counts, household data, income levels, and other census variables available for the specified area.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/red-web-utils-census-stats-f2abdd17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from red-web-utils.agent-tools-x402.workers.dev](https://www.zero.xyz/host/red-web-utils.agent-tools-x402.workers.dev/llms.txt)
