The Military Data 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/7024/military+data+api/10873/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/7024/military+data+api/10874/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/7024/military+data+api/10875/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/7024/military+data+api/10876/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/7024/military+data+api/10877/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 Military Data 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 Military Data 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.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
210ms
Service Level:
100%
Response Time:
237ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
122ms
Service Level:
100%
Response Time:
812ms
Service Level:
100%
Response Time:
364ms
Service Level:
100%
Response Time:
283ms
Service Level:
100%
Response Time:
261ms
Service Level:
100%
Response Time:
264ms