Geocoding API

Geocoding API

TL;DR

  • Convert city names to precise latitude/longitude coordinates with a single API call.
  • Completely free. Unlimited queries. No credit card.
  • Open sourcing on Feb 25, 2026.
  • Built by Omkar Cloud, a pro open source organization (creators of Botasaurus, 3.8K+ GitHub stars).

Here's a sample response:

[
  {
    "name": "New York",
    "state": "New York",
    "country_code": "US",
    "coordinates": {
      "latitude": 40.7127281,
      "longitude": -74.0060152
    }
  }
]

❓ What is this?

A REST API that converts city names into geographic coordinates. Send a city name, get back latitude and longitude.

Perfect for mapping apps, logistics, delivery services, and location-based features.

❓ Why use it?

1. Completely Free. Unlimited Queries.

No limits. No credit card. No hidden fees.

Use it as much as you want.

2. Going Open Source

We're open sourcing this API on Feb 25, 2026 once it's perfected.

You'll be able to self-host it, modify it, and use it however you want.

3. 99.99% Uptime SLA

If your app depends on location, downtime is not an option.

We guarantee 99.99% uptime.

❓ How to use it?

Simple REST API. Here's how it works:

  1. Sign up on Omkar Cloud by visiting this link.
    Sign Up

  2. Visit the API Key Page.

  3. Copy your API key.
    Copy the API Key

  4. Make a request:

cURL:

curl -X GET "https://geocoding-api.omkar.cloud/geocode?city=New%20York" \
  -H "API-Key: YOUR_API_KEY"

Python:

import requests

api_key = "YOUR_API_KEY"

response = requests.get(
    "https://geocoding-api.omkar.cloud/geocode",
    params={
        "city": "New York",
    },
    headers={"API-Key": api_key}
)

data = response.json()
print(data)

JavaScript (Node.js):

import axios from "axios";

const apiKey = "YOUR_API_KEY";

const response = await axios.get("https://geocoding-api.omkar.cloud/geocode", {
    params: { 
        city: "New York",
    },
    headers: { "API-Key": apiKey }
});

console.log(response.data);
  1. Get your coordinates and use them.

That's it. Location data in seconds.


API Reference

Endpoint

GET https://geocoding-api.omkar.cloud/geocode

Parameters

  • city (required, string):
    The city name you want to geocode.

  • state (optional, string):
    State/region to disambiguate cities with the same name.

  • country_code (optional, string):
    Two-letter ISO country code. Examples: "US", "GB", "JP".

Response

Returns an array of matching locations with coordinates:

[
  {
    "name": "New York",
    "state": "New York",
    "country_code": "US",
    "coordinates": {
      "latitude": 40.7127281,
      "longitude": -74.0060152
    }
  }
]

❓ What data does the API return?

For each matching location, you get:

  • name — City/place name
  • state — State or province
  • country_code — Two-letter ISO country code
  • coordinates — Latitude and longitude

❓ How accurate is the data?

Our coordinates are sourced from authoritative geographic databases.

Accuracy is within meters for city centers.

❓ What if multiple cities have the same name?

The API returns all matching locations. For example, searching for "New York" without filters returns:

  • New York, New York, US
  • New York, Texas, US

To narrow results, send state and/or country_code.

Questions? We have answers.

Reach out anytime. We will solve your query within 1 working day.

Contact Us on WhatsApp about Geocoding API

Contact Us on Email about Geocoding API