Pushbuild

US Government Directory API – Every Public Entity by Federal ID

Counties, cities, townships, special districts, schools, libraries, police, fire, hospitals, colleges, transit, tribes and water systems in one directory, keyed to federal IDs.

$0.80 per 1,000 entities

Get an API key

Example request

POST /us-government-directory/run
{
  "maxItems": 20
}

What it returns

One directory of US public entities that are otherwise spread across federal datasets: counties, municipalities, townships, special districts, school districts, schools, libraries, police agencies, fire stations, hospitals, colleges, transit agencies, tribes, metropolitan planning organizations, public water systems and historical societies.

Search by name, type, state, county, city, federal ID or distance from a point, or list what sits inside a parent entity. Each row has its federal ID and ID system, parent entity, source, and whatever location and contact details the source has.

Coverage varies by type, so blanks are common: only some types have coordinates, phones or websites. Sources were last refreshed in October 2026. websiteGuessed marks a website we inferred rather than found in a source. Water systems leave out phone and street address.

Charged per entity returned.

Request

POST https://api.pushbuild.com/us-government-directory/run with a JSON body. Send your key in the X-API-Key header.

FieldTypeDescription
namestringPart of the entity's name.
entityTypeslist of stringscounty, municipality, township, special_district, school_district, school, library, library_outlet, police_agency, fire_station, hospital, college, transit_agency, tribe, mpo, water_system, historical_society, state.
stateslist of stringsTwo-letter codes, e.g. FL, TX.
countyFipslist of stringsFive-digit county FIPS codes. Not filled in for every entity type.
citystringExact city name.
idslist of stringsDirectory IDs or federal IDs (NCES, PWSID, FSCS, CCN, IPEDS, GEOID-based).
parentIdstringDirectory ID of a parent, e.g. mun:1254075, to list what sits inside it.
latnumberSearch near a point. Only entities with coordinates match.
lonnumberSearch near a point.
radiusMilesnumberUsed with latitude and longitude. Default: 10.
hasWebsitebooleanOnly entities with a website. Default: false.
hasPhonebooleanOnly entities with a phone number. Default: false.
maxItemsintegerMaximum items to return (1-500). Default: 100.

Example

curl -X POST https://api.pushbuild.com/us-government-directory/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"maxItems": 20}'

Response

{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

Pricing

Pay only for results returned: $0.80 per 1,000 entities. No charge for errors or empty searches.

Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: https://api.pushbuild.com/mcp/us-government-directory. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.

Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

hello@pushbuild.com

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.

Want this data inside your own app or CRM? API integrations and data sync