US Census Query

API docs
https://api.sandbase.ai/v1/api/censusdata-xyz/query

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

Price
$0.01USD / call
Method
POST
Response
Async JSON
Parameters
1 required · 0 optional

Playground

Input
A natural-language US Census question. Specify the indicators, geographies (states, counties, cities/places, or ZIP codes), and years of interest in plain English. Examples: 'What is the poverty rate in Chicago, IL?'; 'Compare the median household income and work from home percentage in Seattle, WA and Portland, OR in 2022.'; 'Which counties in Washington state have the highest bachelor's degree percentages?'
OutputReady

Your output will appear here

Complete the inputs, then click Run.

API README

US Census Query

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

Explore more

Related APIs

All APIs
APIPriceResponse
US Census$0.01 per callAsync JSON
US CensusFrom $0 per callAsync JSON

Questions

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.