Geocoding API to convert any address into latitude and longitude

Turn any address, postal code, or place name into precise coordinates with a fast, developer-friendly geocoding API.

Trusted Across Industries
GSK Logo
Bayer Logo
Sanofi Logo
Lilly Logo
HALEON Logo
Kimberly-Clark Logo
3M Logo
Electrolux logo
WPP Logo
Publicis Groupe Logo
Teads logo
The Weather Channel Logo
EDF Logo

What is Ambee's Geocoding API?

Ambee’s Geocoding API is a REST API that converts human-readable addresses into precise geographic coordinates and translates coordinates back into structured address information. For example, “1600 Amphitheatre Parkway, Mountain View, CA” can be converted into latitude 37.423021 and longitude -122.083739.


Responses are returned in JSON format, with structured fields including city, state, country, and postal code, while authentication is handled through a single API key in the request header.


Built with scalable, real-time location intelligence, global coverage, and developer-friendly integration, the API enables organizations to build reliable location intelligence directly into their products and operations.

Aerial city grid — location services converting coordinates to addresses

Industry-ready geocoding applications  

Location-based services

Location-based services

Convert addresses into coordinates for accurate ETAs, routing, and real-time pickup and delivery.

Customer data management

Customer data management

Standardize and validate customer addresses to reduce failed deliveries and improve data quality.

Environmental monitoring

Online services and marketplaces

Deliver personalized search, recommendations, and nearby results using precise user locations.

Supply chain

Logistics and supply chain

Geocode warehouses and deliveries to optimize routes, reduce travel time, and improve fleet efficiency.

Real estate

Real estate

Map properties accurately and enable neighborhood, proximity, and nearby amenity search.

Insurance and risk analytics

Insurance

Map insured assets to assess exposure to floods, wildfires, storms, and other climate risks.

Insurance and risk analytics

Mobility and transportation

Geocode trip origins and destinations to improve routing, dispatch, and driver allocation.

Insurance and risk analytics

Financial services

Support branch discovery, KYC verification, fraud detection, and regional analytics with geocoded data.

Why developers choose Ambee’s Geocoding API   

Global coverage

Global geospatial coverage

Access worldwide geocoding and reverse geocoding services for addresses, postal codes, landmarks, administrative regions, and coordinate systems through a single REST API.

Forward and reverse geocoding

Forward and reverse geocoding

Convert human-readable addresses into latitude and longitude coordinates, or transform coordinates into structured address hierarchies and place metadata.

Real-time response speeds

Low-latency geocoding infrastructure

Retrieve real-time geospatial lookup results optimized for routing engines, fleet management, live tracking, and mobility applications.

Structured geographic context

Structured location intelligence

Return normalized geographic entities including city, state, country, postal code, formatted address labels, and place-level metadata in JSON format.

Scalable infrastructure

Developer-first API architecture

Integrate quickly using REST endpoints, API key authentication, JSON responses, Postman collections, and multilingual localization support.

Structured geographic context

Enterprise-scale scalability

Process high-volume geospatial requests reliably with infrastructure built for production-scale location intelligence workloads.

Getting started with Ambee’s Geocoding API

Content copy iconCheck icon
import http.client

conn = http.client.HTTPSConnection("api.ambeedata.com")

headers = {
    'x-api-key': "API_KEY",
    'Content-type': "application/json"
}

conn.request("GET", "/geocode/by-place?place=new%20york", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
Content copy iconCheck icon
const http = require("https");

const options = {
	"method": "GET",
	"hostname": "api.ambeedata.com",
	"port": null,
	"path": "/geocode/by-place?place=new york",
	"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();
Content copy iconCheck icon
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
	.url("https://api.ambeedata.com/geocode/by-place?place=new%20york")
	.get()
	.addHeader("x-api-key", "API_KEY")
	.addHeader("Content-type", "application/json")
	.build();

Response response = client.newCall(request).execute();
Content copy iconCheck icon
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
	Method = HttpMethod.Get,
	RequestUri = new Uri("https://api.ambeedata.com/geocode/by-place?place=new%20york"),
	Headers =
	{
		{ "x-api-key", "API_KEY" },
	},
};
using (var response = await client.SendAsync(request))
{
	response.EnsureSuccessStatusCode();
	var body = await response.Content.ReadAsStringAsync();
	Console.WriteLine(body);
}
Content copy iconCheck icon
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.ambeedata.com/geocode/by-place?place=new%20york"

	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))

}
Content copy iconCheck icon
<?php

$curl = curl_init();

curl_setopt_array($curl, [
	CURLOPT_URL => "https://api.ambeedata.com/geocode/by-place?place=new%20york",
	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;
}
Content copy iconCheck icon
curl --request GET \
	--url 'https://api.ambeedata.com/geocode/by-place?place=new%20york' \
	--header 'Content-type: application/json' \
	--header 'x-api-key: API_KEY'
Content copy iconCheck icon
require 'uri'
require 'net/http'

url = URI("https://api.ambeedata.com/geocode/by-place?place=new%20york")

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
Content copy iconCheck icon
{
    "message": "success",
    "data": [
        {
            "lat": 40.71453,
            "lng": -74.00712,
            "address": {
                "label": "New York, NY, United States",
                "countryCode": "USA",
                "countryName": "United States",
                "stateCode": "NY",
                "state": "New York",
                "city": "New York",
                "postalCode": "10007"
            }
        }
    ]
}
Content copy iconCheck icon
{
    "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
        }
   ]
}
01

Get your API key

Sign up for an Ambee account and generate your API key from the dashboard.

02

Choose your endpoint

Select the endpoint based on what you need: present conditions, historical data, or forecasts.

03

Add your location

Specify the location using latitude/longitude coordinates, postal codes, city names, or country codes.

04

Make your request

Include your API key in the request header and call the endpoint. You'll receive AQI and all seven pollutant concentrations in JSON format.

Why leading teams build with Ambee

Real feedback from real innovators

Innovid Testimonial
Delivering personalized, relevant experiences is critical for advertisers trying to increase the performance of their messaging. The beauty of DCO is when you have a high-quality API like Ambee’s pollen count - you can turn that into creative experiences directly tuned to the real-world circumstances of your audience.
Simeon Powers
Product Marketing, Ad Management, Innovid
navia life care testimonial
We tried out Ambee’s Weather and Pollen API for our healthcare app. I must say our users were certainly pleased with the results. The data was comprehensive, accurate, and valuable, which helped with the user's decision-making process. Ambee’s team was really supportive during integration and for regular maintenance as well. Would definitely recommend working with them.
Kunal Kishore Dhawan
Co-founder and CEO of Navia Life Care
WPP Testimonial
In an ever-changing world, it’s imperative that we understand the environmental changes and act upon these in the right way. Ambee keeps us in tune with our environment and is key to creating better outcomes for people.
Vipul Parmar
Global Head of Data Management
VitalFlo Testimonial
We monitor the impacts of AQ on the health outcomes of asthma and COPD patients. Ambee gives great access to hyperlocal data to help us monitor acute respiratory health events.
Luke Marshall
CEO and Founder of VitalFlo
ADYLIC Testimonial
It has helped Adylic showcase the power of utilizing API in personalizing ads. In this case, we were able to target users' needs at the right time based on the user's location.
Stefanie Wong
DCO Specialist, Adylic
Razor Testimonial
Solving climate change requires collaboration across industries. Hence, Razor partnered with Ambee to make reliable, real-time, and accurate data available to the blockchain.
Hrishikesh Huilgolkar
CEO
NASA Testimonial
The PACE Science and Applications Team is thrilled to be working with partners like Ambee, who bring a fresh perspective to our work and ensure that the PACE mission will provide societal benefit.
Lorraine Remer
Atmospheric Scientist, University of Maryland, Baltimore County
Allegra Testimonial
Ambee has been a tremendous partner for Allegra. The quality of their air quality data, combined with their end-to-end development solutions and customer-oriented mindset, has made them the right partner for us.
Jordana Barish
North America Zone Head for Allegra
Datarade Testimonial
We’re happy to have Ambee’s AI-ready datasets listed on Datarade…Ambee is meeting increased global demand for environmental intelligence with its suite of data products. Now that these data products are available on Datarade, organizations worldwide will be able to access, sample, and ingest them for a range of crucial use cases.
Richard Hoffmann
Co-founder of Datarade
Seek Testimonial
Ambee's proprietary climate data, brought to life through apps on Insight Cloud, makes forecasting faster, smarter, and simpler than ever. Teams can now instantly access Ambee's world-class climate expertise in minutes on Insight Cloud...answering tomorrow's questions, today.
Erik Mitchell
CEO of Seek

Enhance geocoding with the Ambee Climate Data Suite

Pollen

30+ pollen allergens categorized into trees, grasses, and weeds

Pollen API

Air Quality

All major pollutants with location-specific air quality indices

Ambee Air Quality API

Weather

All core meteorological and atmospheric parameters, including many derived fields

Ambee Weather API

Astronomy

Local sunrise, sunset, azimuth, and elevation data for any location

Ambee Astronomy API

Influenza-like Illness

30-day risk forecasts for respiratory illness, including cold and cough

Ambee ILI API

Natural disasters

All major disasters in a geospatial format with severity levels and event metadata

Ambee natural disaster API

Wildfire

Wildfire activity and behavior with forward-looking risk forecasts

Ambee Wildfire API

Frequently asked questions

Common questions about Ambee's Geocoding API

  • What is Ambee's geocoding API, and how can it benefit?

    Ambee's geocoding API is a powerful tool that converts user-friendly location names into precise geographic coordinates. It offers global coverage, lightning-fast conversion, and easy application integration. This API can streamline location-based services, customer data management, online services, logistics, real estate, and insurance processes.

  • How does Ambee's geocoding API work?

    The geocoding API functions by receiving HTTP requests from developers or applications, processing the request parameters, parsing addresses, performing geographic coordinate lookups, generating structured responses, and sending them back to the client. It simplifies the conversion of location queries into coordinates and vice versa.

  • What are the key features of Ambee's geocoding API?

    Ambee's geocoding API offers several key features, including global coverage, dynamic address subfields, lightning-fast conversion, easy integration, scalable infrastructure, accuracy, precision, and comprehensive developer-friendly documentation.

Integrate global geocoding into your workflow