Atlasblock API

GET/v1/states/{state}/counties

The counties in a state (paginated).

[ OPTIONS ]
NameTypeRequiredDescription
statestring (path)YesUSPS state code, full name, or FIPS (e.g. NC).
pageintegerNoPage number (default 1).
per_pageintegerNoResults per page (default 25, max 100).
[ EXAMPLE REQUEST ]
curl "https://atlasblock.dev/api/v1/states/NC/counties"
[ 200 OK ]
{
  "status": "success",
  "data": {
    "state": "NC",
    "counties": [
      {
        "county_fips": "37119",
        "county": "Mecklenburg County",
        "state": "NC",
        "population": 1115482,
        "zip_count": 108
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total": 100,
      "total_pages": 4
    }
  }
}
GET/v1/states/NC/counties
[ PATH ]
[ QUERY ]
[ CURL ]
curl "https://atlasblock.dev/api/v1/states/NC/counties" \
  -H "Authorization: Bearer $ATLASBLOCK_API_KEY"
[ EVERY REQUEST ]

Send an Authorization: Bearer key against the base URL https://atlasblock.dev/api. Every call counts toward your plan quota. See the overview for authentication, rate limits, and status codes.