Skip to content

US Census Bureau API

4 endpointsGovernment & Open DataUSsocial:read

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/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.
GET/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.
GET/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.
GET/census/geographiesThe census state, county, census tract and census block of a point in the US, from its latitude and longitude (Census Geocoder).

datasets

GET/v1/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.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
Words to find in a data set's title, description or path, such as "american community survey".
e.g. american community survey 5-year
vintage
integer
Only the data sets of this year, such as 2022.
e.g. 2022
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 500.
default 50e.g. 5
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
idstring
microdataboolean
modifiedDatestring
pathstring
titlestring
variablesUrlstring
vintageany
curl "https://api.hoshime.com/v1/census/datasets?query=american+community+survey+5-year&vintage=2022&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 hpaginated

Parameters

dataset
string
required
Data set id: the vintage year and the path, such as 2022/acs/acs5. census/datasets lists them.
e.g. 2022/acs/acs5
query
string
Words to find in a variable's name, label or concept, such as "total population".
e.g. B01003
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 1000.
default 100e.g. 5
tunnel
string
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.
proxy
string
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.
profileId
string
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
conceptstring
groupstring
labelstring
namestring
predicateTypestring
curl "https://api.hoshime.com/v1/census/variables?dataset=2022%2Facs%2Facs5&query=B01003&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 hpaginated

Parameters

address
string
required
One-line US street address, such as 4600 Silver Hill Rd, Washington, DC 20233.
e.g. 4600 Silver Hill Rd, Washington, DC 20233
tunnel
string
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.
proxy
string
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.
profileId
string
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
citystring
latitudenumber (double)
longitudenumber (double)
matchedAddressstring
statestring
tigerLineIdstring
zipstring
curl "https://api.hoshime.com/v1/census/geocode?address=4600+Silver+Hill+Rd%2C+Washington%2C+DC+20233" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/census/geographies

The census state, county, census tract and census block of a point in the US, from its latitude and longitude (Census Geocoder).

scope social:read1 unitcached 24 h

Parameters

latitude
string
required
Latitude in decimal degrees, -90 to 90, such as 38.8977.
e.g. 38.8977
longitude
string
required
Longitude in decimal degrees, -180 to 180, such as -77.0365.
e.g. -77.0365
tunnel
string
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.
proxy
string
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.
profileId
string
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
blockArea
geoIdstring
namestring
countyArea
geoIdstring
namestring
stateArea
geoIdstring
namestring
tractArea
geoIdstring
namestring
curl "https://api.hoshime.com/v1/census/geographies?latitude=38.8977&longitude=-77.0365" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open