Statistics
Count firearms by era
Returns the firearms introduced in one decade, for charting output over time.
Requires Studio tier or higher.
get/v1/stats/by-era
Request
- Base URL: https://api.gunspec.io
- URL: https://api.gunspec.io/v1/stats/by-era
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Query parameters
decadestring required
Decade to report on, formatted like "1990s"
Response
Count firearms by era
Example response
{
"success": true,
"data": {
"firearm_count": 487,
"avg_weight_g": 2183.4,
"avg_magazine_capacity": 14.2,
"avg_barrel_length_mm": 304.9,
"earliest_year": 1990,
"latest_year": 1999
}
}Changes
No recorded changes to this operation across all 1 revision of this API.