Statistics

Count firearms by action type

Returns the firearm count per action type across the catalog.

Available on every plan. Requires an API key; Explorer keys receive a reduced field set.

get/v1/stats/action-types

Request

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

Query parameters

categorystring

Restrict to a category slug

Response

Count firearms by action type

successboolean required

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

Example response

{
  "success": true,
  "data": [
    {
      "action_type": "short_recoil",
      "count": 2812
    }
  ]
}

Changes

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