Country and City Insights API

Country and City Insights API: Your gateway to comprehensive data about cities around the world. Demographics, location and much more.

About the API:  

In our fast-paced, interconnected world, countries and cities are the epicenters of innovation, culture and human activity. Understanding the dynamics of these urban landscapes has never been more crucial. The Country and City Information API is a powerful resource that links a vast trove of data on cities around the world. This article delves into the multifaceted world of the Country and City Insights API, exploring its significance, its applications, and the valuable insights it offers.

Country and City Insights API opens the door to a world of urban information. It is a versatile and invaluable tool that allows individuals and organizations to unravel the complex web of cities around the world. By providing access to a wide range of data, this API transforms the way we interact with countries and cities. It catalyzes informed decision-making, drives innovation and fosters a deeper appreciation of the intricate systems that underpin urban life. With the Country and City Insights API, the essence of cities is more accessible than ever, inviting us to explore and analyze different aspects.

In today's interconnected world, access to comprehensive data about countries and cities is invaluable for a wide range of applications, from travel planning and business expansion to academic research and urban development. The Country and City Insights API offers a gateway to a wealth of information, providing users with detailed insights into countries and cities worldwide. One of the standout features of this API is its user-friendly and straightforward integration process.

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Demographic data: Access city data on population numbers for studies and research.

  2. Business expansion: Analyze demographics and market trends to make informed decisions about opening new branches or entering new markets.

  3. Academic research: Researchers can use demographic and geographic data for studies on urbanization and society.

  4. Local business information: Support local businesses by providing competitive information, reviews, and location data.

  5. Geographic data: Obtain information on iso codes for different analyses and studies.

Are there any limitations to your plans?

  •  

  • Basic Plan: 1,500 API Calls. 50 requests per day and 10 requests per second.

  • Pro Plan: 6,000 API Calls. 200 requests per day and 10 requests per second.

  • Pro Plus Plan: 24,000 API Calls. 800 requests per day and 10 requests per second.

  • Premium Plan: 120,000 API Calls. 4,000 requests per day and 10 requests per second.

API Documentation

Endpoints


To use this endpoint just run it and you will get all available countries.



                                                                            
GET https://zylalabs.com/api/2653/country+and+city+insights+api/5254/countries+available
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Afghanistan","isoCode":"AF","flag":"๐Ÿ‡ฆ๐Ÿ‡ซ","phonecode":"93","currency":"AFN","latitude":"33.00000000","longitude":"65.00000000","timezones":[{"zoneName":"Asia/Kabul","gmtOffset":16200,"gmtOffsetName":"UTC+04:30","abbreviation":"AFT","tzName":"Afghanistan Time"}]},{"name":"Aland Islands","isoCode":"AX","flag":"๐Ÿ‡ฆ๐Ÿ‡ฝ","phonecode":"+358-18","currency":"EUR","latitude":"60.11666700","longitude":"19.90000000","timezones":[{"zoneName":"Europe/Mariehamn","gmtOffset":7200,"gmtOffsetName":"UTC+02:00","abbreviation":"EET","tzName":"Eastern European Time"}]},{"name":"Albania","isoCode":"AL","flag":"๐Ÿ‡ฆ๐Ÿ‡ฑ","phonecode":"355","currency":"ALL","latitude":"41.00000000","longitude":"20.00000000","timezones":[{"zoneName":"Europe/Tirane","gmtOffset":3600,"gmtOffsetName":"UTC+01:00","abbreviation":"CET","tzName":"Central European Time"}]},{"name":"Algeria","isoCode":"DZ","flag":"๐Ÿ‡ฉ๐Ÿ‡ฟ","phonecode":"213","currency":"DZD","latitude":"28.00000000","longitude":"3.00000000","timezones":[{"zoneName":"Africa/Algiers","gmtOffset":3600,"gmtOffsetName":"UTC+01:00","abbreviation":"CET","tzName":"Central European Time"}]},{"name":"American Samoa","isoCode":"AS","flag":"๐Ÿ‡ฆ๐Ÿ‡ธ","phonecode":"+1-684","currency":"USD","latitude":"-14.33333333","longitude":"-170.00000000","timezones":[{"zoneName":"Pacific/Pago_Pago","gmtOffset":-39600,"gmtOffsetName":"UTC-11:00","abbreviation":"SST","tzName":"Samoa Standard Time"}]},{"name":"Andorra","isoCode":"AD","flag":"๐Ÿ‡ฆ๐Ÿ‡ฉ","phonecode":"376","currency":"EUR","latitude":"42.50000000","longitude":"1.50000000","timezones":[{"zoneName":"Europe/Andorra","gmtOffset":3600,"gmtOffsetName":"UTC+01:00","abbreviation":"CET","tzName":"Central European Time"}]},{"name":"Angola","isoCode":"AO","flag":"๐Ÿ‡ฆ๐Ÿ‡ด","phonecode":"244","currency":"AOA","latitude":"-12.50000000","longitude":"18.50000000","timezones":[{"zoneName":"Africa/Luanda","gmtOffset":3600,"gmtOffsetName":"UTC+01:00","abbreviation":"WAT","tzName":"West Africa Time"}]},{"name":"Anguilla","isoCode":"AI","flag":"๐Ÿ‡ฆ๐Ÿ‡ฎ","phonecode":"+1-264","currency":"XCD","latitude":"18.25000000","longitude":"-63.16666666","timezones":[{"zoneName":"America/Anguilla","gmtOffset":-14400,"gmtOffsetName":"UTC-04:00","abbreviation":"AST","tzName":"Atlantic Standard Time"}]},{"name":"Antarctica","isoCode":"AQ","flag":"๐Ÿ‡ฆ๐Ÿ‡ถ","phonecode":"672","currency":"AAD","latitude":"-74.65000000","longitude":"4.48000000","timezones":[{"zoneName":"Antarctica/Casey","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"AWST","tzName":"Australian Western Standard Time"},{"zoneName":"Antarctica/Davis","gmtOffset":25200,"gmtOffsetName":"UTC+07:00","abbreviation":"DAVT","tzName":"Davis Time"},{"zoneName":"Antarctica/DumontDUrville","gmtOffset":36000,"gmtOffsetName":"UTC+10:00","abbreviation":"DDUT","tzName":"Dumont d'Urville Time"},{"zoneName":"Antarctica/Mawson","gmtOffset":18000,"gmtOffsetName":"UTC+05:00","abbreviation":"MAWT","tzName":"Mawson Station Time"},{"zoneName":"Antarctica/McMurdo","gmtOffset":46800,"gmtOffsetName":"UTC+13:00","abbreviation":"NZDT","tzName":"New Zealand Daylight Time"},{"zoneName":"Antarctica/Palmer","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"CLST","tzName":"Chile Summer Time"},{"zoneName":"Antarctica/Rothera","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ROTT","tzName":"Rothera Research Station Time"},{"zoneName":"Antarctica/Syowa","gmtOffset":10800,"gmtOffsetName":"UTC+03:00","abbreviation":"SYOT","tzName":"Showa Station Time"},{"zoneName":"Antarctica/Troll","gmtOffset":0,"gmtOffsetName":"UTCยฑ00","abbreviation":"GMT","tzName":"Greenwich Mean Time"},{"zoneName":"Antarctica/Vostok","gmtOffset":21600,"gmtOffsetName":"UTC+06:00","abbreviation":"VOST","tzName":"Vostok Station Time"}]},{"name":"Antigua And Barbuda","isoCode":"AG","flag":"๐Ÿ‡ฆ๐Ÿ‡ฌ","phonecode":"+1-268","currency":"XCD","latitude":"17.05000000","longitude":"-61.80000000","timezones":[{"zoneName":"America/Antigua","gmtOffset":-14400,"gmtOffsetName":"UTC-04:00","abbreviation":"AST","tzName":"Atlantic Standard Time"}]},{"name":"Argentina","isoCode":"AR","flag":"๐Ÿ‡ฆ๐Ÿ‡ท","phonecode":"54","currency":"ARS","latitude":"-34.00000000","longitude":"-64.00000000","timezones":[{"zoneName":"America/Argentina/Buenos_Aires","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Catamarca","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Cordoba","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Jujuy","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/La_Rioja","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Mendoza","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Rio_Gallegos","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Salta","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/San_Juan","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/San_Luis","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Tucuman","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"},{"zoneName":"America/Argentina/Ushuaia","gmtOffset":-10800,"gmtOffsetName":"UTC-03:00","abbreviation":"ART","tzName":"Argentina Time"}]},{"name":"Armenia","isoCode":"AM","flag":"๐Ÿ‡ฆ๐Ÿ‡ฒ","phonecode":"374","currency":"AMD","latitude":"40.00000000","longitude":"45.00000000","timezones":[{"zoneName":"Asia/Yerevan","gmtOffset":14400,"gmtOffsetName":"UTC+04:00","abbreviation":"AMT","tzName":"Armenia Time"}]},{"name":"Aruba","isoCode":"AW","flag":"๐Ÿ‡ฆ๐Ÿ‡ผ","phonecode":"297","currency":"AWG","latitude":"12.50000000","longitude":"-69.96666666","timezones":[{"zoneName":"America/Aruba","gmtOffset":-14400,"gmtOffsetName":"UTC-04:00","abbreviation":"AST","tzName":"Atlantic Standard Time"}]},{"name":"Australia","isoCode":"AU","flag":"๐Ÿ‡ฆ๐Ÿ‡บ","phonecode":"61","currency":"AUD","latitude":"-27.00000000","longitude":"133.00000000","timezones":[{"zoneName":"Antarctica/Macquarie","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"MIST","tzName":"Macquarie Island Station Time"},{"zoneName":"Australia/Adelaide","gmtOffset":37800,"gmtOffsetName":"UTC+10:30","abbreviation":"ACDT","tzName":"Australian Central Daylight Saving Time"},{"zoneName":"Australia/Brisbane","gmtOffset":36000,"gmtOffsetName":"UTC+10:00","abbreviation":"AEST","tzName":"Australian Eastern Standard Time"},{"zoneName":"Australia/Broken_Hill","gmtOffset":37800,"gmtOffsetName":"UTC+10:30","abbreviation":"ACDT","tzName":"Australian Central Daylight Saving Time"},{"zoneName":"Australia/Currie","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"AEDT","tzName":"Australian Eastern Daylight Saving Time"},{"zoneName":"Australia/Darwin","gmtOffset":34200,"gmtOffsetName":"UTC+09:30","abbreviation":"ACST","tzName":"Australian Central Standard Time"},{"zoneName":"Australia/Eucla","gmtOffset":31500,"gmtOffsetName":"UTC+08:45","abbreviation":"ACWST","tzName":"Australian Central Western Standard Time (Unofficial)"},{"zoneName":"Australia/Hobart","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"AEDT","tzName":"Australian Eastern Daylight Saving Time"},{"zoneName":"Australia/Lindeman","gmtOffset":36000,"gmtOffsetName":"UTC+10:00","abbreviation":"AEST","tzName":"Australian Eastern Standard Time"},{"zoneName":"Australia/Lord_Howe","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"LHST","tzName":"Lord Howe Summer Time"},{"zoneName":"Australia/Melbourne","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"AEDT","tzName":"Australian Eastern Daylight Saving Time"},{"zoneName":"Australia/Perth","gmtOffset":28800,"gmtOffsetName":"UTC+08:00","abbreviation":"AWST","tzName":"Australian Western Standard Time"},{"zoneName":"Australia/Sydney","gmtOffset":39600,"gmtOffsetName":"UTC+11:00","abbreviation":"AEDT","tzName":"Australian Eastern Daylight Saving Time"}]},{"name":"Austria","isoCode":"AT","flag":"๐Ÿ‡ฆ๐Ÿ‡น","phonecode":"43","currency":"EUR","latitude":"47.33333333","longitude":"13.33333333","timezones":[{"zoneName":"Europe/Vienna","gmtOffset":3600,"gmtOffsetName":"UTC+01:00","abbreviation":"CET","tzName":"Central European Time"}]},{"name":"Azerbaijan","isoCode":"AZ","flag":"๐Ÿ‡ฆ๐Ÿ‡ฟ","phonecode":"994","currency":"AZN","latitude":"40.50000000","longitude":"47.50000000","timezones":[{"zoneName":"Asia/Baku","gmtOffset":14400,"gmtOffsetName":"UTC+04:00","abbreviation":"AZT","tzName":"Azerbaijan Time"}]},{"name":"The Bahamas","isoCode":"BS","flag":"๐Ÿ‡ง๐Ÿ‡ธ","phonecode":"+1-242","currency":"BSD","latitude":"24.25000000","longitude":"-76.00000000","timezones":[{"zoneName":"America/Nassau","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America)"}]},{"name":"Bahrain","isoCode":"BH","flag":"๐Ÿ‡ง๐Ÿ‡ญ","phonecode":"973","currency":"BHD","latitude":"26.00000000","longitude":"50.55000000","timezones":[{"zoneName":"Asia/Bahrain","gmtOffset":10800,"gmtOffsetName":"UTC+03:00","abbreviation":"AST","tzName":"Arabia Standard Time"}]},{"name":"Bangladesh","isoCode":"BD","flag":"๐Ÿ‡ง๐Ÿ‡ฉ","phonecode":"880","currency":"BDT","latitude":"24.00000000","longitude":"90.00000000","timezones":[{"zoneName":"Asia/Dhaka","gmtOffset":21600,"gmtOffsetName":"UTC+06:00","abbreviation":"BDT","tzName":"Bangladesh Standard Time"}]},{"name":"Barbados","isoCode":"BB","flag":"๐Ÿ‡ง๐Ÿ‡ง","phonecode":"+1-246",...
                                                                                                                                                                                                                    
                                                                                                    

Countries Available - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2653/country+and+city+insights+api/5254/countries+available' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate a country code in the parameter.



                                                                            
GET https://zylalabs.com/api/2653/country+and+city+insights+api/5255/country+data+by+code
                                                                            
                                                                        

Country data by code - Endpoint Features

Object Description
countrycode [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"name":"United States","isoCode":"US","flag":"๐Ÿ‡บ๐Ÿ‡ธ","phonecode":"1","currency":"USD","latitude":"38.00000000","longitude":"-97.00000000","timezones":[{"zoneName":"America/Adak","gmtOffset":-36000,"gmtOffsetName":"UTC-10:00","abbreviation":"HST","tzName":"Hawaiiโ€“Aleutian Standard Time"},{"zoneName":"America/Anchorage","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"America/Boise","gmtOffset":-25200,"gmtOffsetName":"UTC-07:00","abbreviation":"MST","tzName":"Mountain Standard Time (North America"},{"zoneName":"America/Chicago","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/Denver","gmtOffset":-25200,"gmtOffsetName":"UTC-07:00","abbreviation":"MST","tzName":"Mountain Standard Time (North America"},{"zoneName":"America/Detroit","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Indianapolis","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Knox","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/Indiana/Marengo","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Petersburg","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Tell_City","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/Indiana/Vevay","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Vincennes","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Indiana/Winamac","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Juneau","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"America/Kentucky/Louisville","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Kentucky/Monticello","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Los_Angeles","gmtOffset":-28800,"gmtOffsetName":"UTC-08:00","abbreviation":"PST","tzName":"Pacific Standard Time (North America"},{"zoneName":"America/Menominee","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/Metlakatla","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"America/New_York","gmtOffset":-18000,"gmtOffsetName":"UTC-05:00","abbreviation":"EST","tzName":"Eastern Standard Time (North America"},{"zoneName":"America/Nome","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"America/North_Dakota/Beulah","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/North_Dakota/Center","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/North_Dakota/New_Salem","gmtOffset":-21600,"gmtOffsetName":"UTC-06:00","abbreviation":"CST","tzName":"Central Standard Time (North America"},{"zoneName":"America/Phoenix","gmtOffset":-25200,"gmtOffsetName":"UTC-07:00","abbreviation":"MST","tzName":"Mountain Standard Time (North America"},{"zoneName":"America/Sitka","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"America/Yakutat","gmtOffset":-32400,"gmtOffsetName":"UTC-09:00","abbreviation":"AKST","tzName":"Alaska Standard Time"},{"zoneName":"Pacific/Honolulu","gmtOffset":-36000,"gmtOffsetName":"UTC-10:00","abbreviation":"HST","tzName":"Hawaiiโ€“Aleutian Standard Time"}]}
                                                                                                                                                                                                                    
                                                                                                    

Country data by code - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2653/country+and+city+insights+api/5255/country+data+by+code?countrycode=us' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate a country code in the parameter.



                                                                            
GET https://zylalabs.com/api/2653/country+and+city+insights+api/5256/states+by+country+code
                                                                            
                                                                        

States by country code - Endpoint Features

Object Description
countrycode [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Alabama","isoCode":"AL","countryCode":"US","latitude":"32.31823140","longitude":"-86.90229800"},{"name":"Alaska","isoCode":"AK","countryCode":"US","latitude":"64.20084130","longitude":"-149.49367330"},{"name":"American Samoa","isoCode":"AS","countryCode":"US","latitude":"-14.27097200","longitude":"-170.13221700"},{"name":"Arizona","isoCode":"AZ","countryCode":"US","latitude":"34.04892810","longitude":"-111.09373110"},{"name":"Arkansas","isoCode":"AR","countryCode":"US","latitude":"35.20105000","longitude":"-91.83183340"},{"name":"Baker Island","isoCode":"UM-81","countryCode":"US","latitude":"0.19362660","longitude":"-176.47690800"},{"name":"California","isoCode":"CA","countryCode":"US","latitude":"36.77826100","longitude":"-119.41793240"},{"name":"Colorado","isoCode":"CO","countryCode":"US","latitude":"39.55005070","longitude":"-105.78206740"},{"name":"Connecticut","isoCode":"CT","countryCode":"US","latitude":"41.60322070","longitude":"-73.08774900"},{"name":"Delaware","isoCode":"DE","countryCode":"US","latitude":"38.91083250","longitude":"-75.52766990"},{"name":"District of Columbia","isoCode":"DC","countryCode":"US","latitude":"38.90719230","longitude":"-77.03687070"},{"name":"Florida","isoCode":"FL","countryCode":"US","latitude":"27.66482740","longitude":"-81.51575350"},{"name":"Georgia","isoCode":"GA","countryCode":"US","latitude":"32.16562210","longitude":"-82.90007510"},{"name":"Guam","isoCode":"GU","countryCode":"US","latitude":"13.44430400","longitude":"144.79373100"},{"name":"Hawaii","isoCode":"HI","countryCode":"US","latitude":"19.89676620","longitude":"-155.58278180"},{"name":"Howland Island","isoCode":"UM-84","countryCode":"US","latitude":"0.81132190","longitude":"-176.61827360"},{"name":"Idaho","isoCode":"ID","countryCode":"US","latitude":"44.06820190","longitude":"-114.74204080"},{"name":"Illinois","isoCode":"IL","countryCode":"US","latitude":"40.63312490","longitude":"-89.39852830"},{"name":"Indiana","isoCode":"IN","countryCode":"US","latitude":"40.26719410","longitude":"-86.13490190"},{"name":"Iowa","isoCode":"IA","countryCode":"US","latitude":"41.87800250","longitude":"-93.09770200"},{"name":"Jarvis Island","isoCode":"UM-86","countryCode":"US","latitude":"-0.37435030","longitude":"-159.99672060"},{"name":"Johnston Atoll","isoCode":"UM-67","countryCode":"US","latitude":"16.72950350","longitude":"-169.53364770"},{"name":"Kansas","isoCode":"KS","countryCode":"US","latitude":"39.01190200","longitude":"-98.48424650"},{"name":"Kentucky","isoCode":"KY","countryCode":"US","latitude":"37.83933320","longitude":"-84.27001790"},{"name":"Kingman Reef","isoCode":"UM-89","countryCode":"US","latitude":"6.38333300","longitude":"-162.41666700"},{"name":"Louisiana","isoCode":"LA","countryCode":"US","latitude":"30.98429770","longitude":"-91.96233270"},{"name":"Maine","isoCode":"ME","countryCode":"US","latitude":"45.25378300","longitude":"-69.44546890"},{"name":"Maryland","isoCode":"MD","countryCode":"US","latitude":"39.04575490","longitude":"-76.64127120"},{"name":"Massachusetts","isoCode":"MA","countryCode":"US","latitude":"42.40721070","longitude":"-71.38243740"},{"name":"Michigan","isoCode":"MI","countryCode":"US","latitude":"44.31484430","longitude":"-85.60236430"},{"name":"Midway Atoll","isoCode":"UM-71","countryCode":"US","latitude":"28.20721680","longitude":"-177.37349260"},{"name":"Minnesota","isoCode":"MN","countryCode":"US","latitude":"46.72955300","longitude":"-94.68589980"},{"name":"Mississippi","isoCode":"MS","countryCode":"US","latitude":"32.35466790","longitude":"-89.39852830"},{"name":"Missouri","isoCode":"MO","countryCode":"US","latitude":"37.96425290","longitude":"-91.83183340"},{"name":"Montana","isoCode":"MT","countryCode":"US","latitude":"46.87968220","longitude":"-110.36256580"},{"name":"Navassa Island","isoCode":"UM-76","countryCode":"US","latitude":"18.41006890","longitude":"-75.01146120"},{"name":"Nebraska","isoCode":"NE","countryCode":"US","latitude":"41.49253740","longitude":"-99.90181310"},{"name":"Nevada","isoCode":"NV","countryCode":"US","latitude":"38.80260970","longitude":"-116.41938900"},{"name":"New Hampshire","isoCode":"NH","countryCode":"US","latitude":"43.19385160","longitude":"-71.57239530"},{"name":"New Jersey","isoCode":"NJ","countryCode":"US","latitude":"40.05832380","longitude":"-74.40566120"},{"name":"New Mexico","isoCode":"NM","countryCode":"US","latitude":"34.51994020","longitude":"-105.87009010"},{"name":"New York","isoCode":"NY","countryCode":"US","latitude":"40.71277530","longitude":"-74.00597280"},{"name":"North Carolina","isoCode":"NC","countryCode":"US","latitude":"35.75957310","longitude":"-79.01929970"},{"name":"North Dakota","isoCode":"ND","countryCode":"US","latitude":"47.55149260","longitude":"-101.00201190"},{"name":"Northern Mariana Islands","isoCode":"MP","countryCode":"US","latitude":"15.09790000","longitude":"145.67390000"},{"name":"Ohio","isoCode":"OH","countryCode":"US","latitude":"40.41728710","longitude":"-82.90712300"},{"name":"Oklahoma","isoCode":"OK","countryCode":"US","latitude":"35.46756020","longitude":"-97.51642760"},{"name":"Oregon","isoCode":"OR","countryCode":"US","latitude":"43.80413340","longitude":"-120.55420120"},{"name":"Palmyra Atoll","isoCode":"UM-95","countryCode":"US","latitude":"5.88850260","longitude":"-162.07866560"},{"name":"Pennsylvania","isoCode":"PA","countryCode":"US","latitude":"41.20332160","longitude":"-77.19452470"},{"name":"Puerto Rico","isoCode":"PR","countryCode":"US","latitude":"18.22083300","longitude":"-66.59014900"},{"name":"Rhode Island","isoCode":"RI","countryCode":"US","latitude":"41.58009450","longitude":"-71.47742910"},{"name":"South Carolina","isoCode":"SC","countryCode":"US","latitude":"33.83608100","longitude":"-81.16372450"},{"name":"South Dakota","isoCode":"SD","countryCode":"US","latitude":"43.96951480","longitude":"-99.90181310"},{"name":"Tennessee","isoCode":"TN","countryCode":"US","latitude":"35.51749130","longitude":"-86.58044730"},{"name":"Texas","isoCode":"TX","countryCode":"US","latitude":"31.96859880","longitude":"-99.90181310"},{"name":"United States Minor Outlying Islands","isoCode":"UM","countryCode":"US","latitude":"19.28231920","longitude":"166.64704700"},{"name":"United States Virgin Islands","isoCode":"VI","countryCode":"US","latitude":"18.33576500","longitude":"-64.89633500"},{"name":"Utah","isoCode":"UT","countryCode":"US","latitude":"39.32098010","longitude":"-111.09373110"},{"name":"Vermont","isoCode":"VT","countryCode":"US","latitude":"44.55880280","longitude":"-72.57784150"},{"name":"Virginia","isoCode":"VA","countryCode":"US","latitude":"37.43157340","longitude":"-78.65689420"},{"name":"Wake Island","isoCode":"UM-79","countryCode":"US","latitude":"19.27961900","longitude":"166.64993480"},{"name":"Washington","isoCode":"WA","countryCode":"US","latitude":"47.75107410","longitude":"-120.74013850"},{"name":"West Virginia","isoCode":"WV","countryCode":"US","latitude":"38.59762620","longitude":"-80.45490260"},{"name":"Wisconsin","isoCode":"WI","countryCode":"US","latitude":"43.78443970","longitude":"-88.78786780"},{"name":"Wyoming","isoCode":"WY","countryCode":"US","latitude":"43.07596780","longitude":"-107.29028390"}]
                                                                                                                                                                                                                    
                                                                                                    

States by country code - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2653/country+and+city+insights+api/5256/states+by+country+code?countrycode=us' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate a country code and a state code in the parameter.



                                                                            
GET https://zylalabs.com/api/2653/country+and+city+insights+api/5257/cities+by+country+code
                                                                            
                                                                        

Cities by country code - Endpoint Features

Object Description
countrycode [Required]
statecode [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"name":"Aberdeen","countryCode":"US","stateCode":"FL","latitude":"26.55063000","longitude":"-80.14866000"},{"name":"Alachua","countryCode":"US","stateCode":"FL","latitude":"29.75163000","longitude":"-82.42483000"},{"name":"Alachua County","countryCode":"US","stateCode":"FL","latitude":"29.67476000","longitude":"-82.35770000"},{"name":"Alafaya","countryCode":"US","stateCode":"FL","latitude":"28.56410000","longitude":"-81.21140000"},{"name":"Allapattah","countryCode":"US","stateCode":"FL","latitude":"25.81454000","longitude":"-80.22394000"},{"name":"Altamonte Springs","countryCode":"US","stateCode":"FL","latitude":"28.66111000","longitude":"-81.36562000"},{"name":"Alturas","countryCode":"US","stateCode":"FL","latitude":"27.87169000","longitude":"-81.71508000"},{"name":"Alva","countryCode":"US","stateCode":"FL","latitude":"26.71562000","longitude":"-81.61008000"},{"name":"Andover","countryCode":"US","stateCode":"FL","latitude":"25.96843000","longitude":"-80.21283000"},{"name":"Anna Maria","countryCode":"US","stateCode":"FL","latitude":"27.53115000","longitude":"-82.73343000"},{"name":"Apalachicola","countryCode":"US","stateCode":"FL","latitude":"29.72600000","longitude":"-84.98560000"},{"name":"Apollo Beach","countryCode":"US","stateCode":"FL","latitude":"27.77308000","longitude":"-82.40759000"},{"name":"Apopka","countryCode":"US","stateCode":"FL","latitude":"28.67617000","longitude":"-81.51186000"},{"name":"Arcadia","countryCode":"US","stateCode":"FL","latitude":"27.21588000","longitude":"-81.85842000"},{"name":"Archer","countryCode":"US","stateCode":"FL","latitude":"29.52997000","longitude":"-82.51900000"},{"name":"Asbury Lake","countryCode":"US","stateCode":"FL","latitude":"30.04913000","longitude":"-81.82149000"},{"name":"Astatula","countryCode":"US","stateCode":"FL","latitude":"28.70972000","longitude":"-81.73285000"},{"name":"Astor","countryCode":"US","stateCode":"FL","latitude":"29.16248000","longitude":"-81.52535000"},{"name":"Atlantic Beach","countryCode":"US","stateCode":"FL","latitude":"30.33441000","longitude":"-81.39870000"},{"name":"Atlantis","countryCode":"US","stateCode":"FL","latitude":"26.59090000","longitude":"-80.10088000"},{"name":"Auburndale","countryCode":"US","stateCode":"FL","latitude":"28.06530000","longitude":"-81.78869000"},{"name":"Aventura","countryCode":"US","stateCode":"FL","latitude":"25.95648000","longitude":"-80.13921000"},{"name":"Avon Park","countryCode":"US","stateCode":"FL","latitude":"27.59587000","longitude":"-81.50619000"},{"name":"Azalea Park","countryCode":"US","stateCode":"FL","latitude":"28.54111000","longitude":"-81.30062000"},{"name":"Babson Park","countryCode":"US","stateCode":"FL","latitude":"27.83197000","longitude":"-81.52230000"},{"name":"Bagdad","countryCode":"US","stateCode":"FL","latitude":"30.59880000","longitude":"-87.03223000"},{"name":"Baker County","countryCode":"US","stateCode":"FL","latitude":"30.33107000","longitude":"-82.28459000"},{"name":"Bal Harbour","countryCode":"US","stateCode":"FL","latitude":"25.89176000","longitude":"-80.12699000"},{"name":"Baldwin","countryCode":"US","stateCode":"FL","latitude":"30.30274000","longitude":"-81.97539000"},{"name":"Balm","countryCode":"US","stateCode":"FL","latitude":"27.75947000","longitude":"-82.26120000"},{"name":"Bartow","countryCode":"US","stateCode":"FL","latitude":"27.89641000","longitude":"-81.84314000"},{"name":"Bay County","countryCode":"US","stateCode":"FL","latitude":"30.23765000","longitude":"-85.63262000"},{"name":"Bay Harbor Islands","countryCode":"US","stateCode":"FL","latitude":"25.88759000","longitude":"-80.13116000"},{"name":"Bay Hill","countryCode":"US","stateCode":"FL","latitude":"28.46806000","longitude":"-81.51618000"},{"name":"Bay Pines","countryCode":"US","stateCode":"FL","latitude":"27.81419000","longitude":"-82.77816000"},{"name":"Bayonet Point","countryCode":"US","stateCode":"FL","latitude":"28.32667000","longitude":"-82.68343000"},{"name":"Bayshore Gardens","countryCode":"US","stateCode":"FL","latitude":"27.42532000","longitude":"-82.59038000"},{"name":"Beacon Square","countryCode":"US","stateCode":"FL","latitude":"28.20862000","longitude":"-82.75538000"},{"name":"Bee Ridge","countryCode":"US","stateCode":"FL","latitude":"27.28394000","longitude":"-82.48065000"},{"name":"Bellair-Meadowbrook Terrace","countryCode":"US","stateCode":"FL","latitude":"30.17881000","longitude":"-81.74341000"},{"name":"Belle Glade","countryCode":"US","stateCode":"FL","latitude":"26.68451000","longitude":"-80.66756000"},{"name":"Belle Glade Camp","countryCode":"US","stateCode":"FL","latitude":"26.65757000","longitude":"-80.68284000"},{"name":"Belle Isle","countryCode":"US","stateCode":"FL","latitude":"28.45834000","longitude":"-81.35924000"},{"name":"Belleair","countryCode":"US","stateCode":"FL","latitude":"27.93585000","longitude":"-82.80621000"},{"name":"Belleair Beach","countryCode":"US","stateCode":"FL","latitude":"27.92308000","longitude":"-82.84316000"},{"name":"Belleair Bluffs","countryCode":"US","stateCode":"FL","latitude":"27.92141000","longitude":"-82.81705000"},{"name":"Belleview","countryCode":"US","stateCode":"FL","latitude":"29.05526000","longitude":"-82.06231000"},{"name":"Bellview","countryCode":"US","stateCode":"FL","latitude":"30.46159000","longitude":"-87.31497000"},{"name":"Beverly Hills","countryCode":"US","stateCode":"FL","latitude":"28.91692000","longitude":"-82.45815000"},{"name":"Big Coppitt Key","countryCode":"US","stateCode":"FL","latitude":"24.59653000","longitude":"-81.66009000"},{"name":"Big Pine Key","countryCode":"US","stateCode":"FL","latitude":"24.66987000","longitude":"-81.35397000"},{"name":"Biscayne Park","countryCode":"US","stateCode":"FL","latitude":"25.88260000","longitude":"-80.18060000"},{"name":"Bithlo","countryCode":"US","stateCode":"FL","latitude":"28.55472000","longitude":"-81.10645000"},{"name":"Black Diamond","countryCode":"US","stateCode":"FL","latitude":"28.91248000","longitude":"-82.48593000"},{"name":"Bloomingdale","countryCode":"US","stateCode":"FL","latitude":"27.89364000","longitude":"-82.24037000"},{"name":"Blountstown","countryCode":"US","stateCode":"FL","latitude":"30.44379000","longitude":"-85.04744000"},{"name":"Boca Del Mar","countryCode":"US","stateCode":"FL","latitude":"26.34508000","longitude":"-80.14671000"},{"name":"Boca Pointe","countryCode":"US","stateCode":"FL","latitude":"26.33313000","longitude":"-80.15949000"},{"name":"Boca Raton","countryCode":"US","stateCode":"FL","latitude":"26.35869000","longitude":"-80.08310000"},{"name":"Bokeelia","countryCode":"US","stateCode":"FL","latitude":"26.70563000","longitude":"-82.15898000"},{"name":"Bonifay","countryCode":"US","stateCode":"FL","latitude":"30.79186000","longitude":"-85.67965000"},{"name":"Bonita Springs","countryCode":"US","stateCode":"FL","latitude":"26.33981000","longitude":"-81.77870000"},{"name":"Boulevard Gardens","countryCode":"US","stateCode":"FL","latitude":"26.12326000","longitude":"-80.17997000"},{"name":"Bowling Green","countryCode":"US","stateCode":"FL","latitude":"27.63837000","longitude":"-81.82397000"},{"name":"Boyette","countryCode":"US","stateCode":"FL","latitude":"27.81753000","longitude":"-82.22259000"},{"name":"Boynton Beach","countryCode":"US","stateCode":"FL","latitude":"26.52535000","longitude":"-80.06643000"},{"name":"Bradenton","countryCode":"US","stateCode":"FL","latitude":"27.49893000","longitude":"-82.57482000"},{"name":"Bradenton Beach","countryCode":"US","stateCode":"FL","latitude":"27.46698000","longitude":"-82.70399000"},{"name":"Bradford County","countryCode":"US","stateCode":"FL","latitude":"29.94996000","longitude":"-82.16878000"},{"name":"Brandon","countryCode":"US","stateCode":"FL","latitude":"27.93780000","longitude":"-82.28592000"},{"name":"Brent","countryCode":"US","stateCode":"FL","latitude":"30.46881000","longitude":"-87.23608000"},{"name":"Brevard County","countryCode":"US","stateCode":"FL","latitude":"28.30031000","longitude":"-80.70121000"},{"name":"Bristol","countryCode":"US","stateCode":"FL","latitude":"30.43247000","longitude":"-84.97702000"},{"name":"Broadview Park","countryCode":"US","stateCode":"FL","latitude":"26.09953000","longitude":"-80.20866000"},{"name":"Bronson","countryCode":"US","stateCode":"FL","latitude":"29.44774000","longitude":"-82.64233000"},{"name":"Brookridge","countryCode":"US","stateCode":"FL","latitude":"28.55110000","longitude":"-82.49204000"},{"name":"Brooksville","countryCode":"US","stateCode":"FL","latitude":"28.55554000","longitude":"-82.38991000"},{"name":"Broward County","countryCode":"US","stateCode":"FL","latitude":"26.15186000","longitude":"-80.45589000"},{"name":"Broward Estates","countryCode":"US","stateCode":"FL","latitude":"26.12564000","longitude":"-80.19338000"},{"name":"Brownsville","countryCode":"US","stateCode":"FL","latitude":"25.82176000","longitude":"-80.24116000"},{"name":"Buckhead Ridge","countryCode":"US","stateCode":"FL","latitude":"27.13033000","longitude":"-80.89367000"},{"name":"Buckingham","countryCode":"US","stateCode":"FL","latitude":"26.67507000","longitude":"-81.73203000"},{"name":"Buenaventura Lakes","countryCode":"US","stateCode":"FL","latitude":"28.33584000","longitude":"-81.35313000"},{"name":"Bunche Park","countryCode":"US","stateCode":"FL","latitude":"25.92065000","longitude":"-80.23699000"},{"name":"Bunnell","countryCode":"US","stateCode":"FL","latitude":"29.46609000","longitude":"-81.25784000"},{"name":"Burnt Store Marina","countryCode":"US","stateCode":"FL","latitude":"26.76507000","longitude":"-82.05092000"},{"name":"Bushnell","countryCode":"US","stateCode":"FL","latitude":"28.66499000","longitude":"-82.11286000"},{"name":"Butler Beach","countryCode":"US","stateCode":"FL","latitude":"29.79830000","longitude":"-81.26701000"},{"name":"Calhoun County","countryCode":"US","stateCode":"FL","latitude":"30.40603000","longitude":"-85.19721000"},{"name":"Callahan","countryCode":"US","stateCode":"FL","latitude":"30.56218000","longitude":"-81.83066000"},{"name":"Callaway","countryCo...
                                                                                                                                                                                                                    
                                                                                                    

Cities by country code - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/2653/country+and+city+insights+api/5257/cities+by+country+code?countrycode=us&statecode=fl' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Country and City Insights API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

๐Ÿš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • โœ”๏ธŽ Only Pay for Successful Requests
  • โœ”๏ธŽ Free 7-Day Trial
  • โœ”๏ธŽ Multi-Language Support
  • โœ”๏ธŽ One API Key, All APIs.
  • โœ”๏ธŽ Intuitive Dashboard
  • โœ”๏ธŽ Comprehensive Error Handling
  • โœ”๏ธŽ Developer-Friendly Docs
  • โœ”๏ธŽ Postman Integration
  • โœ”๏ธŽ Secure HTTPS Connections
  • โœ”๏ธŽ Reliable Uptime

To use this API you must indicate the name of a city, country or ISO code.

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.

The Country and City Insights API is a powerful tool that provides access to a wide range of data about countries and cities worldwide.

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldโ€™s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the โ€˜X-Zyla-API-Calls-Monthly-Remainingโ€™ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the โ€˜X-Zyla-RateLimit-Limitโ€™ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The โ€˜X-Zyla-RateLimit-Resetโ€™ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, itโ€™s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
528ms

Category:


Related APIs