API Ninjas


Geocoding API

API Ninjas geocoding API for converting any city from any country to latitude and longitude coordinates
The geocoding API made by API Ninjas has data with the goal of converting any city from any country to latitude and longitude coordinates. Certain ideas of the possible filters are city, state and country, use these to determine the data response. This database covers global data. Several possible use cases for the city location API are for example; website plugins, map applications, city location services, geocoding analysis, travel and location related websites and more. It is of course a possibility that clients have uncommon use cases that haven’t been thought of before. It would be amazing to hear about them. The API is used by small business, medium business and enterprises, the clients use the data in the map analysis, geolocation, city and country location and more sector. Certain examples of the type of business that uses the API are geocoding analysts, online map developers, travel and tourism platforms and more.

Geocoding API endpoints

GET /v1/geocoding
Send a data request using GET to the API endpoint, using the appropriate filtering parameters such as in the example and receive the associated data output. Use the endpoint; /v1/geocoding for converting any city from any country to latitude and longitude coordinates with the geocoding API. Using your API key parameter and setting it up with your personal API key, you can begin receiving data using any of the leading programming languages. In order to make the data request, place the data endpoint into the URL field. The object table defines the possible parameters and objects output explanations.

Filter parameters for geocoding API

Find below the parameters applicable for the geocoding API.

Geocoding API object attributes

Get the data from the API with the available parameters and the table to interpret the objects.
Objects Description
name City name
latitude City latitude
longitude City longitude
country Country

Geocoding API output response

Example data response of the endpoint request. There is more data available, this example is limited to be able to make it readable. Sign-up to the API system and gain access to the full output response.
    "name": "London",
    "latitude": 51.5085,
    "longitude": -0.1257,
    "country": "GB"

Software development kit

There are software development kits available to support the development of your platform, simply ask for them and they will be sent. Then use the filter objects to select the required output for you and with the global city location API output in JSON your system will be possible to develop.

Geocoding API pricing

Samples and trials are freely available if desired, just write an email and ask for it. You can get access to the city location API and see if this is indeed that which you are seeking for. After trying the API, people can determine if they are ready to move on with the paid version.

API cost and pricing

You can promptly access API Ninjas API with the price tag set at monthly from $9 or contact the API provider to learn more insight today.
Option Price
Monthly subscription From $9/month
Variable pricing no

Free Trial

Free trial is available

Alternative options


Geocode Address API
Geocode Address API ensures you get the best data solutions to develop projects for geocoding an address, partial address or just the name of a place objectives. This geocode address API includes a massive amount of Location data inclusive of the entire data details you need.


City API
City API by Azavea is here to offer extensive and necessary elements necessary to have in geospatial tech solutions, building city detail features for apps, websites, travel and aviation platforms and more fields. City API brings precise geospatial tech solutions, building city detail features for apps, websites, travel and aviation platforms and more data for creating mobile apps, websites, tools, programs, market analysis and much more.


City Boundaries API
The city boundaries API is the ideal tool to precisely receive Cities data to your product. City Boundaries API presents Cities databases to advance fetching the boundary of the specified city as a MultiPolygon GeoJson Feature objectives to reinforce companies globally.


City Map Cells API
City Map Cells API provides external data solutions to build data-oriented products for exposing the underlying grid point used for each city and dataset combination objectives. The city map cells API is the optimal data tool to precisely receive Cities data to your project.

Aviation Edge

Countries API
The countries API is the ideal tool to straightaway fetch Aviation data to your product. Countries API offers data solutions to create projects for getting a detailed worldwide country directory purposes.

Aviation Edge

Cities API
Cities API maintains Aviation data to advance getting a detailed worldwide city directory purposes to power up companies globally. The cities API is the top data tool to directly receive Aviation data to your product.

Sign up for API Ninjas geocoding API

Get Data Access

~[ ∵ ]~

Sign-up Succesful

Wait for the Data