US Census Bureau API
Returns the Census Bureau's data set catalog and variable lists, address geocoding to coordinates, and the state, county, tract and block that hold a point.
View as Markdown| GET | /census/datasets | Census Bureau data sets (American Community Survey, Current Population Survey, economic censuses and more) by year, found by a text query: id, title and description of each. |
| GET | /census/variables | Variables of one Census data set, such as the population total of an American Community Survey table, found by a text query: name, label, concept and group. |
| GET | /census/geocode | Matches a US street address, written on one line, to its standard form and coordinates, from the Census Geocoder. An address with no match gives an empty list. |
| GET | /census/geographies | The census state, county, census tract and census block of a point in the US, from its latitude and longitude (Census Geocoder). |
datasets
/v1/census/datasetsCensus Bureau data sets (American Community Survey, Current Population Survey, economic censuses and more) by year, found by a text query: id, title and description of each.
Parameters
querystring | Words to find in a data set's title, description or path, such as "american community survey". e.g. american community survey 5-year |
vintageinteger | Only the data sets of this year, such as 2022. e.g. 2022 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 500. default 50e.g. 5 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
description | string |
id | string |
microdata | boolean |
modifiedDate | string |
path | string |
title | string |
variablesUrl | string |
vintage | any |
curl "https://api.hoshime.com/v1/census/datasets?query=american+community+survey+5-year&vintage=2022&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/census/datasets?query=american+community+survey+5-year&vintage=2022&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/census/datasets?query=american+community+survey+5-year&vintage=2022&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "id": "abc123", "microdata": false, "modifiedDate": "…", "path": "…", "title": "…", "variablesUrl": "https://…", "vintage": null } ], "meta": { "cached": false, "endpoint": "datasets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "census", "requestId": "req_2Xb9kQ…", "units": 1 } }
variables
/v1/census/variablesVariables of one Census data set, such as the population total of an American Community Survey table, found by a text query: name, label, concept and group.
Parameters
datasetstring required | Data set id: the vintage year and the path, such as 2022/acs/acs5. census/datasets lists them. e.g. 2022/acs/acs5 |
querystring | Words to find in a variable's name, label or concept, such as "total population". e.g. B01003 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 1000. default 100e.g. 5 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
concept | string |
group | string |
label | string |
name | string |
predicateType | string |
curl "https://api.hoshime.com/v1/census/variables?dataset=2022%2Facs%2Facs5&query=B01003&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/census/variables?dataset=2022%2Facs%2Facs5&query=B01003&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/census/variables?dataset=2022%2Facs%2Facs5&query=B01003&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "concept": "…", "group": "…", "label": "…", "name": "…", "predicateType": "…" } ], "meta": { "cached": false, "endpoint": "variables", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "census", "requestId": "req_2Xb9kQ…", "units": 1 } }
geocode
/v1/census/geocodeMatches a US street address, written on one line, to its standard form and coordinates, from the Census Geocoder. An address with no match gives an empty list.
Parameters
addressstring required | One-line US street address, such as 4600 Silver Hill Rd, Washington, DC 20233. e.g. 4600 Silver Hill Rd, Washington, DC 20233 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
city | string |
latitude | number (double) |
longitude | number (double) |
matchedAddress | string |
state | string |
tigerLineId | string |
zip | string |
curl "https://api.hoshime.com/v1/census/geocode?address=4600+Silver+Hill+Rd%2C+Washington%2C+DC+20233" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/census/geocode?address=4600+Silver+Hill+Rd%2C+Washington%2C+DC+20233", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/census/geocode?address=4600+Silver+Hill+Rd%2C+Washington%2C+DC+20233", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "city": "…", "latitude": 0, "longitude": 0, "matchedAddress": "…", "state": "…", "tigerLineId": "abc123", "zip": "…" } ], "meta": { "cached": false, "endpoint": "geocode", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "census", "requestId": "req_2Xb9kQ…", "units": 1 } }
geographies
/v1/census/geographiesThe census state, county, census tract and census block of a point in the US, from its latitude and longitude (Census Geocoder).
Parameters
latitudestring required | Latitude in decimal degrees, -90 to 90, such as 38.8977. e.g. 38.8977 |
longitudestring required | Longitude in decimal degrees, -180 to 180, such as -77.0365. e.g. -77.0365 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
block | Area |
geoId | string |
name | string |
county | Area |
geoId | string |
name | string |
state | Area |
geoId | string |
name | string |
tract | Area |
geoId | string |
name | string |
curl "https://api.hoshime.com/v1/census/geographies?latitude=38.8977&longitude=-77.0365" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/census/geographies?latitude=38.8977&longitude=-77.0365", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/census/geographies?latitude=38.8977&longitude=-77.0365", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "block": { "geoId": "abc123", "name": "…" }, "county": { "geoId": "abc123", "name": "…" }, "state": { "geoId": "abc123", "name": "…" }, "tract": { "geoId": "abc123", "name": "…" } }, "meta": { "cached": false, "endpoint": "geographies", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "census", "requestId": "req_2Xb9kQ…", "units": 1 } }