Firearms

List variants

Returns the direct variants of a firearm (its immediate children).

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

get/v1/firearms/{id}/variants

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/firearms/{id}/variants
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

idstring required

Firearm slug

Response

List variants

successboolean required

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

Example response

{
  "success": true,
  "data": [
    {
      "id": "glock-g17-gen5-mos",
      "name": "Glock 17 Gen5 MOS",
      "variantType": "optics-ready",
      "yearIntroduced": 2018
    }
  ]
}

Changes

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