GunSpec

Firearms

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

Authentifizierung erforderlichExplorer+

Get available filter options for the firearms list endpoint. Returns distinct values for manufacturers, calibers, categories, action types, countries, and statuses that can be used as filter values.

filterOptions(): Promise<APIResponse<FilterOptions>>
GET/v1/firearms/filter-options

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • object

    The distinct filter values currently present in the catalog.

  • object[]

    Manufacturers with at least one firearm.

  • string

    Slug of the manufacturer, and the value to send as manufacturer.

  • string

    Display name, as the maker writes it.

  • string | null

    ISO 3166-1 alpha-2 code of where they are based, for grouping the list by country.

  • object[]

    Categories with at least one firearm.

  • string

    Slug of the category, and the value to send as category. Keyed slug here rather than id, unlike the other lists.

  • string

    Display name, as the maker writes it.

  • object[]

    Cartridges chambered by at least one firearm.

  • string

    Slug of the cartridge, and the value to send as caliber.

  • string

    Display name, as the maker writes it.

  • object[]

    Operating actions present in the catalog.

  • string

    The action type as stored, and the value to send as action_type.

  • string

    Display name, as the maker writes it.

  • object[]

    JSON array of notable features, as a string. The same vocabulary /v1/firearms/by-feature filters on.

  • string

    The feature as stored, and the value to send as feature to /v1/firearms/by-feature.

  • string

    Display name, as the maker writes it.

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

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.

Dieser Aufruf beantwortet bedingte Anfragen. Speichern Sie das ETag einer Antwort und senden Sie es als If-None-Match zurueck: ein unveraenderter Datensatz liefert 304 Not Modified ohne Body. Das zaehlt auf Ihr Minutenlimit, aber nicht auf Ihr Tageskontingent.