POST/v1/crime/compare
Compare violent and property crime across zips and/or counties.
[ OPTIONS ]
| Name | Type | Required | Description |
|---|---|---|---|
zips | string[] (body) | No | Up to 25 zips. |
county_fips | string[] (body) | No | Up to 25 county FIPS. |
[ EXAMPLE REQUEST ]
curl -X POST "https://atlasblock.dev/api/v1/crime/compare" \ -H "Content-Type: application/json" \ -d '{"zips":["28203","10001"]}'
[ 200 OK ]
{
"status": "success",
"data": {
"count": 2,
"results": [
{
"zip": "28203",
"county_fips": "37119",
"state": "NC",
"valid": true,
"violent_crime_rate": 643.3,
"property_crime_rate": 3535.8,
"year": 2023
}
]
}
}[ TRY IT ]Open playground →
POST/v1/crime/compare
[ BODY · JSON ]
zips· string[] (body) — Up to 25 zips.county_fips· string[] (body) — Up to 25 county FIPS.
[ CURL ]
curl -X POST "https://atlasblock.dev/api/v1/crime/compare" \ -H "Authorization: Bearer $ATLASBLOCK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"zips":["28203","10001"]}'
[ 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 CRIME ]
