The Worldwide Military Armies API is a RESTful API designed to expose structured and filterable data derived from global military statistics. It is based on the dataset provided by World Population Review and focuses on personnel size per country, offering access to total military force, active personnel, reserve forces, and paramilitary units. The API includes a dedicated endpoint for each column, promoting clarity and flexibility for analytical and reporting use cases. This design allows clients to pull only the information they need, optimized for performance and usability.
{"countries":["China","India","United States","North Korea","Russia","Ukraine","Pakistan","Iran","Ethiopia","South Korea","Vietnam","Egypt","Indonesia","Brazil","Thailand","Turkey","Eritrea","France","Sri Lanka","Colombia","Saudi Arabia","Japan","Mexico","Myanmar","Morocco","Iraq","South Sudan","Germany","Afghanistan","Israel","Syria","Taiwan","Italy","Bangladesh","Philippines","United Kingdom","Nigeria","Greece","DR Congo","Algeria","Cambodia","Venezuela","Spain","Poland","Malaysia","Angola","Sudan","Jordan","Nepal","Peru","Chile","Argentina","Romania","Canada","South Africa","Azerbaijan","United Arab Emirates","Lebanon","Australia","Dominican Republic","Singapore","Cuba","Uzbekistan","Belarus","Uganda","Armenia","Oman","Ecuador","Yemen","Kazakhstan","Bulgaria","Turkmenistan","Tunisia","Netherlands","Bolivia","Chad","Rwanda","Burundi","Sweden","Laos","Zimbabwe","Serbia","Hungary","Ivory Coast","Portugal","Tanzania","Belgium","Cameroon","El Salvador","Kenya","Finland","Norway","Austria","Czech Republic","Uruguay","Georgia","Lithuania","Somalia","Switzerland","Guatemala","Kuwait","Qatar","Slovakia","Mauritania","Ghana","Croatia","Zambia","Cyprus","Honduras","Denmark","Paraguay","Senegal","Madagascar","Mali","Nicaragua","Mozambique","Burkina Faso","Kyrgyzstan","Malawi","Bosnia and Herzegovina","Djibouti","Republic of the Congo","Namibia","Guinea","Mongolia","Ireland","Central African Republic","New Zealand","Botswana","Tajikistan","Togo","Sierra Leone","Albania","Bahrain","North Macedonia","Benin","Slovenia","Brunei","Estonia","Latvia","Niger","Moldova","Gabon","Guinea-Bissau","Trinidad and Tobago","Jamaica","Papua New Guinea","Fiji","Guyana","Equatorial Guinea","Montenegro","Timor-Leste","Liberia","Lesotho","Malta","Suriname","Belize","Bahamas","Cape Verde","Luxembourg","Gambia","Haiti","Barbados","Seychelles","Antigua and Barbuda","Costa Rica","Panama","Mauritius","Iceland","Vanuatu","Vatican City"]}
curl --location --request POST 'https://zylalabs.com/api/7019/worldwide+military+armies+api/10850/get+countries+with+military+data' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"country":"France","active_military_personnel":270000}
curl --location --request POST 'https://zylalabs.com/api/7019/worldwide+military+armies+api/10851/get+active+military+personnel+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"country":"France","reserve_forces":63700}
curl --location --request POST 'https://zylalabs.com/api/7019/worldwide+military+armies+api/10853/get+military+reserve+personnel' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"country":"France","paramilitary_units":141050}
curl --location --request POST 'https://zylalabs.com/api/7019/worldwide+military+armies+api/10855/get+paramilitary+units+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"country":"France","total_military_personnel":474750}
curl --location --request POST 'https://zylalabs.com/api/7019/worldwide+military+armies+api/10857/get+total+military+personnel+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Worldwide Military Armies API Global Military Stats API provides access to detailed military size statistics by country, including total military personnel, active duty members, reserve forces, and paramilitary units.
The API is designed with dedicated, filterable endpoints for each category of military personnel, allowing users to query specific data points clearly and efficiently.
Yes, the API allows users to filter queries to retrieve military statistics for multiple countries simultaneously, depending on the endpoint used.
The API is based on data provided by World Population Review, and while it aims to provide accurate statistics, the frequency of updates may vary, so users should verify the data's currency.
Each endpoint returns specific military statistics for a country. For example, the "get active military personnel by country" endpoint returns the number of active personnel, while the "get total military personnel by country" endpoint provides the overall military size, including active, reserve, and paramilitary forces.
The key fields in the response data include "country," which specifies the country name, and various military personnel metrics such as "active_military_personnel," "reserve_forces," "paramilitary_units," and "total_military_personnel," depending on the endpoint used.
The response data is organized in a JSON format, with each response containing a country identifier and the corresponding military statistics. For example, a response from the "get active military personnel by country" endpoint includes the country name and the number of active personnel in a structured format.
Each endpoint requires a "country" parameter to specify which country's military data you want to retrieve. Users can obtain a list of valid countries from the "get countries with military data" endpoint before making requests to other endpoints.
Each endpoint provides distinct military data: the "get active military personnel" endpoint returns active duty numbers, the "get military reserve personnel" endpoint provides reserve figures, the "get paramilitary units" endpoint details paramilitary forces, and the "get total military personnel" endpoint sums all military personnel.
Users can utilize the returned data for analytical purposes, such as comparing military sizes across countries or assessing military readiness. For instance, by retrieving active personnel numbers, users can analyze trends in military engagement or resource allocation among nations.
Typical use cases include military research, defense analysis, geopolitical studies, and academic projects. Analysts may use the data to assess military capabilities, compare national defense strategies, or inform policy decisions based on military strength.
The Worldwide Military Armies API Global Military Stats API relies on data sourced from World Population Review, which is known for its comprehensive and reliable datasets. Regular reviews and updates help ensure the accuracy of the military statistics provided through the API.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Service Level:
100%
Response Time:
5,427ms
Service Level:
100%
Response Time:
1,405ms
Service Level:
100%
Response Time:
12,515ms
Service Level:
100%
Response Time:
10,821ms
Service Level:
100%
Response Time:
19,169ms
Service Level:
100%
Response Time:
19,111ms
Service Level:
100%
Response Time:
5,144ms
Service Level:
100%
Response Time:
89ms
Service Level:
100%
Response Time:
20,002ms
Service Level:
100%
Response Time:
4,673ms