Reverse geocoding API for accurate lat long to address conversion
Retrieve complete address details, including country, state, city, district, street, postal code, and house number, as clean JSON.
Ambee aggregates raw environmental data from satellite and ground observations, meteorological models, historical datasets, and emission inventories.
Station-only
Satellite-only
Model-only
High
Low
High
High
High
Medium
Low
Medium
High
Medium
Medium
High
Yes
No
No
Some
Full
Limited
No
Limited
Retrieve complete address details, including country, state, city, district, street, postal code, and house number, as clean JSON.
Ambee’s Reverse Geocoding API helps applications convert latitude and longitude coordinates into structured, human-readable address data. The API accepts geographic coordinates and returns detailed location information as JSON.
For example, coordinates 42.66548262280807, -73.79192663186527 resolve to 723 Yates St, Albany, NY 12208, United States, making it easier for systems to transform raw GPS data into meaningful geographic context.
With global coverage and scalable infrastructure, Ambee’s Reverse Geocoding API supports use cases across climate and environmental monitoring, logistics, fleet management, mobility platforms, travel experiences, customer analytics, location tagging workflows, and more.

import http.client
conn = http.client.HTTPSConnection("api.ambeedata.com")
headers = {
'x-api-key': "API_KEY",
'Content-type': "application/json"
}
conn.request("GET", "/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.ambeedata.com/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527")
.get()
.addHeader("x-api-key", "API_KEY")
.addHeader("Content-type", "application/json")
.build();
Response response = client.newCall(request).execute();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.ambeedata.com/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527"),
Headers =
{
{ "x-api-key", "API_KEY" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ambeedata.com/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "API_KEY")
req.Header.Add("Content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ambeedata.com/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Content-type: application/json",
"x-api-key: API_KEY"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.ambeedata.com/geocode/reverse/by-lat-lng?lat=42.66548262280807&lng=-73.79192663186527")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'API_KEY'
request["Content-type"] = 'application/json'
response = http.request(request)
puts response.read_body{
"message": "success",
"data": [
{
"lat": 42.66548262280807,
"lng": -73.79192663186527,
"address": {
"label": "723 Yates St, Albany, NY 12208, United States",
"countryCode": "USA",
"countryName": "United States",
"stateCode": "NY",
"state": "New York",
"city": "Albany",
"district": "Pine Hills",
"street": "Yates St",
"postalCode": "12208",
"houseNumber": "723"
}
}
]
}{
"message": "success",
"data": [
{
"countryCode": "US",
"postalCode": "67123-9630",
"city": "Potwin",
"placeName": "NW 120th St",
"lat": 38,
"state": "Kansas",
"division": "Butler",
"PM25": 7.244794324242575,
"PM10": 31.630507819643963,
"NO2": 5.296335376565732,
"SO2": 0.16864221223097375,
"CO": 0.1869163036883965,
"OZONE": 27.915852956730046,
"AQI": 30,
"updatedAt": "2024-07-08T07:00:00.000Z",
"lng": -97
}
]
}Sign up for an Ambee account and generate your API key from the dashboard.
Select the endpoint based on what you need: present conditions, historical data, or forecasts.
Specify the location using latitude/longitude coordinates, postal codes, city names, or country codes.
Include your API key in the request header and call the endpoint. You'll receive AQI and all seven pollutant concentrations in JSON format.
Common questions about Ambee's Reverse Geocoding API
The reverse geocoding API is a service by Ambee that converts geographic coordinates (latitude and longitude) into a human-readable address.
Some key features of Ambee's Reverse Geocoding API include global coverage, lightning-fast conversion, easy integration, scalable infrastructure, accuracy, precision, and developer-friendly documentation.
Businesses can benefit from this API by utilizing reverse geocoding to translate coordinates into location names for climate and environmental monitoring, location analytics, travel information, and location tagging. It helps make informed business decisions and enhances user experience.
On our documentation page, you can access comprehensive API documentation, code samples, and dedicated support channels for Ambee's reverse geocoding API.
To get started, you can obtain a geocoding API key from Ambee's API dashboard. With this key, you can make instant API calls for your unique use case. A sample response is provided to help you understand how the API call works.