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.

Documentación de la API

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
                                                                            
                                                                        

Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            [{"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 - CÓDIGOS DE EJEMPLO


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 - Características del Endpoint

Objeto Descripción
countryId [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            [{"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 - CÓDIGOS DE EJEMPLO


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 - Características del Endpoint

Objeto Descripción
countryId [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            [{"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 - CÓDIGOS DE EJEMPLO


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 - Características del Endpoint

Objeto Descripción
stateId [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            [{"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 - CÓDIGOS DE EJEMPLO


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' 


    

Clave de Acceso a la API y Autenticación

Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el International Country Insights API simplemente incluye tu token de portador en el encabezado de Autorización.
Encabezados
Encabezado Descripción
Autorización [Requerido] Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.

Precios Simples y Transparentes

Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.

🚀 PLAN CORPORATIVO A MEDIDA

Comienza en
$ 10.000/Año


  • Volumen Personalizado
  • Límite de solicitudes personalizado
  • Soporte al Cliente Especializado
  • Monitoreo de API en Tiempo Real

Funciones favoritas de los clientes

  • ✔︎ Paga Solo por Solicitudes Exitosas
  • ✔︎ Prueba Gratuita de 7 Días
  • ✔︎ Soporte Multilenguaje
  • ✔︎ Una Clave API, Todas las APIs.
  • ✔︎ Panel de Control Intuitivo
  • ✔︎ Manejo de Errores Integral
  • ✔︎ Documentación Amigable para Desarrolladores
  • ✔︎ Integración con Postman
  • ✔︎ Conexiones HTTPS Seguras
  • ✔︎ Tiempo de Actividad Fiable

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

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

Each endpoint returns structured 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 specified country ID, 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 descriptions for each location.

The response data is organized as an array of objects, where each object represents a location (country, city, or state). Each object contains key-value pairs corresponding to the relevant fields, making it easy to parse and utilize in applications.

The "GET All Countries" endpoint provides comprehensive country data, while the "GET City by country ID" and "GET States by country ID" endpoints offer detailed lists of cities and states for a specified country. This includes names and codes, facilitating geographic and demographic analysis.

The "GET City by country ID" and "GET States by country ID" endpoints require a country ID as a parameter to retrieve relevant cities or states. The "GET City by state ID" endpoint requires a state ID to fetch cities within that state.

Users can utilize the returned data by integrating it into applications for geographic analysis, travel planning, or educational content. For example, businesses can target specific markets by analyzing city data, while educators can create lessons based on country and language information.

The data is aggregated from reputable sources to ensure accuracy and reliability. This includes government databases, international organizations, and other authoritative entities that provide up-to-date information about countries, cities, and states.

Data accuracy is maintained through regular updates and quality checks. The API aggregates information from trusted sources, ensuring that users receive reliable and current data for their applications and research needs.

General FAQs

Zyla API Hub es como una gran tienda de APIs, donde puedes encontrar miles de ellas en un solo lugar. También ofrecemos soporte dedicado y monitoreo en tiempo real de todas las APIs. Una vez que te registres, puedes elegir qué APIs quieres usar. Solo recuerda que cada API necesita su propia suscripción. Pero si te suscribes a varias, usarás la misma clave para todas, lo que hace todo más fácil para ti.

Los precios se muestran en USD (dólar estadounidense), EUR (euro), CAD (dólar canadiense), AUD (dólar australiano) y GBP (libra esterlina). Aceptamos todas las principales tarjetas de débito y crédito. Nuestro sistema de pago utiliza la última tecnología de seguridad y está respaldado por Stripe, una de las compañías de pago más confiables del mundo. Si tienes algún problema para pagar con tarjeta, contáctanos en [email protected]


Además, si ya tienes una suscripción activa en cualquiera de estas monedas (USD, EUR, CAD, AUD, GBP), esa moneda se mantendrá para suscripciones posteriores. Puedes cambiar la moneda en cualquier momento siempre que no tengas suscripciones activas.

La moneda local que aparece en la página de precios se basa en el país de tu dirección IP y se proporciona solo como referencia. Los precios reales están en USD (dólar estadounidense). Cuando realices un pago, el cargo aparecerá en tu estado de cuenta en USD, incluso si ves el monto equivalente en tu moneda local en nuestro sitio web. Esto significa que no puedes pagar directamente en tu moneda local.

Ocasionalmente, un banco puede rechazar el cargo debido a sus configuraciones de protección contra fraude. Te sugerimos comunicarte con tu banco primero para verificar si están bloqueando nuestros cargos. También puedes acceder al Portal de Facturación y cambiar la tarjeta asociada para realizar el pago. Si esto no funciona y necesitas más ayuda, por favor contacta a nuestro equipo en [email protected]

Los precios se determinan mediante una suscripción recurrente mensual o anual, dependiendo del plan elegido.

Las llamadas a la API se descuentan de tu plan en base a solicitudes exitosas. Cada plan incluye una cantidad específica de llamadas que puedes realizar por mes. Solo las llamadas exitosas, indicadas por una respuesta con estado 200, se contarán en tu total. Esto asegura que las solicitudes fallidas o incompletas no afecten tu cuota mensual.

Zyla API Hub funciona con un sistema de suscripción mensual recurrente. Tu ciclo de facturación comenzará el día en que compres uno de los planes de pago, y se renovará el mismo día del mes siguiente. Así que recuerda cancelar tu suscripción antes si quieres evitar futuros cargos.

Para actualizar tu plan de suscripción actual, simplemente ve a la página de precios de la API y selecciona el plan al que deseas actualizarte. La actualización será instantánea, permitiéndote disfrutar inmediatamente de las funciones del nuevo plan. Ten en cuenta que las llamadas restantes de tu plan anterior no se transferirán al nuevo plan, por lo que debes considerar esto al actualizar. Se te cobrará el monto total del nuevo plan.

Para verificar cuántas llamadas a la API te quedan en el mes actual, revisa el campo 'X-Zyla-API-Calls-Monthly-Remaining' en el encabezado de la respuesta. Por ejemplo, si tu plan permite 1,000 solicitudes por mes y has usado 100, este campo mostrará 900 llamadas restantes.

Para ver el número máximo de solicitudes a la API que permite tu plan, revisa el encabezado de la respuesta 'X-Zyla-RateLimit-Limit'. Por ejemplo, si tu plan incluye 1,000 solicitudes por mes, este encabezado mostrará 1,000.

El encabezado 'X-Zyla-RateLimit-Reset' muestra el número de segundos hasta que tu límite se restablezca. Esto te indica cuándo tu conteo de solicitudes se reiniciará. Por ejemplo, si muestra 3,600, significa que faltan 3,600 segundos para que el límite se restablezca.

Sí, puedes cancelar tu plan en cualquier momento desde tu cuenta, seleccionando la opción de cancelación en la página de Facturación. Ten en cuenta que las actualizaciones, degradaciones y cancelaciones tienen efecto inmediato. Además, al cancelar ya no tendrás acceso al servicio, incluso si te quedaban llamadas en tu cuota.

Puedes contactarnos a través de nuestro canal de chat para recibir asistencia inmediata. Siempre estamos en línea de 8 a. m. a 5 p. m. (EST). Si nos contactas fuera de ese horario, te responderemos lo antes posible. Además, puedes escribirnos por correo electrónico a [email protected]

Para darte la oportunidad de probar nuestras APIs sin compromiso, ofrecemos una prueba gratuita de 7 días que te permite realizar hasta 50 llamadas a la API sin costo. Esta prueba solo se puede usar una vez, por lo que recomendamos aplicarla a la API que más te interese. Aunque la mayoría de nuestras APIs ofrecen prueba gratuita, algunas pueden no hacerlo. La prueba finaliza después de 7 días o cuando realices 50 solicitudes, lo que ocurra primero. Si alcanzas el límite de 50 solicitudes durante la prueba, deberás "Iniciar tu Plan de Pago" para continuar haciendo solicitudes. Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios. Alternativamente, si no cancelas tu suscripción antes del día 7, tu prueba gratuita finalizará y tu plan se cobrará automáticamente, otorgándote acceso a todas las llamadas a la API especificadas en tu plan. Ten esto en cuenta para evitar cargos no deseados.

Después de 7 días, se te cobrará el monto total del plan al que estabas suscrito durante la prueba. Por lo tanto, es importante cancelar antes de que finalice el periodo de prueba. No se aceptan solicitudes de reembolso por olvidar cancelar a tiempo.

Cuando te suscribes a una prueba gratuita de una API, puedes realizar hasta 50 llamadas. Si deseas realizar más llamadas después de este límite, la API te pedirá que "Inicies tu Plan de Pago". Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios.

Las Órdenes de Pago se procesan entre el día 20 y el 30 de cada mes. Si envías tu solicitud antes del día 20, tu pago será procesado dentro de ese período.


APIs Relacionadas


También te puede interesar