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+

A post-ready paragraph and up to five hashtags, built from the record by template (never a model). Explorer; capacity, weight and length need Builder, and are left out below it.

summary(id: string, params?: FirearmSummaryParams): Promise<APIResponse<FirearmSummary>>
GET/v1/firearms/{id}/summary

  • stringHeadererforderlich

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

  • stringerforderlich

    Resource slug ID

    Akzeptiert
    a lowercase slug: letters, digits and hyphens
    Beispiel

Das Beispiel fragt glock-g17-gen5 ab. Diesen Datensatz auf gunspec.io ansehen, für Menschen dargestellt.

  • string

    What the text is for, and post when omitted. post is the one style: a paragraph short enough for any platform, with hashtags apart

    Akzeptiert
  • stringstandarden

    Language of the text and the category hashtag

    Akzeptiert
    Beispiel

  • FirearmSummary

    A post-ready paragraph about one firearm, built from its record by template, with hashtags apart and the facts it was built from.

  • string

    The firearm's slug, as asked for.

  • string

    The style asked for.

  • string

    The language of text.

  • string

    The paragraph, without hashtags. Each sentence states one recorded fact; a fact the record lacks is left out.

  • string[]

    Up to five, each with its #: the name, the maker, the cartridge and the category, distinct ignoring case.

  • string

    The record's page on the site, for a link in the post.

  • object

    The values the text was built from, for a caller that lays out its own.

  • string

    Display name, as the maker writes it.

  • string | null

    The manufacturer's name.

  • integer | null

    Year of introduction.

  • string | null

    The primary cartridge's name.

  • integer

    How many further cartridges the firearm is listed in, beyond calibre.

  • string | null

    The action type, from the actionType vocabulary.

  • integer | null

    Standard magazine capacity in rounds.

  • number | null

    Unloaded weight in grams, without magazine.

  • number | null

    Overall length in millimetres, stock extended where it folds or collapses.

  • string | null

    The category id.

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

Not yet in the Python SDK.

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.