client.firearms.summary()
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>>- 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
postwhen omitted.postis the one style: a paragraph short enough for any platform, with hashtags apart- Accepts
- stringdefault
enLanguage 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
actionTypevocabulary. - 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.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 404
NOT_FOUND - 429
RATE_LIMITED - 500
INTERNAL_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.