International Country Insights API

The International Country Insights API offers a wealth of data about countries, catering to various applications and informational needs.

About the API:  

The International Country Insights API is a powerful tool that opens the door to a treasure trove of information about countries, cities and states around the world. This comprehensive overview sheds light on the importance, applications and potential of this valuable API.

The International Country Insights API is an easy-to-use web service that provides seamless access to a vast repository of data. This data covers countries, cities and states around the world, all aggregated from reputable sources to ensure data integrity. Designed with ease of use in mind, the API is aimed at both experienced developers and beginners who want to incorporate location data into their projects.

At the core of this API is detailed country information. Users can drill down to data such as: countries, country code, language code. This information is invaluable to companies looking for global expansion opportunities, travelers planning their trips, and educators crafting lessons that promote global awareness. In addition, understanding the geopolitical landscape of countries is crucial for conducting cross-border research and fostering international collaboration.

Cities are dynamic centers of commerce, culture and human interaction. The API offers a wealth of information on a significant number of cities around the world. This data is a gold mine for companies targeting specific urban markets, travel enthusiasts planning their explorations, and urban planners charged with making informed decisions about infrastructure development and city growth.

The diversity of languages spoken in the world is a testament to our cultural richness. For applications and services that aim to offer multilingual content and support, the API provides valuable information by revealing the linguistic code of the official languages spoken in a country. This allows users to tailor their offerings to language preferences, fostering inclusiveness and accessibility on a global scale.

The International Country Insights API is emerging as an indispensable resource that provides users, businesses, researchers and educators with a comprehensive set of country-based data. Its versatility, ease of use and extensive functionality make it an essential tool for a wide range of applications in a variety of industries. Whether you are expanding your business, planning your next adventure, conducting academic research or simply exploring the world, this API provides you with the data you need to make informed decisions and create innovative solutions. Explore the global landscape with the Countries, International Country Insights API and unlock unlimited possibilities for your projects and research.

 

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/2563/international+country+insights+api/2554/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/2563/international+country+insights+api/2554/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/2563/international+country+insights+api/2555/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/2563/international+country+insights+api/2555/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/2563/international+country+insights+api/2556/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/2563/international+country+insights+api/2556/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/2563/international+country+insights+api/2557/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/2563/international+country+insights+api/2557/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 International 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 commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

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 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.

International Country Insights API is a tool that provides users: countries, cities and states around the world.

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
389ms

Category:


Related APIs