GET/v1/states/{state}/counties
The counties in a state (paginated).
[ OPTIONS ]
| Name | Type | Required | Description |
|---|---|---|---|
state | string (path) | Yes | USPS state code, full name, or FIPS (e.g. NC). |
page | integer | No | Page number (default 1). |
per_page | integer | No | Results 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
}
}
}[ TRY IT ]Open playground →
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.
[ MORE IN STATES ]
