Global Country Insights API

The Global Country Insights API provides an extensive array of country data to meet diverse application requirements and informational needs.

About the API:  

The Global Country Insights API is a powerful resource that provides a wealth of information on countries, cities and states around the world. This comprehensive overview illustrates the importance, applications and potential of this valuable API.

Designed to be accessible, the Global Country Insights API offers seamless access to an extensive database. Obtaining the data from reputable sources ensures its integrity. Tailored for both experienced and novice users, the API facilitates the integration of location data into various projects with ease.

At its core are intricate country details, covering key data such as country codes and language codes. This information is indispensable for users seeking to expand around the world, travelers planning their trips, and educators fostering global awareness in their classrooms. In addition, understanding the geopolitical dynamics of countries is vital for cross-border research and international collaboration.

Cities are vibrant centers of commerce, culture and human interaction. The API provides a rich repository of information on cities around the world. This data is a boon to users targeting specific urban markets, travel enthusiasts planning adventures, and urban planners making informed decisions about infrastructure and urban development.

Our world's linguistic diversity reflects its cultural richness. For applications and services that strive to offer multilingual content and support, the API provides crucial information by revealing the linguistic codes of the official languages spoken in each country. In this way, tailored offerings can be made, fostering inclusiveness and global accessibility.

The Global Country Insights API is emerging as an indispensable asset that provides users, businesses, researchers and educators with a comprehensive set of country-focused data. Its adaptability, easy-to-use interface and broad functionality make it essential for a wide variety of industries. Whether you are expanding your business, planning your next expedition, delving into academic research or simply embarking on a journey of discovery, this API provides you with the data you need to make informed decisions and find innovative solutions. Discover limitless possibilities for your projects and research, explore the global tapestry with the Global Country Insights API.

 

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. Web content enhancement: Automatically generate relevant images to complement articles, blog posts and website content, making them more engaging.

  2. Social media posts: Quickly create eye-catching images for social media posts and ads based on keywords and hashtags.

  3. Online learning materials: Enhance educational materials with visuals, making complex concepts more understandable and engaging for learners.

  4. Product catalogs: Generate product images and descriptions for e-commerce websites, streamlining the listing process.

  5. Chatbots and virtual assistants: Enrich chatbot conversations with relevant images to improve user engagement and understanding.

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation.

API Documentation

Endpoints


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



                                                                            
GET https://zylalabs.com/api/4067/global+country+insights+api/4892/all+countries
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"id":1,"countryName":"Afghanistan","countryCode":"AF","languageCode":"af"},{"id":2,"countryName":"Aland Islands","countryCode":"AX","languageCode":"ax"},{"id":3,"countryName":"Albania","countryCode":"AL","languageCode":"al"},{"id":4,"countryName":"Algeria","countryCode":"DZ","languageCode":"dz"},{"id":5,"countryName":"American Samoa","countryCode":"AS","languageCode":"as"},{"id":6,"countryName":"Andorra","countryCode":"AD","languageCode":"ad"},{"id":7,"countryName":"Angola","countryCode":"AO","languageCode":"ao"},{"id":8,"countryName":"Anguilla","countryCode":"AI","languageCode":"ai"},{"id":9,"countryName":"Antarctica","countryCode":"AQ","languageCode":"aq"},{"id":10,"countryName":"Antigua And Barbuda","countryCode":"AG","languageCode":"ag"},{"id":11,"countryName":"Argentina","countryCode":"AR","languageCode":"ar"},{"id":12,"countryName":"Armenia","countryCode":"AM","languageCode":"am"},{"id":13,"countryName":"Aruba","countryCode":"AW","languageCode":"aw"},{"id":14,"countryName":"Australia","countryCode":"AU","languageCode":"au"},{"id":15,"countryName":"Austria","countryCode":"AT","languageCode":"at"},{"id":16,"countryName":"Azerbaijan","countryCode":"AZ","languageCode":"az"},{"id":17,"countryName":"The Bahamas","countryCode":"BS","languageCode":"bs"},{"id":18,"countryName":"Bahrain","countryCode":"BH","languageCode":"bh"},{"id":19,"countryName":"Bangladesh","countryCode":"BD","languageCode":"bd"},{"id":20,"countryName":"Barbados","countryCode":"BB","languageCode":"bb"},{"id":21,"countryName":"Belarus","countryCode":"BY","languageCode":"by"},{"id":22,"countryName":"Belgium","countryCode":"BE","languageCode":"be"},{"id":23,"countryName":"Belize","countryCode":"BZ","languageCode":"bz"},{"id":24,"countryName":"Benin","countryCode":"BJ","languageCode":"bj"},{"id":25,"countryName":"Bermuda","countryCode":"BM","languageCode":"bm"},{"id":26,"countryName":"Bhutan","countryCode":"BT","languageCode":"bt"},{"id":27,"countryName":"Bolivia","countryCode":"BO","languageCode":"bo"},{"id":28,"countryName":"Bosnia and Herzegovina","countryCode":"BA","languageCode":"ba"},{"id":29,"countryName":"Botswana","countryCode":"BW","languageCode":"bw"},{"id":30,"countryName":"Bouvet Island","countryCode":"BV","languageCode":"bv"},{"id":31,"countryName":"Brazil","countryCode":"BR","languageCode":"br"},{"id":32,"countryName":"British Indian Ocean Territory","countryCode":"IO","languageCode":"io"},{"id":33,"countryName":"Brunei","countryCode":"BN","languageCode":"bn"},{"id":34,"countryName":"Bulgaria","countryCode":"BG","languageCode":"bg"},{"id":35,"countryName":"Burkina Faso","countryCode":"BF","languageCode":"bf"},{"id":36,"countryName":"Burundi","countryCode":"BI","languageCode":"bi"},{"id":37,"countryName":"Cambodia","countryCode":"KH","languageCode":"kh"},{"id":38,"countryName":"Cameroon","countryCode":"CM","languageCode":"cm"},{"id":39,"countryName":"Canada","countryCode":"CA","languageCode":"ca"},{"id":40,"countryName":"Cape Verde","countryCode":"CV","languageCode":"cv"},{"id":41,"countryName":"Cayman Islands","countryCode":"KY","languageCode":"ky"},{"id":42,"countryName":"Central African Republic","countryCode":"CF","languageCode":"cf"},{"id":43,"countryName":"Chad","countryCode":"TD","languageCode":"td"},{"id":44,"countryName":"Chile","countryCode":"CL","languageCode":"cl"},{"id":45,"countryName":"China","countryCode":"CN","languageCode":"cn"},{"id":46,"countryName":"Christmas Island","countryCode":"CX","languageCode":"cx"},{"id":47,"countryName":"Cocos (Keeling) Islands","countryCode":"CC","languageCode":"cc"},{"id":48,"countryName":"Colombia","countryCode":"CO","languageCode":"co"},{"id":49,"countryName":"Comoros","countryCode":"KM","languageCode":"km"},{"id":50,"countryName":"Congo","countryCode":"CG","languageCode":"cg"},{"id":51,"countryName":"Democratic Republic of the Congo","countryCode":"CD","languageCode":"cd"},{"id":52,"countryName":"Cook Islands","countryCode":"CK","languageCode":"ck"},{"id":53,"countryName":"Costa Rica","countryCode":"CR","languageCode":"cr"},{"id":54,"countryName":"Cote D\u0027Ivoire (Ivory Coast)","countryCode":"CI","languageCode":"ci"},{"id":55,"countryName":"Croatia","countryCode":"HR","languageCode":"hr"},{"id":56,"countryName":"Cuba","countryCode":"CU","languageCode":"cu"},{"id":57,"countryName":"Cyprus","countryCode":"CY","languageCode":"cy"},{"id":58,"countryName":"Czech Republic","countryCode":"CZ","languageCode":"cz"},{"id":59,"countryName":"Denmark","countryCode":"DK","languageCode":"dk"},{"id":60,"countryName":"Djibouti","countryCode":"DJ","languageCode":"dj"},{"id":61,"countryName":"Dominica","countryCode":"DM","languageCode":"dm"},{"id":62,"countryName":"Dominican Republic","countryCode":"DO","languageCode":"do"},{"id":63,"countryName":"East Timor","countryCode":"TL","languageCode":"tl"},{"id":64,"countryName":"Ecuador","countryCode":"EC","languageCode":"ec"},{"id":65,"countryName":"Egypt","countryCode":"EG","languageCode":"eg"},{"id":66,"countryName":"El Salvador","countryCode":"SV","languageCode":"sv"},{"id":67,"countryName":"Equatorial Guinea","countryCode":"GQ","languageCode":"gq"},{"id":68,"countryName":"Eritrea","countryCode":"ER","languageCode":"er"},{"id":69,"countryName":"Estonia","countryCode":"EE","languageCode":"ee"},{"id":70,"countryName":"Ethiopia","countryCode":"ET","languageCode":"et"},{"id":71,"countryName":"Falkland Islands","countryCode":"FK","languageCode":"fk"},{"id":72,"countryName":"Faroe Islands","countryCode":"FO","languageCode":"fo"},{"id":73,"countryName":"Fiji Islands","countryCode":"FJ","languageCode":"fj"},{"id":74,"countryName":"Finland","countryCode":"FI","languageCode":"fi"},{"id":75,"countryName":"France","countryCode":"FR","languageCode":"fr"},{"id":76,"countryName":"French Guiana","countryCode":"GF","languageCode":"gf"},{"id":77,"countryName":"French Polynesia","countryCode":"PF","languageCode":"pf"},{"id":78,"countryName":"French Southern Territories","countryCode":"TF","languageCode":"tf"},{"id":79,"countryName":"Gabon","countryCode":"GA","languageCode":"ga"},{"id":80,"countryName":"The Gambia ","countryCode":"GM","languageCode":"gm"},{"id":81,"countryName":"Georgia","countryCode":"GE","languageCode":"ge"},{"id":82,"countryName":"Germany","countryCode":"DE","languageCode":"de"},{"id":83,"countryName":"Ghana","countryCode":"GH","languageCode":"gh"},{"id":84,"countryName":"Gibraltar","countryCode":"GI","languageCode":"gi"},{"id":85,"countryName":"Greece","countryCode":"GR","languageCode":"gr"},{"id":86,"countryName":"Greenland","countryCode":"GL","languageCode":"gl"},{"id":87,"countryName":"Grenada","countryCode":"GD","languageCode":"gd"},{"id":88,"countryName":"Guadeloupe","countryCode":"GP","languageCode":"gp"},{"id":89,"countryName":"Guam","countryCode":"GU","languageCode":"gu"},{"id":90,"countryName":"Guatemala","countryCode":"GT","languageCode":"gt"},{"id":91,"countryName":"Guernsey and Alderney","countryCode":"GG","languageCode":"gg"},{"id":92,"countryName":"Guinea","countryCode":"GN","languageCode":"gn"},{"id":93,"countryName":"Guinea-Bissau","countryCode":"GW","languageCode":"gw"},{"id":94,"countryName":"Guyana","countryCode":"GY","languageCode":"gy"},{"id":95,"countryName":"Haiti","countryCode":"HT","languageCode":"ht"},{"id":96,"countryName":"Heard Island and McDonald Islands","countryCode":"HM","languageCode":"hm"},{"id":97,"countryName":"Honduras","countryCode":"HN","languageCode":"hn"},{"id":98,"countryName":"Hong Kong S.A.R.","countryCode":"HK","languageCode":"hk"},{"id":99,"countryName":"Hungary","countryCode":"HU","languageCode":"hu"},{"id":100,"countryName":"Iceland","countryCode":"IS","languageCode":"is"},{"id":101,"countryName":"India","countryCode":"IN","languageCode":"in"},{"id":102,"countryName":"Indonesia","countryCode":"ID","languageCode":"id"},{"id":103,"countryName":"Iran","countryCode":"IR","languageCode":"ir"},{"id":104,"countryName":"Iraq","countryCode":"IQ","languageCode":"iq"},{"id":105,"countryName":"Ireland","countryCode":"IE","languageCode":"ie"},{"id":106,"countryName":"Israel","countryCode":"IL","languageCode":"il"},{"id":107,"countryName":"Italy","countryCode":"IT","languageCode":"it"},{"id":108,"countryName":"Jamaica","countryCode":"JM","languageCode":"jm"},{"id":109,"countryName":"Japan","countryCode":"JP","languageCode":"jp"},{"id":110,"countryName":"Jersey","countryCode":"JE","languageCode":"je"},{"id":111,"countryName":"Jordan","countryCode":"JO","languageCode":"jo"},{"id":112,"countryName":"Kazakhstan","countryCode":"KZ","languageCode":"kz"},{"id":113,"countryName":"Kenya","countryCode":"KE","languageCode":"ke"},{"id":114,"countryName":"Kiribati","countryCode":"KI","languageCode":"ki"},{"id":115,"countryName":"North Korea","countryCode":"KP","languageCode":"kp"},{"id":116,"countryName":"South Korea","countryCode":"KR","languageCode":"kr"},{"id":117,"countryName":"Kuwait","countryCode":"KW","languageCode":"kw"},{"id":118,"countryName":"Kyrgyzstan","countryCode":"KG","languageCode":"kg"},{"id":119,"countryName":"Laos","countryCode":"LA","languageCode":"la"},{"id":120,"countryName":"Latvia","countryCode":"LV","languageCode":"lv"},{"id":121,"countryName":"Lebanon","countryCode":"LB","languageCode":"lb"},{"id":122,"countryName":"Lesotho","countryCode":"LS","languageCode":"ls"},{"id":123,"countryName":"Liberia","countryCode":"LR","languageCode":"lr"},{"id":124,"countryName":"Libya","countryCode":"LY","languageCode":"ly"},{"id":125,"countryName":"Liechtenstein","countryCode":"LI","languageCode":"li"},{"id":126,"countryName":"Lithuania","countryCode":"LT","languageCode":"lt"},{"id":127,"countryName":"Luxembourg","countryCode":"LU","languageCode":"lu"},{"id":128,"countryName":"Macau S.A.R.","countryCode":"MO","languageCode":"mo"},{"id":129,"countryName":"North Macedonia","countryCode":"MK","languageCode":"mk"},{"id":130,"countryName":"Madagascar","countryCode":"MG","languageCode":"mg"},{"id":131,"countryName":"Malawi","countryCode":"MW","languageCode":"mw"},{"id":132,"countryName":"Malaysia","countryCode":"MY","lan...
                                                                                                                                                                                                                    
                                                                                                    

All Countries - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4067/global+country+insights+api/4892/all+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    

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



                                                                            
GET https://zylalabs.com/api/4067/global+country+insights+api/4893/city+by+country+id
                                                                            
                                                                        

City by country ID - Endpoint Features

Object Description
countryId [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"id":50,"cityName":"Andkhoy","cityCode":null},{"id":51,"cityName":"Asadabad","cityCode":null},{"id":52,"cityName":"Ashk\u0101sham","cityCode":null},{"id":53,"cityName":"A\u012bbak","cityCode":null},{"id":54,"cityName":"Baghl\u0101n","cityCode":null},{"id":55,"cityName":"Balkh","cityCode":null},{"id":56,"cityName":"Baraki Barak","cityCode":null},{"id":57,"cityName":"B\u0101my\u0101n","cityCode":null},{"id":58,"cityName":"B\u0101sawul","cityCode":null},{"id":59,"cityName":"B\u0101z\u0101rak","cityCode":null},{"id":60,"cityName":"Chah\u0101r Burj","cityCode":null},{"id":61,"cityName":"Charikar","cityCode":null},{"id":62,"cityName":"Ch\u012bras","cityCode":null},{"id":63,"cityName":"Darz\u0101b","cityCode":null},{"id":64,"cityName":"Dasht-e Arch\u012b","cityCode":null},{"id":65,"cityName":"Dowlat\u0101b\u0101d","cityCode":null},{"id":66,"cityName":"Farah","cityCode":null},{"id":67,"cityName":"Fayr\u014dz K\u014dh","cityCode":null},{"id":68,"cityName":"Fayzabad","cityCode":null},{"id":69,"cityName":"Gardez","cityCode":null},{"id":70,"cityName":"Gereshk","cityCode":null},{"id":71,"cityName":"Ghazni","cityCode":null},{"id":72,"cityName":"Ghormach","cityCode":null},{"id":73,"cityName":"Gh\u014driy\u0101n","cityCode":null},{"id":74,"cityName":"Her\u0101t","cityCode":null},{"id":75,"cityName":"Im\u0101m \u015e\u0101\u1e29ib","cityCode":null},{"id":76,"cityName":"Jabal os Saraj","cityCode":null},{"id":77,"cityName":"Jal\u0101l\u0101b\u0101d","cityCode":null},{"id":78,"cityName":"Jurm","cityCode":null},{"id":79,"cityName":"Kabul","cityCode":null},{"id":80,"cityName":"Kafir Qala","cityCode":null},{"id":81,"cityName":"Kandah\u0101r","cityCode":null},{"id":82,"cityName":"Karukh","cityCode":null},{"id":83,"cityName":"Khanabad","cityCode":null},{"id":84,"cityName":"Khand\u016bd","cityCode":null},{"id":85,"cityName":"Khulm","cityCode":null},{"id":86,"cityName":"Kh\u0101sh","cityCode":null},{"id":87,"cityName":"Kh\u014dst","cityCode":null},{"id":88,"cityName":"Kuhs\u0101n","cityCode":null},{"id":89,"cityName":"Kunduz","cityCode":null},{"id":90,"cityName":"Kushk","cityCode":null},{"id":91,"cityName":"Lab-Sar","cityCode":null},{"id":92,"cityName":"Larkird","cityCode":null},{"id":93,"cityName":"Lashkar G\u0101h","cityCode":null},{"id":94,"cityName":"Markaz-e Woluswal\u012b-ye \u0100ch\u012bn","cityCode":null},{"id":95,"cityName":"Markaz-e \u1e28uk\u016bmat-e Darw\u0113sh\u0101n","cityCode":null},{"id":96,"cityName":"Maymana","cityCode":null},{"id":97,"cityName":"Maz\u0101r-e Shar\u012bf","cityCode":null},{"id":98,"cityName":"Mehtar L\u0101m","cityCode":null},{"id":99,"cityName":"M\u012br Bachah K\u014d\u1e6f","cityCode":null},{"id":100,"cityName":"M\u012br\u0101b\u0101d","cityCode":null},{"id":101,"cityName":"Nahr\u012bn","cityCode":null},{"id":102,"cityName":"N\u012bl\u012b","cityCode":null},{"id":103,"cityName":"Paghm\u0101n","cityCode":null},{"id":104,"cityName":"Panj\u0101b","cityCode":null},{"id":105,"cityName":"Pul-e Khumr\u012b","cityCode":null},{"id":106,"cityName":"Pul-e \u2018Alam","cityCode":null},{"id":107,"cityName":"P\u0101r\u016bn","cityCode":null},{"id":108,"cityName":"Qala i Naw","cityCode":null},{"id":109,"cityName":"Qal\u0101t","cityCode":null},{"id":110,"cityName":"Qal\u2018ah-ye Shahr","cityCode":null},{"id":111,"cityName":"Qarah B\u0101gh","cityCode":null},{"id":112,"cityName":"Qarch\u012b Gak","cityCode":null},{"id":113,"cityName":"Qarq\u012bn","cityCode":null},{"id":114,"cityName":"Qar\u0101wul","cityCode":null},{"id":115,"cityName":"R\u0101ghist\u0101n","cityCode":null},{"id":116,"cityName":"R\u016bdb\u0101r","cityCode":null},{"id":117,"cityName":"Sang-e Ch\u0101rak","cityCode":null},{"id":118,"cityName":"Sang\u012bn","cityCode":null},{"id":119,"cityName":"Sar-e Pul","cityCode":null},{"id":120,"cityName":"Sa\u1e5f\u014db\u012b","cityCode":null},{"id":121,"cityName":"Shahrak","cityCode":null},{"id":122,"cityName":"Shibirgh\u0101n","cityCode":null},{"id":123,"cityName":"Sh\u012bn\u1e0fan\u1e0f","cityCode":null},{"id":124,"cityName":"Sidq\u0101b\u0101d","cityCode":null},{"id":125,"cityName":"Tag\u0101w-B\u0101y","cityCode":null},{"id":126,"cityName":"Taloqan","cityCode":null},{"id":127,"cityName":"Tarinkot","cityCode":null},{"id":128,"cityName":"Tukz\u0101r","cityCode":null},{"id":129,"cityName":"T\u012br Pul","cityCode":null},{"id":130,"cityName":"Uruzg\u0101n","cityCode":null},{"id":131,"cityName":"W\u0101kh\u0101n","cityCode":null},{"id":132,"cityName":"Zaranj","cityCode":null},{"id":133,"cityName":"Zargh\u016bn Shahr","cityCode":null},{"id":134,"cityName":"Za\u1e5fah Sharan","cityCode":null},{"id":135,"cityName":"Zindah J\u0101n","cityCode":null},{"id":136,"cityName":"\u0100qchah","cityCode":null},{"id":137,"cityName":"\u0100rt Khw\u0101jah","cityCode":null},{"id":138,"cityName":"\u0100sm\u0101r","cityCode":null},{"id":139,"cityName":"\u1e28uk\u016bmat\u012b Azrah","cityCode":null},{"id":140,"cityName":"\u1e28uk\u016bmat\u012b Dahanah-ye Gh\u014dr\u012b","cityCode":null},{"id":141,"cityName":"\u2018Al\u0101qahd\u0101r\u012b D\u012bsh\u016b","cityCode":null}]
                                                                                                                                                                                                                    
                                                                                                    

City by country ID - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4067/global+country+insights+api/4893/city+by+country+id?countryId=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

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



                                                                            
GET https://zylalabs.com/api/4067/global+country+insights+api/4894/states+by+country+id
                                                                            
                                                                        

States by country ID - Endpoint Features

Object Description
countryId [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"id":3773,"stateName":"Ghazni","stateCode":"GHA"},{"id":3774,"stateName":"Badghis","stateCode":"BDG"},{"id":3775,"stateName":"Bamyan","stateCode":"BAM"},{"id":3776,"stateName":"Helmand","stateCode":"HEL"},{"id":3777,"stateName":"Zabul","stateCode":"ZAB"},{"id":3778,"stateName":"Baghlan","stateCode":"BGL"},{"id":3779,"stateName":"Kunar","stateCode":"KNR"},{"id":3780,"stateName":"Paktika","stateCode":"PKA"},{"id":3781,"stateName":"Khost","stateCode":"KHO"},{"id":3782,"stateName":"Kapisa","stateCode":"KAP"},{"id":3783,"stateName":"Nuristan","stateCode":"NUR"},{"id":3784,"stateName":"Panjshir","stateCode":"PAN"},{"id":3785,"stateName":"Nangarhar","stateCode":"NAN"},{"id":3786,"stateName":"Samangan","stateCode":"SAM"},{"id":3787,"stateName":"Balkh","stateCode":"BAL"},{"id":3788,"stateName":"Sar-e Pol","stateCode":"SAR"},{"id":3789,"stateName":"Jowzjan","stateCode":"JOW"},{"id":3790,"stateName":"Herat","stateCode":"HER"},{"id":3791,"stateName":"Gh\u014dr","stateCode":"GHO"},{"id":3792,"stateName":"Faryab","stateCode":"FYB"},{"id":3793,"stateName":"Kandahar","stateCode":"KAN"},{"id":3794,"stateName":"Laghman","stateCode":"LAG"},{"id":3795,"stateName":"Daykundi","stateCode":"DAY"},{"id":3796,"stateName":"Takhar","stateCode":"TAK"},{"id":3797,"stateName":"Paktia","stateCode":"PIA"},{"id":3798,"stateName":"Parwan","stateCode":"PAR"},{"id":3799,"stateName":"Nimruz","stateCode":"NIM"},{"id":3800,"stateName":"Logar","stateCode":"LOG"},{"id":3801,"stateName":"Urozgan","stateCode":"URU"},{"id":3802,"stateName":"Farah","stateCode":"FRA"},{"id":3803,"stateName":"Kunduz Province","stateCode":"KDZ"},{"id":3804,"stateName":"Badakhshan","stateCode":"BDS"},{"id":3805,"stateName":"Kabul","stateCode":"KAB"}]
                                                                                                                                                                                                                    
                                                                                                    

States by country ID - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4067/global+country+insights+api/4894/states+by+country+id?countryId=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

To use this endpoint you must indicate the ID of a state in the parameter.



                                                                            
GET https://zylalabs.com/api/4067/global+country+insights+api/4895/city+by+state+id
                                                                            
                                                                        

City by state ID - Endpoint Features

Object Description
stateId [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"id":37981,"cityName":"Alaba Special Wereda","cityCode":null},{"id":37982,"cityName":"Arba Minch","cityCode":null},{"id":37988,"cityName":"Bako","cityCode":null},{"id":37992,"cityName":"Bench Maji Zone","cityCode":null},{"id":37995,"cityName":"Bod\u012bt\u012b","cityCode":null},{"id":37996,"cityName":"Bonga","cityCode":null},{"id":37998,"cityName":"Butaj\u012bra","cityCode":null},{"id":38014,"cityName":"D\u012bla","cityCode":null},{"id":38018,"cityName":"Felege Neway","cityCode":null},{"id":38023,"cityName":"Gedeo Zone","cityCode":null},{"id":38034,"cityName":"Guraghe Zone","cityCode":null},{"id":38036,"cityName":"G\u012bdol\u0113","cityCode":null},{"id":38037,"cityName":"Hadiya Zone","cityCode":null},{"id":38040,"cityName":"Hawassa","cityCode":null},{"id":38041,"cityName":"Hosa\u2019ina","cityCode":null},{"id":38044,"cityName":"H\u0101gere Selam","cityCode":null},{"id":38051,"cityName":"Jinka","cityCode":null},{"id":38052,"cityName":"Kembata Alaba Tembaro Zone","cityCode":null},{"id":38057,"cityName":"Konso","cityCode":null},{"id":38059,"cityName":"K\u2019ol\u012bto","cityCode":null},{"id":38061,"cityName":"Leku","cityCode":null},{"id":38063,"cityName":"Lobuni","cityCode":null},{"id":38072,"cityName":"M\u012bzan Tefer\u012b","cityCode":null},{"id":38085,"cityName":"Sheka Zone","cityCode":null},{"id":38087,"cityName":"Sidama Zone","cityCode":null},{"id":38089,"cityName":"Sodo","cityCode":null},{"id":38094,"cityName":"Tippi","cityCode":null},{"id":38096,"cityName":"Turmi","cityCode":null},{"id":38099,"cityName":"Wendo","cityCode":null},{"id":38105,"cityName":"Wolayita Zone","cityCode":null},{"id":38107,"cityName":"Yem","cityCode":null},{"id":38108,"cityName":"Yirga \u2018Alem","cityCode":null},{"id":38114,"cityName":"\u0100reka","cityCode":null}]
                                                                                                                                                                                                                    
                                                                                                    

City by state ID - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4067/global+country+insights+api/4895/city+by+state+id?stateId=1' --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 Global Country 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • 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

Global Country Insights API FAQs

To use this API the user must indicate a country or state id.

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 Country Insights API is a tool that provides users: countries, cities and states around the world.

You would need a Global Country Insights API to gain access to a comprehensive database of country-specific information, including demographics, geographic details, language statistics, and more.

Each endpoint returns JSON data. The "GET All Countries" endpoint provides a list of countries with their names, codes, and language codes. The "GET City by country ID" and "GET States by country ID" endpoints return cities and states associated with a specific country, respectively, including their names and codes.

Key fields in the response data include "countryName," "countryCode," and "languageCode" for countries; "cityName" and "cityCode" for cities; and "stateName" and "stateCode" for states. These fields provide essential identifiers and names for each geographical entity.

The response data is organized as an array of objects. Each object represents a geographical entity (country, city, or state) and contains key-value pairs for relevant attributes, making it easy to parse and utilize in applications.

The "GET All Countries" endpoint provides country names, codes, and language codes. The "GET City by country ID" and "GET States by country ID" endpoints return city and state names and codes, respectively, allowing users to access detailed geographical hierarchies.

The "GET City by country ID" and "GET States by country ID" endpoints require a "country ID" parameter, while the "GET City by state ID" endpoint requires a "state ID." These parameters allow users to filter data based on specific geographical contexts.

Users can utilize the returned data by integrating it into applications for various purposes, such as displaying country information, creating location-based services, or enhancing educational content. The structured JSON format allows for easy manipulation and display in user interfaces.

The Global Country Insights API sources its data from reputable and authoritative databases, ensuring the integrity and reliability of the information provided. This commitment to quality helps users trust the data for critical applications.

Typical use cases include enhancing travel applications with country and city information, supporting educational platforms with geographical data, and aiding businesses in market research by providing insights into different regions and their demographics.

General FAQs

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, refer to the β€˜X-Zyla-API-Calls-Monthly-Remaining’ field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.

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 3,600, it means 3,600 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 give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs


You might also like