Statistics

Track caliber popularity over time

Returns how often each cartridge was chambered per period, for charting which calibers rose and fell.

Requires Studio tier or higher.

get/v1/stats/caliber-popularity-by-era

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/stats/caliber-popularity-by-era
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

from_decadestring

Earliest decade, formatted like "1940s"

to_decadestring

Latest decade, formatted like "2020s"

Response

Track caliber popularity over time

successboolean required

Always true on a successful response. Every error carries false and an error object instead.

Example response

{
  "success": true,
  "data": [
    {
      "decade": "1940s",
      "calibers": [
        {
          "caliberId": "9x19mm-parabellum",
          "caliberName": "9x19mm Parabellum",
          "firearmCount": 42
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.