Convert a ZIP code to Census tract, county, or CBSA geography using the HUD-USPS ZIP Code Crosswalk API

domain: huduser.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register for a HUD USER account and request access to the USPS Crosswalk Datasets API
  2. Obtain a bearer access token from the account dashboard
  3. Call GET https://www.huduser.gov/hudapi/public/usps with type (e.g. zip-tract, zip-county, zip-cbsa), query (ZIP or GEOID), and year/quarter parameters
  4. Read the returned residential/business/other address ratios to weight the ZIP-to-geography allocation correctly
  5. Re-pull quarterly, since crosswalk files are refreshed each quarter as USPS ZIP boundaries change

Known gotchas

Related routes

Geocode US addresses in batch using the Census Bureau Geocoding Services REST API
census.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans