client.firearms.getSilhouette()
Get an SVG silhouette (line art) of a firearm.
getSilhouette(id: string, params?: SilhouetteParams): Promise<APIResponse<Silhouette>>- stringHeadererforderlich
Ihr API-Schlüssel.
Authorization: Bearer <key>wird ebenfalls akzeptiert.
- stringerforderlich
Resource slug ID
- Akzeptiert
- a lowercase slug: letters, digits and hyphens
- Beispiel
- stringstandard
rawAn SVG file (
raw;svgis accepted as the same thing, the name SDK 0.1.x used), an inline data URI, or the SVG source as JSON- Akzeptiert
- Beispiel
- integerstandard
0Inject a stroke so the line art reads on any background. 0 leaves it unstroked; anything above 20 is clamped to 20
- Bereich
- 0 – 20
- Beispiel
- stringstandard
blackColour of that stroke. Any CSS colour the browser understands: a name, a hex value,
rgb(),oklch(),color-mix(). Quotes, angle brackets, ampersands and backslashes are refused, because the value is written into an SVG attribute- Max. Länge
- 64
- Beispiel
- object
The response payload.
- string
Slug of the firearm.
- string
Display name, as the maker writes it.
- string
Slug of the line-art file, which is the firearm slug.
- string
Which JSON form this is:
datauriorsvg. - string
Media type of the bytes, e.g.
image/png. - string
Present when
format=datauri: the SVG inlined as an RFC 2397 data URI. - string
Present when
format=json: the SVG source, for parsing or manipulating in code.
- 400
VALIDATION_ERROR - 401
UNAUTHORIZED - 403
FORBIDDEN - 404
NOT_FOUND - 429
RATE_LIMITED - 500
INTERNAL_ERROR
- Mindeststufe
- Builder+
- Monatskontingent
- 25,000/mo
- Anfragerate
- 60/min
- Tageslimit
- 2,000
Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.