Atlasblock API

GET/v1/zips/reverse-geocode

Find the nearest zip to a latitude/longitude.

[ OPTIONS ]
NameTypeRequiredDescription
latnumberYesLatitude of the point.
lngnumberYesLongitude of the point.
[ EXAMPLE REQUEST ]
curl "https://atlasblock.dev/api/v1/zips/reverse-geocode?lat=35.2079&lng=-80.8534"
[ 200 OK ]
{
  "status": "success",
  "data": {
    "query": {
      "latitude": 35.2079,
      "longitude": -80.8534
    },
    "location": {
      "zip": "28203",
      "city": "Charlotte",
      "state": "NC",
      "county_fips": "37119",
      "distance_miles": 0
    }
  }
}
GET/v1/zips/reverse-geocode?lat=35.2079&lng=-80.8534
[ QUERY ]
[ CURL ]
curl "https://atlasblock.dev/api/v1/zips/reverse-geocode?lat=35.2079&lng=-80.8534" \
  -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.