# US Census Query API

> Ask any US Census question in plain English for a state, county, city, metro area, or ZIP code.

Source: https://www.sandbase.ai/apis/censusdata-xyz/query
API reference: https://www.sandbase.ai/apis/censusdata-xyz/query#api

## Facts

- Provider: US Census
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/censusdata-xyz/query`
- Price: $0.01 per call
- Capabilities: api, censusdata xyz, demographics
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/censusdata-xyz/query` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | yes |  |

## FAQ

### How do I use the US Census Query API?

Send a POST request to https://api.sandbase.ai/v1/api/censusdata-xyz/query with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the US Census Query API cost?

$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the US Census Query API accept?

Required: q (string). The Parameters table and the Playground on this page list every field.

### What does the US Census Query API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

### Do I need a US Census developer account or API key?

No. US Census Query runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for US Census API access separately.

## README

### US Census Query

Ask any US Census question in plain English for a state, county, city, metro area, or ZIP code.
