Firearm Discovery
Filter by conflict
Returns firearms recorded as used in a given armed conflict.
Requires Studio tier or higher.
get/v1/firearms/by-conflict
Request
- Base URL: https://api.gunspec.io
- URL: https://api.gunspec.io/v1/firearms/by-conflict
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Query parameters
conflictstring required
Conflict name
pageinteger
Page number, from 1 to 10,000
per_pageinteger
Items per page (max 100)
Headers
If-None-Matchstring
The ETag from a previous response. If the body would be byte-identical, the API answers 304 Not Modified with no body. A 304 counts toward the per-minute rate limit but not the daily request allowance.
Response
Filter by conflict
Example response
{
"success": true,
"data": [
{
"id": "m16a1",
"name": "M16A1",
"manufacturerId": "colt",
"categoryId": "rifle",
"yearIntroduced": 1967,
"conflicts": [
{
"name": "Vietnam War",
"years": "1955-1975",
"sides": [
"North Vietnam / Viet Cong",
"South Vietnam / United States"
]
}
]
}
],
"pagination": {
"page": 1,
"per_page": 20,
"limit": 20,
"total": 42,
"totalPages": 3
}
}Changes
No recorded changes to this operation across all 1 revision of this API.