The Latitude Lookup API is a versatile tool that transforms city and country names into precise geographic coordinates. This makes it an essential resource for developers who need accurate location data for applications spanning navigation, logistics, weather updates, etc. By providing reliable latitude, longitude and country code information for cities around the world, the API enables seamless integration of geolocation functions into various systems.
This simple yet powerful functionality eliminates the need for complex geodatabases, providing a streamlined solution for retrieving accurate location data. Users can rely on the API to perform global searches, ensuring access to both large cities and smaller towns.
To use this endpoint you must indicate a city and a country in the parameters.
Get Coordinates - Endpoint Features
| Object | Description |
|---|---|
city |
[Required] Indicates a city |
country |
[Required] Indicates a country |
[{"name": "London", "latitude": 51.5073219, "longitude": -0.1276474, "country": "GB", "state": "England"}, {"name": "City of London", "latitude": 51.5156177, "longitude": -0.0919983, "country": "GB", "state": "England"}, {"name": "Chelsea", "latitude": 51.4875167, "longitude": -0.1687007, "country": "GB", "state": "England"}, {"name": "Vauxhall", "latitude": 51.4874834, "longitude": -0.1229297, "country": "GB", "state": "England"}]
curl --location --request GET 'https://zylalabs.com/api/5740/latitude+lookup+api/7465/get+coordinates?city=London&country=England' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
To use this API, users must indicate a latitude and longitude.
There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.
The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.
The Latitude Lookup API converts city and country names into coordinates.
The API returns city names, latitudes, longitudes, country codes, and state information for precise geographic identification and mapping applications.
The Latitude Lookup API returns geographic data including city names, latitude, longitude, country codes, and state information. This data is essential for applications requiring precise location identification.
The key fields in the response data include "name" (city name), "latitude" (geographic latitude), "longitude" (geographic longitude), "country" (country code), and "state" (state or region name).
The response data is organized as a JSON array of objects, where each object represents a location with its corresponding attributes such as name, latitude, longitude, country, and state.
The primary parameters for the GET Get Coordinates endpoint are "city" and "country." Users must specify both to retrieve accurate geographic coordinates.
Users can customize their requests by specifying different city and country combinations in the parameters. This allows for targeted searches for specific locations worldwide.
Typical use cases include navigation applications, logistics planning, weather forecasting, and any system requiring accurate geolocation data for cities and towns globally.
Data accuracy is maintained through regular updates and quality checks against reliable geographic databases, ensuring that the coordinates provided are precise and up-to-date.
If users receive partial or empty results, they should verify the city and country names for accuracy. Additionally, trying alternative names or checking for spelling errors may yield better results.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
130ms
Service Level:
100%
Response Time:
657ms
Service Level:
100%
Response Time:
743ms
Service Level:
100%
Response Time:
443ms
Service Level:
100%
Response Time:
932ms
Service Level:
100%
Response Time:
649ms
Service Level:
100%
Response Time:
723ms
Service Level:
100%
Response Time:
306ms
Service Level:
100%
Response Time:
1,120ms
Service Level:
100%
Response Time:
756ms
Service Level:
100%
Response Time:
1,241ms
Service Level:
100%
Response Time:
729ms
Service Level:
100%
Response Time:
134ms
Service Level:
100%
Response Time:
1,586ms
Service Level:
100%
Response Time:
1,171ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
396ms
Service Level:
100%
Response Time:
1,115ms
Service Level:
100%
Response Time:
12,216ms
Service Level:
100%
Response Time:
219ms