# US Census API on SandBase

> US Census data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/censusdata-xyz

- Endpoints: 2
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [US Census Explore Variables](https://www.sandbase.ai/apis/censusdata-xyz/explore-variables.md): From $0 per call
  Discover which US Census variables exist for a topic keyword.
- [US Census Query](https://www.sandbase.ai/apis/censusdata-xyz/query.md): $0.01 per call
  Ask any US Census question in plain English for a state, county, city, metro area, or ZIP code.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
