/jurisdictionAPI keyList governments
Which governments exist, with their Census identity.
Every filter here is a real column. The two that are not yet, has_zoning and coverage_tier, refuse rather than return an unfiltered list.
Operation ID list_jurisdiction_jurisdiction_get
Parameters
query
- qstring | null
- Name match, case and punctuation insensitive.
- statestring | null
- Two-letter postal code or two-digit state FIPS.
- countystring | null
- County FIPS, 3 or 5 digits, or a county's own id.
- typestring | null
- place_type: city, town, township, county.
- level"state" | "county" | "cousub" | "place" | null
- Census level.
- fipsstring | null
- A fips_key (us:place:2637000) or a bare code with
level. - population[gte]integer | null
- No description.
- population[lte]integer | null
- No description.
- has_zoningboolean | null
- Needs the coverage layer (M3).
- coverage_tierstring | null
- Needs the coverage layer (M3).
- sortstring | null
- name, population, fips, created_at. Prefix - to reverse.
- sizeinteger | null
- No description.
- cursorstring | null
- From a previous page's next_cursor.
- totalboolean
- Include a match count. First page only.
Responses
- 200
- Collection_Jurisdiction_
- Successful Response
- 422
- HTTPValidationError
- Validation Error
Example request
curl -X GET 'http://localhost:8000/jurisdiction?state=NC&size=50' \
-H 'X-API-Key: $PLACESTACK_API_KEY'Example response
{
"item": [
{
"id": "<Id>",
"slug": "<Slug>",
"name": "<Name>",
"fips": "<Fips>",
"lifecycle_status": "<Lifecycle Status>",
"legal_name": "string",
"type": "string",
"gnis_id": "string",
"population": 1,
"population_year": 1
}
],
"page": {
"size": 1,
"next_cursor": "string",
"suppressed": 0,
"total": "<paging__Total>"
}
}