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.

Auth RequiredExplorer+

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

  • stringheaderrequired

    Your API key. Authorization: Bearer <key> is accepted in its place.

  • stringrequired

    Resource slug ID

    Accepts
    a lowercase slug: letters, digits and hyphens
    Example

The example asks for glock-g17-gen5. See that record on gunspec.io, rendered for people.

  • 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

    Accepts
  • stringdefaulten

    Language of the text and the category hashtag

    Accepts
    Example

  • 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.

Minimum tier
Explorer+
Monthly quota
200/mo
Rate limit
10/min
Daily cap
50

Figures shown are for this endpoint's minimum tier. Higher tiers raise every limit.