Defense Spending
Military spending, arms trade, bases & contracts — 200+ countries
Military spending, arms trade, sanctions, bases, and contracts. 12 data sources: World Bank/SIPRI, USAspending, UK Contracts Finder, UN Comtrade, CIA Factbook, EU Sanctions Map, US Treasury, UNHCR, OpenStreetMap. 14 skills covering 200+ countries.
Get annual military spending for any country. Returns expenditure in current USD, as percentage of GDP, and armed forces personnel. Covers 200+ countries from 1960 to present via World Bank/SIPRI data.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "military_spending",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callCompare military spending across multiple countries side by side. Returns the most recent data for each country ranked by spending. Supports any combination of 200+ countries.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "compare_countries",
"input": {
"countries": [
"US",
"CN",
"RU",
"IN",
"SA"
]
}
}' \
https://api.toolrouter.com/v1/tools/callGet international arms trade data — who exports or imports weapons to/from whom. Returns bilateral trade partners and monetary values by weapon subcategory. Covers 50+ countries via UN Comtrade HS code 93 (arms and ammunition).
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "arms_trade",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet a comprehensive military profile for any country — forces structure, personnel strengths, equipment inventories, service age requirements, overseas deployments, and strategic notes. Data from the CIA World Factbook (archived Feb 2026). Covers 80+ countries.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "military_profile",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet DoD budget broken down by military branch (Army, Navy, Air Force, etc.) and/or by industry sector (Aircraft Manufacturing, Shipbuilding, R&D, etc.). US only, from USAspending.gov.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "budget_breakdown",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callSearch current EU sanctions regimes including arms embargoes, asset freezes, and travel bans. Covers 55+ regimes targeting countries, entities, and individuals. Data from the official EU Sanctions Map.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "sanctions",
"input": {}
}' \
https://api.toolrouter.com/v1/tools/callSearch defense and military contracts. US: searches USAspending.gov for Department of Defense contracts with full award details. UK: searches Contracts Finder for Ministry of Defence procurement. Returns contract amounts, recipients, dates, and descriptions.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "defense_contracts",
"input": {
"country": "US",
"keyword": "F-35"
}
}' \
https://api.toolrouter.com/v1/tools/callGet the top defense contractors by total award amount for a country. US: returns top recipients of Department of Defense spending from USAspending.gov with dollar amounts.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "top_contractors",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet geographic breakdown of defense spending within a country. US: returns Department of Defense contract spending by state from USAspending.gov.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "spending_by_region",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet US DoD total budgetary resources, obligations, and outlays by fiscal year. This is the top-line budget — different from contract awards. Shows how much Congress authorized vs how much was obligated and spent.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "budget_authority",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet SIPRI Trend Indicator Values for arms exports and imports. Measures the VOLUME of international arms transfers using SIPRI methodology (constant 1990 USD). Different from UN Comtrade customs data. Covers 200+ countries.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "arms_transfers",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callGet refugee, IDP, and asylum seeker data for countries affected by conflict. Shows the human impact of military operations — how many people are displaced, where they go, and return statistics. From UNHCR.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "displacement",
"input": {
"country": "UA"
}
}' \
https://api.toolrouter.com/v1/tools/callFind military installations in any country — bases, airfields, naval bases, firing ranges, and barracks. Returns names, coordinates, and metadata from OpenStreetMap. Covers 40+ countries.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "military_bases",
"input": {
"country": "GB",
"base_type": "airfield"
}
}' \
https://api.toolrouter.com/v1/tools/callGet actual monthly cash outlays for US National Defense from the Treasury Monthly Statement. This is the definitive record of money actually spent — different from USAspending obligations and World Bank annual estimates.
curl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{
"tool": "defense-spending",
"skill": "defense_outlays",
"input": {
"country": "US"
}
}' \
https://api.toolrouter.com/v1/tools/callQuick Start
claude mcp add --transport stdio \
--env TOOLROUTER_API_KEY=YOUR_API_KEY \
toolrouter -- npx -y toolrouter-mcpcurl -H "Authorization: Bearer $TOOLROUTER_API_KEY" \
-d '{"tool":"defense-spending","skill":"military_spending","input":{}}' \
https://api.toolrouter.com/v1/tools/callFrequently Asked Questions
Can I compare military spending across countries?
`compare_countries` ranks the most recent spending data side by side for any mix of countries.
What is the difference between `military_spending` and `defense_outlays`?
`military_spending` is annual country spending from World Bank and SIPRI estimates, while `defense_outlays` is the actual monthly US Treasury cash outlay record.
Can I look at contracts or top contractors?
Yes. Use `defense_contracts`, `top_contractors`, `spending_by_region`, or `budget_authority` for US and UK procurement and budget views.
Does it include arms trade, sanctions, bases, or displacement?
Yes. Use `arms_trade`, `arms_transfers`, `sanctions`, `military_profile`, `military_bases`, or `displacement` for those angles.