Docs/APIs/Reverse Geocode

Reverse Geocode

Get location US from coordinates

OperationalCredits 6 per callp50 846msGeographyStar

Overview

A reverse geocoding API for US and Canadian coordinates. Reverse Geocode works by converting the latitude and longitude coordinates into a human-readable address. Only supports USA and Canada Coordinates. It uses advanced algorithms and a large database of locations to provide accurate and up-to-date information.

Live Test Reverse Geocode API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/reversegeocode
curl "https://api.apiverve.com/v1/reversegeocode?lat=40.714224&lon=-73.961452" \
  -H "x-api-key: your_api_key_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
latRequirednumberThe latitude of the coordinates
range -90–90
lonRequirednumberThe longitude of the coordinates
range -180–180

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "zipcode": "11211",
    "state_abbr": "NY",
    "city": "Brooklyn",
    "state": "New York",
    "distance": 0.6501757300758664,
    "latitudeClosest": "40.712090",
    "longitudeClosest": "-73.95427",
    "countryCode": "US",
    "latitude": 40.714224,
    "longitude": -73.961452,
    "estimatedCity": true,
    "nearestCities": [
      "Brooklyn",
      "Brooklyn Park",
      "East Brooklyn",
      "Brooklyn Center",
      "Brooklyn Heights"
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
zipcodestring"11211"ZIP code for the location
state_abbrstring"NY"Two-letter state abbreviation code
citystring"Brooklyn"Primary city name at coordinates
statestring"New York"Full state name
distancePremiumnumber0.6501757300758664Distance to closest coordinates in miles
latitudeClosestPremiumstring"40.712090"Latitude of closest mapped coordinate
longitudeClosestPremiumstring"-73.95427"Longitude of closest mapped coordinate
countryCodestring"US"ISO country code for location
latitudenumber40.714224Input latitude coordinate
longitudenumber-73.961452Input longitude coordinate
estimatedCityPremiumbooleantrueWhether city is estimated or exact match
nearestCitiesPremiumarray[Brooklyn, ...]List of nearby cities ordered by proximity

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

Use cases

Fleet Telematics Tracking
Logistics systems match vehicle GPS pings against city and state boundaries to generate human-readable trip summaries for dispatchers.
Mobile Photo Geotagging
Camera apps read coordinate metadata from uploaded photos to display the city and state where each picture was taken.
Delivery Address Autofill
When a customer shares device coordinates at checkout, ecommerce apps automatically populate the city, state, and ZIP code fields.
Field Service Dispatch
To assign incoming repair tickets, maintenance platforms convert technician coordinates into local municipality names and postal codes.

Other ways to use Reverse Geocode

Set up Reverse Geocode on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Geography:

Was this page helpful?