GunSpec

Stats

Resource class for interacting with the GunSpec Statistics API. Wraps all /v1/stats endpoints. Instantiated internally by the GunSpec client and exposed as client.stats.

Auth RequiredExplorer+

Get the most popular calibers by firearm count.

popularCalibers(params?: PopularCalibersParams): Promise<APIResponse<PopularCaliber[]>>
GET/v1/stats/calibers/popular

  • stringheaderrequired

    Your API key. Authorization: Bearer <key> is accepted in its place.

  • integerdefault20

    How many to return

    Range
    1 – 100
    Example

  • object[]

    The response payload.

  • string

    Slug of the cartridge.

  • string

    Display name, as the maker writes it.

  • string | null

    NATO designation where the cartridge has one. Null otherwise.

  • integer

    How many catalogued firearms chamber it.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Minimum tier
Explorer+
Monthly quota
200/mo
Rate limit
10/min
Daily cap
50

Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.