国家数据API是一个强大而全面的工具,提供了对全球国家丰富信息的访问。通过无缝集成和易于使用的界面,此API允许用户检索广泛的国家相关数据,使其成为各种应用程序不可或缺的资源。
此API提供了大量数据,涵盖了几乎每个国家的地理、人口、首都、拨号代码等多个方面。无论您是在构建旅行应用程序、进行市场研究,还是增强数据分析,国家数据API都为您提供做出明智决策和创造吸引用户体验所需的数据。
该API的一个主要优点是其多功能性。它提供了一整套端点,允许您访问特定数据点或检索整个国家的详细信息。
API的易用性通过对多种编程语言的支持得到了增强,包括Python、Java和JavaScript等。这确保了开发者可以毫无障碍地将国家数据集成到他们的应用中,无论他们的首选编程语言是什么。
总之,国家数据API是一个强大而多功能的工具,用于获取全面的国家相关信息。其广泛的数据点、自定义端点和易于集成的特性,使其成为用户、开发者、企业、研究人员和拥有全球利益的组织的重要资源。无论您是想增强旅行应用程序、进行市场研究还是分析全球人口统计数据,这个API都为您提供了做出明智决策和创建引人入胜的数据驱动解决方案所需的数据。
它将接收参数并为您提供JSON。
旅行规划应用程序:整合国家数据,为用户提供有关目的地的信息,包括货币、首都。
电子商务本地化:根据国家货币数据定制产品供应和定价,创建量身定制的购物体验。
金融服务:使用经济数据评估投资机会,跟踪汇率并分析各国经济趋势。
人口统计分析:研究和分析人口统计以及市场细分和战略规划的人口增长。
地理制图:创建包含地理数据、国界和首都的互动地图,用于教育和旅行应用。
除了API调用次数外,没有其他限制。
要使用此端点,只需运行它,你将获得所有大洲的名称
[{"Id": 1, "Name": "Asia"}, {"Id": 2, "Name": "Africa"}, {"Id": 3, "Name": "Oceania"}, {"Id": 4, "Name": "Europe"}, {"Id": 5, "Name": "North America"}, {"Id": 6, "Name": "South America"}, {"Id": 7, "Name": "Antarctica"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2680/continents' --header 'Authorization: Bearer YOUR_API_KEY'
要使用此端点,您必须指明一个大陆的名称。
按洲划分的国家 - 端点功能
| 对象 | 描述 |
|---|
[{"Id": 1, "Name": "Afghanistan", "Flag": "http://media.tekbunny.com/countriesflags/images/af.png", "Independent": "Yes", "CountryCodes": ["AF", "AFG (ISO 3166-1)"], "OfficialName": "Islamic Emirate of Afghanistan", "CapitalCity": "Kabul", "Continent": "Asia", "MemberOf": ["United Nations", "Collective Security Treaty Organization", "Organisation of Islamic Cooperation"], "Population": "32\u00a0225\u00a0560 (2019)", "TotalArea": "652\u00a0230 km2", "HighestPoint": "Noshaq (7\u00a0492\u00a0m, 24\u00a0580\u00a0ft)", "LowestPoint": "Amu Darya (258\u00a0m, 846\u00a0ft)", "GdpPerCapita": "$ 521 (World Bank, 2018)", "Currency": "Afghan afghani (\u060b, AFN)", "CallingCode": ["+93"], "InternetTld": ".af"}, {"Id": 12, "Name": "Armenia", "Flag": "http://media.tekbunny.com/countriesflags/images/am.png", "Independent": "Yes", "CountryCodes": ["AM", "ARM (ISO 3166-1)"], "OfficialName": "Republic of Armenia", "CapitalCity": "Yerevan", "Continent": "Asia", "MemberOf": ["United Nations", "Collective Security Treaty Organization", "Commonwealth of Independent States", "Eurasian Economic Union"], "Population": "2\u00a0957\u00a0500 (2019)", "TotalArea": "29\u00a0743 km2", "HighestPoint": "Mount Aragats (4\u00a0090\u00a0m, 13\u00a0419\u00a0ft)", "LowestPoint": "Debed (400\u00a0m, 1\u00a0312\u00a0ft)", "GdpPerCapita": "$ 4\u00a0212 (World Bank, 2018)", "Currency": "Armenian dram (\u058f, AMD)", "CallingCode": ["+374"], "InternetTld": ".am"}, {"Id": 16, "Name": "Azerbaijan", "Flag": "http://media.tekbunny.com/countriesflags/images/az.png", "Independent": "Yes", "CountryCodes": ["AZ", "AZE (ISO 3166-1)"], "OfficialName": "Republic of Azerbaijan", "CapitalCity": "Baku", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Independent States", "Turkic Council", "Organisation of Islamic Cooperation"], "Population": "10\u00a0067\u00a0108 (2020)", "TotalArea": "86\u00a0600 km2", "HighestPoint": "Mount Bazard\u00fcz\u00fc (4\u00a0485\u00a0m, 14\u00a0715\u00a0ft)", "LowestPoint": "Caspian Sea (-28\u00a0m, -92\u00a0ft)", "GdpPerCapita": "$ 4\u00a0721 (World Bank, 2018)", "Currency": "Azerbaijani manat (\u20bc, AZN)", "CallingCode": ["+994"], "InternetTld": ".az"}, {"Id": 18, "Name": "Bahrain", "Flag": "http://media.tekbunny.com/countriesflags/images/bh.png", "Independent": "Yes", "CountryCodes": ["BH", "BHR (ISO 3166-1)"], "OfficialName": "Kingdom of Bahrain", "CapitalCity": "Manama", "Continent": "Asia", "MemberOf": ["United Nations", "Gulf Cooperation Council", "Arab League", "Organisation of Islamic Cooperation"], "Population": "1\u00a0543\u00a0300 (2019)", "TotalArea": "778 km2", "HighestPoint": "Mountain of Smoke (122\u00a0m, 400\u00a0ft)", "LowestPoint": "Persian Gulf", "GdpPerCapita": "$ 24\u00a0051 (World Bank, 2018)", "Currency": "Bahraini dinar (.\u062f.\u0628, BHD)", "CallingCode": ["+973"], "InternetTld": ".bh"}, {"Id": 19, "Name": "Bangladesh", "Flag": "http://media.tekbunny.com/countriesflags/images/bd.png", "Independent": "Yes", "CountryCodes": ["BD", "BGD (ISO 3166-1)"], "OfficialName": "People's Republic of Bangladesh", "CapitalCity": "Dhaka", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations", "Organisation of Islamic Cooperation"], "Population": "168\u00a0163\u00a0758 (2020)", "TotalArea": "147\u00a0570 km2", "HighestPoint": "Saka Haphong (1\u00a0052\u00a0m, 3\u00a0451\u00a0ft)", "LowestPoint": "Bay of Bengal", "GdpPerCapita": "$ 1\u00a0698 (World Bank, 2018)", "Currency": "Bangladeshi taka (\u09f3, BDT)", "CallingCode": ["+880"], "InternetTld": ".bd"}, {"Id": 26, "Name": "Bhutan", "Flag": "http://media.tekbunny.com/countriesflags/images/bt.png", "Independent": "Yes", "CountryCodes": ["BT", "BTN (ISO 3166-1)"], "OfficialName": "Kingdom of Bhutan", "CapitalCity": "Thimphu", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "741\u00a0672 (2019)", "TotalArea": "38\u00a0394 km2", "HighestPoint": "Gangkhar Puensum (7\u00a0570\u00a0m, 24\u00a0836\u00a0ft)", "LowestPoint": "Drangme Chhu (97\u00a0m, 318\u00a0ft)", "GdpPerCapita": "$ 3\u00a0243 (World Bank, 2018)", "Currency": "Bhutanese ngultrum (Nu., BTN)", "CallingCode": ["+975"], "InternetTld": ".bt"}, {"Id": 33, "Name": "Brunei", "Flag": "http://media.tekbunny.com/countriesflags/images/bn.png", "Independent": "Yes", "CountryCodes": ["BN", "BRN (ISO 3166-1)"], "OfficialName": "Nation of Brunei, Abode of Peace", "CapitalCity": "Bandar Seri Begawan", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations", "Association of Southeast Asian Nations", "Organisation of Islamic Cooperation"], "Population": "442\u00a0400 (2018)", "TotalArea": "5\u00a0765 km2", "HighestPoint": "Bukit Pagon (1\u00a0850\u00a0m, 6\u00a0070\u00a0ft)", "LowestPoint": "South China Sea", "GdpPerCapita": "$ 31\u00a0628 (World Bank, 2018)", "Currency": "Brunei dollar ($, BND)", "CallingCode": ["+673"], "InternetTld": ".bn"}, {"Id": 37, "Name": "Cambodia", "Flag": "http://media.tekbunny.com/countriesflags/images/kh.png", "Independent": "Yes", "CountryCodes": ["KH", "KHM (ISO 3166-1)"], "OfficialName": "Kingdom of Cambodia", "CapitalCity": "Phnom Penh", "Continent": "Asia", "MemberOf": ["United Nations", "Association of Southeast Asian Nations"], "Population": "15\u00a0288\u00a0489 (2019)", "TotalArea": "181\u00a0035 km2", "HighestPoint": "Phnom Aural (1\u00a0810\u00a0m, 5\u00a0938\u00a0ft)", "LowestPoint": "Gulf of Thailand", "GdpPerCapita": "$ 1\u00a0510 (World Bank, 2018)", "Currency": "Cambodian riel (\u17db, KHR)", "CallingCode": ["+855"], "InternetTld": ".kh"}, {"Id": 46, "Name": "China", "Flag": "http://media.tekbunny.com/countriesflags/images/cn.png", "Independent": "Yes", "CountryCodes": ["CN", "CHN (ISO 3166-1)"], "OfficialName": "People's Republic of China", "CapitalCity": "Beijing", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "1\u00a0401\u00a0492\u00a0920 (2020)", "TotalArea": "9\u00a0596\u00a0960 km2", "HighestPoint": "Mount Everest (8\u00a0848\u00a0m, 29\u00a0029\u00a0ft)", "LowestPoint": "Ayding Lake (-154\u00a0m, -505\u00a0ft)", "GdpPerCapita": "$ 9\u00a0771 (World Bank, 2018)", "Currency": "Chinese yuan (\u00a5, CNY)", "CallingCode": ["+86"], "InternetTld": ".cn, .\u4e2d\u56fd, .\u4e2d\u570b, .\u516c\u53f8, .\u7f51\u7edc"}, {"Id": 66, "Name": "Egypt", "Flag": "http://media.tekbunny.com/countriesflags/images/eg.png", "Independent": "Yes", "CountryCodes": ["EG", "EGY (ISO 3166-1)"], "OfficialName": "Arab Republic of Egypt", "CapitalCity": "Cairo", "Continent": "Africa, Asia", "MemberOf": ["United Nations", "African Union", "Arab League", "Organisation of Islamic Cooperation"], "Population": "100\u00a0052\u00a0943 (2020)", "TotalArea": "1\u00a0002\u00a0450 km2", "HighestPoint": "Mount Catherine (2\u00a0629\u00a0m, 8\u00a0625\u00a0ft)", "LowestPoint": "Qattara Depression (-133\u00a0m, -436\u00a0ft)", "GdpPerCapita": "$ 2\u00a0549 (World Bank, 2018)", "Currency": "Egyptian pound (E\u00a3, EGP)", "CallingCode": ["+20"], "InternetTld": ".eg, .\u0645\u0635\u0631"}, {"Id": 84, "Name": "Georgia", "Flag": "http://media.tekbunny.com/countriesflags/images/ge.png", "Independent": "Yes", "CountryCodes": ["GE", "GEO (ISO 3166-1)"], "OfficialName": "Georgia", "CapitalCity": "Tbilisi", "Continent": "Asia", "MemberOf": ["United Nations"], "Population": "3\u00a0723\u00a0464 (2019)", "TotalArea": "69\u00a0700 km2", "HighestPoint": "Shkhara (5\u00a0201\u00a0m, 17\u00a0064\u00a0ft)", "LowestPoint": "Black Sea", "GdpPerCapita": "$ 4\u00a0717 (World Bank, 2018)", "Currency": "Georgian lari (\u20be, GEL)", "CallingCode": ["+995"], "InternetTld": ".ge"}, {"Id": 101, "Name": "Hong Kong", "Flag": "http://media.tekbunny.com/countriesflags/images/hk.png", "Independent": "No", "CountryCodes": ["HK", "HKG (ISO 3166-1)"], "OfficialName": "Hong Kong Special Administrative Region of the People's Republic of China", "CapitalCity": "City of Victoria", "Continent": "Asia", "Population": "7\u00a0500\u00a0700 (2019)", "TotalArea": "1\u00a0104 km2", "HighestPoint": "Tai Mo Shan (958\u00a0m, 3\u00a0143\u00a0ft)", "LowestPoint": "South China Sea", "GdpPerCapita": "$ 48\u00a0717 (World Bank, 2018)", "Currency": "Hong Kong dollar ($, HKD)", "CallingCode": ["+852"], "InternetTld": ".hk, .\u9999\u6e2f"}, {"Id": 104, "Name": "India", "Flag": "http://media.tekbunny.com/countriesflags/images/in.png", "Independent": "Yes", "CountryCodes": ["IN", "IND (ISO 3166-1)"], "OfficialName": "Republic of India", "CapitalCity": "New Delhi", "Continent": "Asia", "MemberOf": ["United Nations", "Commonwealth of Nations"], "Population": "1\u00a0359\u00a0072\u00a0550 (2020)", "TotalArea": "3\u00a0287\u00a0260 km2", "HighestPoint": "Kangchenjunga (8\u00a0586\u00a0m, 28\u00a0169\u00a0ft)", "LowestPoint": "Kuttanad (-2\u00a0m, -7\u00a0ft)", "GdpPerCapita": "$ 2\u00a0010 (World Bank, 2018)", "Currency": "Indian rupee (\u20b9, INR)", "CallingCode": ["+91"], "InternetTld": ".in"}, {"Id": 105, "Name": "Indonesia", "Flag": "http://media.tekbunny.com/countriesflags/images/id.png", "Independent": "Yes", "CountryCodes": ["ID", "IDN (ISO 3166-1)"], "OfficialName": "Republic of Indonesia", "CapitalCity": "Jakarta", "Continent": "Asia, Oceania", "MemberOf": ["United Nations", "Association of Southeast Asian Nations", "Organisation of Islamic Cooperation"], "Population": "266\u00a0911\u00a0900 (2019)", "TotalArea": "1\u00a0910\u00a0930 km2", "HighestPoint": "Puncak Jaya (4\u00a0884\u00a0m, 16\u00a0024\u00a0ft)", "LowestPoint": "Indian Ocean, South Pacific Ocean", "GdpPerCapita": "$ 3\u00a0894 (World Bank, 2018)", "Currency": "Indonesian rupiah (Rp, IDR)", "CallingCode": ["+62"], "InternetTld": ".id"}, {"Id": 106, "Name": "Iran", "Flag": "http://media.tekbunny.com/countriesflags/images/ir.png", "Independent": "Yes", "CountryCodes": ["IR", "IRN (ISO 3166-1)"], "OfficialName": "Islamic Republic of Iran", "CapitalCity": "Tehran", "Continent": "Asia", "MemberOf": ["United Nations", "Organisation of Islamic Cooperation", "OPEC"], "Population": "83\u00a0230\u00a0120 (2020)"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2681/countries+by+continent' --header 'Authorization: Bearer YOUR_API_KEY'
要使用此终端,您必须在参数中指明一个国家的名称
国家数据按名称 - 端点功能
| 对象 | 描述 |
|---|
[{"Id": 68, "Name": "England", "Flag": "http://media.tekbunny.com/countriesflags/images/gb-eng.png", "Independent": "No", "CountryCodes": ["GB-ENG (ISO 3166-2:GB)"], "OfficialName": "England", "CapitalCity": "London", "Population": "55\u00a0977\u00a0178 (2018)", "TotalArea": "130\u00a0279 km2", "Currency": "British pound (\u00a3, GBP)", "CallingCode": ["+44"], "InternetTld": ".uk"}]
curl --location --request GET 'https://zylalabs.com/api/2656/countries+data+api/2682/country+data+by+name' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
要使用此API,用户必须指定一个国家或大陆的名称
有不同的计划适合每个人,包括少量请求的免费试用,但其速率有限制以防止滥用服务
Zyla提供了几乎所有编程语言的广泛集成方法。您可以根据需要使用这些代码与您的项目集成
国家数据API是一个提供世界各国详细信息的服务,包括人口和经济数据
每个端点返回包含各种国家相关信息的JSON数据。例如“按洲获取国家”端点提供国家名称、首都、人口、面积和货币等详细信息
关键字段包括“名称”“首都”“人口”“总面积”“货币”和“区号”这些字段提供了每个国家的基本信息
该API提供有关大洲、按大洲划分的国家以及特定国家详情的数据。这包括地理、人口和经济信息,例如人均GDP和国旗
响应数据结构为一个JSON对象数组 每个对象代表一个国家或大陆 包含相关字段如“Id”“Name”和“Population” 便于解析和使用
参数包括用于“按大陆获取国家”的端点的大陆名称和用于“按名称获取国家数据”的端点的国家名称 这些参数有助于过滤返回的数据
用户可以从JSON响应中提取特定字段,以在他们的应用程序中显示相关信息。例如,旅游应用可以显示所选国家的首都和货币
数据来源于信誉良好的全球数据库和组织,确保准确性和可靠性 定期更新有助于维持提供信息的质量
典型的使用案例包括旅行规划 电子商务本地化 财务分析 人口研究 和地理映射 该API支持各行业间多样化的应用
服务级别:
100%
响应时间:
459ms
服务级别:
100%
响应时间:
42ms
服务级别:
100%
响应时间:
600ms
服务级别:
100%
响应时间:
709ms
服务级别:
100%
响应时间:
373ms
服务级别:
100%
响应时间:
1,045ms
服务级别:
100%
响应时间:
500ms
服务级别:
100%
响应时间:
443ms
服务级别:
100%
响应时间:
2,170ms
服务级别:
100%
响应时间:
1,025ms
服务级别:
100%
响应时间:
2,597ms
服务级别:
100%
响应时间:
4,377ms
服务级别:
100%
响应时间:
1,685ms
服务级别:
100%
响应时间:
56ms
服务级别:
100%
响应时间:
53ms
服务级别:
100%
响应时间:
170ms
服务级别:
100%
响应时间:
257ms
服务级别:
100%
响应时间:
285ms
服务级别:
100%
响应时间:
246ms
服务级别:
100%
响应时间:
1,151ms