Firearms

Get 3D model

Returns the glTF binary (.glb) for a firearm, ready to drop into a three.js or Babylon scene. Models are Draco-free but meshopt-compressed and carry WebP textures, so a loader needs EXT_meshopt_compression, EXT_texture_webp and KHR_mesh_quantization: all three are standard glTF extensions. Models we host on the asset CDN answer with a 302 to their location, the same as the image routes; models uploaded to our own bucket stream from here. 404 when the firearm has no model. use has_3d_model=true on /v1/firearms to list the ones that do.

Requires Builder tier or higher.

get/v1/firearms/{id}/model

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/firearms/{id}/model
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

idstring required

Firearm slug

Response

The glTF binary for the firearm

Changes

No recorded changes to this operation across all 1 revision of this API.