The Global Geography API is a versatile tool designed to provide comprehensive data on countries around the world. With an easy-to-use interface and seamless integration capabilities, this API allows users to access a wide range of country-related information for their applications without the burden of handling intricate details.
This API offers a plethora of data points covering various aspects of countries, providing users with a complete snapshot. The information available through the API includes data such as ISO Code, region, sub region and more. This information can be leveraged for applications that require a quick overview of a particular country's attributes, without the need to delve into complex details.
Users can use the Global Geography API to retrieve basic data about a country, such as its country code, region code and sub region code. This information can be useful for creating interfaces that allow users to explore countries at a glance, making it suitable for travel-related applications, educational platforms or even business directories that need to display relevant information about a country.
What sets the Global Geography API apart is its simplicity. Users can retrieve a wide range of data points with just a few API calls, eliminating the need for complex database management or data aggregation. This simplified approach saves development time and resources, allowing creators to focus on implementing unique features that leverage acquired country data.
In conclusion, the Global Geography API provides a simple solution for users who want to incorporate country-related data into their applications. By providing essential information about countries around the world. This API allows users to create rich user experiences without the complexity of handling large data sets. Its ease of use and versatility make it an ideal choice for a wide range of applications in a variety of industries.
It will receive parameters and provide you with a JSON.
Travel planning applications: integrate country information to help users explore destinations, learn about cultures and plan their trips effectively.
Educational platforms: Provide students with quick country information for geography or social studies classes.
Time zone converters: Develop tools that help users accurately schedule meetings or coordinate events in different time zones.
Multilingual content applications: Adapt content based on the predominant languages in different countries, improving user engagement.
News and weather applications: Display country-specific news and weather updates to provide users with region-specific information.
Besides the number of API calls per month, there are no other limitations.
To use this endpoint you must indicate the country iso code.
{"links":{"first":"/countries/GB/cities?format=json&language=en&page=1&per_page=100","last":"/countries/GB/cities?format=json&language=en&page=67&per_page=100","next":"/countries/GB/cities?format=json&language=en&page=2&per_page=100","previous":""},"page":1,"per_page":100,"total_pages":67,"total_cities":6673,"cities":[{"geonameid":2657880,"population":831,"name":"Abberton","latitude":51.83435,"longitude":0.91084,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657876,"population":0,"name":"Abbey Dore","latitude":51.96667,"longitude":-2.9,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":7302135,"population":13000,"name":"Abbey Wood","latitude":51.48688,"longitude":0.10747,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657870,"population":1351,"name":"Abbots Bromley","latitude":52.81705,"longitude":-1.87694,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657863,"population":10472,"name":"Abbots Langley","latitude":51.70573,"longitude":-0.41757,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657869,"population":481,"name":"Abbotsbury","latitude":50.66667,"longitude":-2.6,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657864,"population":1267,"name":"Abbotskerswell","latitude":50.50816,"longitude":-3.61342,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657862,"population":446,"name":"Abbotsley","latitude":52.19403,"longitude":-0.20664,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657859,"population":2112,"name":"Abbotts Ann","latitude":51.19016,"longitude":-1.53234,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657857,"population":0,"name":"Aber","latitude":53.23333,"longitude":-4.01667,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657850,"population":1422,"name":"Aberaeron","latitude":52.24247,"longitude":-4.25871,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657845,"population":5061,"name":"Abercanaid","latitude":51.72361,"longitude":-3.36611,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657844,"population":10118,"name":"Abercarn","latitude":51.64733,"longitude":-3.13476,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657839,"population":1250,"name":"Aberchirder","latitude":57.56012,"longitude":-2.62856,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657837,"population":5983,"name":"Abercynon","latitude":51.64548,"longitude":-3.32727,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657835,"population":31135,"name":"Aberdare","latitude":51.71438,"longitude":-3.44918,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657832,"population":198590,"name":"Aberdeen","latitude":57.14369,"longitude":-2.09814,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657829,"population":1650,"name":"Aberdour","latitude":56.05417,"longitude":-3.30058,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657825,"population":725,"name":"Aberdyfi","latitude":52.544,"longitude":-4.04606,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657821,"population":3547,"name":"Aberfan","latitude":51.68892,"longitude":-3.34178,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657820,"population":1960,"name":"Aberfeldy","latitude":56.62196,"longitude":-3.86693,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657819,"population":620,"name":"Aberffraw","latitude":53.19223,"longitude":-4.46543,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657817,"population":1503,"name":"Aberford","latitude":53.82604,"longitude":-1.34231,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657816,"population":750,"name":"Aberfoyle","latitude":56.17861,"longitude":-4.38419,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657815,"population":14651,"name":"Abergavenny","latitude":51.82098,"longitude":-3.01743,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657812,"population":17769,"name":"Abergele","latitude":53.28436,"longitude":-3.5822,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657808,"population":589,"name":"Abergwili","latitude":51.86593,"longitude":-4.26969,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657804,"population":10083,"name":"Aberkenfig","latitude":51.54,"longitude":-3.59556,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657803,"population":1180,"name":"Aberlady","latitude":56.00884,"longitude":-2.85851,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657795,"population":900,"name":"Abermule","latitude":52.54339,"longitude":-3.23723,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657793,"population":0,"name":"Abernant","latitude":51.88139,"longitude":-4.41556,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657792,"population":1470,"name":"Abernethy","latitude":56.33247,"longitude":-3.31226,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657789,"population":1648,"name":"Aberporth","latitude":52.13248,"longitude":-4.54173,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657788,"population":783,"name":"Abersoch","latitude":52.82437,"longitude":-4.50584,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657787,"population":0,"name":"Abersychan","latitude":51.72468,"longitude":-3.06348,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657784,"population":10946,"name":"Abertillery","latitude":51.72981,"longitude":-3.13432,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":3345315,"population":6504,"name":"Abertridwr","latitude":51.59583,"longitude":-3.26833,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657782,"population":18749,"name":"Aberystwyth","latitude":52.41548,"longitude":-4.08292,"country":{"code":"GB"},"division":{"code":"GB-WLS","geonameid":2634895}},{"geonameid":2657780,"population":38676,"name":"Abingdon","latitude":51.67109,"longitude":-1.28278,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":9409462,"population":257,"name":"Abinger Hammer","latitude":51.21602,"longitude":-0.43332,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657775,"population":2650,"name":"Aboyne","latitude":57.07546,"longitude":-2.78023,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657774,"population":10074,"name":"Abram","latitude":53.50855,"longitude":-2.59266,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":9072588,"population":1613,"name":"Abridge","latitude":51.6495,"longitude":0.12033,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657771,"population":280,"name":"Acaster Malbis","latitude":53.90056,"longitude":-1.1063,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657770,"population":35318,"name":"Accrington","latitude":53.75379,"longitude":-2.35863,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657749,"population":201,"name":"Acharacle","latitude":56.74449,"longitude":-5.79726,"country":{"code":"GB"},"division":{"code":"GB-SCT","geonameid":2638360}},{"geonameid":2657706,"population":0,"name":"Acklam","latitude":54.04745,"longitude":-0.8038,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":6947758,"population":282,"name":"Acklam Wold","latitude":54.0474,"longitude":-0.7865,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657705,"population":0,"name":"Acklington","latitude":55.3,"longitude":-1.63333,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657704,"population":2317,"name":"Acle","latitude":52.63681,"longitude":1.54757,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657700,"population":1106,"name":"Acomb","latitude":54.99229,"longitude":-2.11229,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657697,"population":53689,"name":"Acton","latitude":51.50901,"longitude":-0.2762,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657696,"population":1475,"name":"Acton","latitude":52.45,"longitude":-3.01667,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657695,"population":417,"name":"Acton Bridge","latitude":53.27343,"longitude":-2.60754,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657693,"population":544,"name":"Acton Burnell","latitude":52.61388,"longitude":-2.69468,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657689,"population":786,"name":"Acton Trussell","latitude":52.76083,"longitude":-2.09672,"country":{"code":"GB"},"division":{"code":"GB-ENG","geonameid":6269131}},{"geonameid":2657688}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/2444/global+geography+api/2399/search+by+country&country_code=Required' --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 the user must indicate the number of results to receive, a pagination and indicate whether the country names appear in ascending or descending order.
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.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
Global Geography API provides users with geographic information about countries around the world.
The Search by country endpoint returns geographic data about cities within a specified country, including city names, populations, geographic coordinates (latitude and longitude), and associated country and division codes.
Key fields in the response include "total_cities," "cities" (an array of city objects), and within each city object, fields like "name," "population," "latitude," "longitude," and "division" details.
The response data is structured in JSON format, with a top-level object containing pagination links and a "cities" array. Each city object within the array contains specific attributes like name and geographic details.
This endpoint provides information on cities, including their names, populations, geographic coordinates, and the country and division they belong to, allowing for detailed geographic insights.
Users must provide the country ISO code as a parameter to retrieve data. Additional parameters for pagination, such as "page" and "per_page," can also be specified to customize the results.
Users can leverage the returned data to display city information in applications, create geographic visualizations, or enhance travel planning tools by providing users with detailed insights about cities in a specific country.
The data is sourced from reliable geographic databases and public records, ensuring comprehensive and accurate information about countries and their cities.
Data accuracy is maintained through regular updates and quality checks, ensuring that the information provided reflects the most current geographic and demographic details available.
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:
467ms
Service Level:
100%
Response Time:
715ms
Service Level:
100%
Response Time:
1,017ms
Service Level:
100%
Response Time:
544ms
Service Level:
100%
Response Time:
819ms
Service Level:
100%
Response Time:
570ms
Service Level:
100%
Response Time:
97ms
Service Level:
100%
Response Time:
638ms
Service Level:
100%
Response Time:
233ms
Service Level:
100%
Response Time:
130ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
916ms
Service Level:
100%
Response Time:
1,459ms
Service Level:
100%
Response Time:
0ms
Service Level:
86%
Response Time:
394ms
Service Level:
100%
Response Time:
863ms
Service Level:
100%
Response Time:
8,351ms
Service Level:
100%
Response Time:
1,659ms
Service Level:
100%
Response Time:
418ms
Service Level:
100%
Response Time:
634ms