client.stats.byEra()
Get firearm statistics for a specific decade/era.
byEra(params: ByEraParams): Promise<APIResponse<EraStats>>- stringheaderrequired
Your API key.
Authorization: Bearer <key>is accepted in its place.
- stringrequired
Decade to report on, formatted like "1990s"
- Example
- object
The response payload.
- integer
Firearms introduced in the decade.
- number | null
Mean unloaded weight in grams, over those that record one.
- number | null
Mean magazine capacity, over those that record one.
- number | null
Mean barrel length in millimetres, over those that record one.
- integer | null
Earliest introduction year inside the decade that any record carries.
- integer | null
Latest introduction year inside the decade that any record carries.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Minimum tier
- Studio+
- Monthly quota
- 150,000/mo
- Rate limit
- 120/min
- Daily cap
- 10,000
Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.