Firearm Discovery
Browse the catalog chronologically
Returns firearms ordered by year of introduction, optionally bounded to a period. Firearms without a recorded introduction year are excluded.
Requires Builder tier or higher.
get/v1/firearms/timeline
Request
- Base URL: https://api.gunspec.io
- URL: https://api.gunspec.io/v1/firearms/timeline
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Query parameters
frominteger
Earliest year of introduction
tointeger
Latest year of introduction
categorystring
Restrict to a category slug
pageinteger
Page number
per_pageinteger
Items per page (max 100)
order'asc' | 'desc'
Sort order
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
Browse the catalog chronologically
Example response
{
"success": true,
"data": [
{
"id": "ak-47",
"name": "AK-47",
"manufacturerId": "izhmash",
"categoryId": "rifle",
"yearIntroduced": 1949,
"yearDiscontinued": 1959,
"status": "discontinued",
"countryOfOrigin": "RU"
}
],
"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.