gunspec-io · Schema
HeadToHeadFirearm
One of the two compared firearms, as selected: the sixteen columns the verdicts are computed from, **snake_case**, under their database names.
FirearmsDatabaseSpecificationSDKMCP
Properties
| Name | Type | Description |
|---|---|---|
| id | string | URL-safe slug identifying the firearm. Stable: it is what a mirror keys on. |
| name | string | Display name, as the maker writes it. |
| manufacturer_id | stringnull | Slug of the manufacturer. `manufacturerId` on the camelCase endpoints. |
| category_id | stringnull | Slug of the category. `categoryId` on the camelCase endpoints. |
| weight_empty_g | numbernull | Unloaded weight in grams, without magazine. |
| overall_length_mm | numbernull | Overall length in millimetres. |
| barrel_length_mm | numbernull | Barrel length in millimetres, measured from the breech face. |
| magazine_capacity | integernull | Standard magazine capacity, in rounds. |
| muzzle_velocity_mps | numbernull | Muzzle velocity in metres per second, with the reference load. |
| muzzle_energy_j | numbernull | Muzzle energy in joules, with the reference load. |
| effective_range_m | numbernull | Effective range in metres. |
| rate_of_fire_rpm | numbernull | Cyclic rate of fire in rounds per minute; null for a semi-automatic or manual action. |
| year_introduced | integernull | Year the model was introduced. |
| status | object | Production status, one of `in_production`, `discontinued`, `out_of_production`, `in_service`, `limited_production`, `prototype`. Discontinued records are kept deliberately: a rifle built in 2004 wears |
| country_of_origin | stringnull | ISO 3166-1 alpha-2 code of the country of origin. |
| action_type | stringnull | Operating action as stored, underscored, e.g. `short_recoil`, `bolt_action`, `gas_operated`. The full vocabulary is `/v1/firearms/action-types`; a hyphenated value matches nothing. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/gunspec-io/json-schema/gunspec-io-head-to-head-firearm-schema.json",
"title": "HeadToHeadFirearm",
"description": "One of the two compared firearms, as selected: the sixteen columns the verdicts are computed from, **snake_case**, under their database names.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/gunspec-io-firearm-discovery-api-openapi.yml#/components/schemas/HeadToHeadFirearm",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "URL-safe slug identifying the firearm. Stable: it is what a mirror keys on."
},
"name": {
"type": "string",
"description": "Display name, as the maker writes it."
},
"manufacturer_id": {
"type": [
"string",
"null"
],
"description": "Slug of the manufacturer. `manufacturerId` on the camelCase endpoints."
},
"category_id": {
"type": [
"string",
"null"
],
"description": "Slug of the category. `categoryId` on the camelCase endpoints."
},
"weight_empty_g": {
"type": [
"number",
"null"
],
"description": "Unloaded weight in grams, without magazine."
},
"overall_length_mm": {
"type": [
"number",
"null"
],
"description": "Overall length in millimetres."
},
"barrel_length_mm": {
"type": [
"number",
"null"
],
"description": "Barrel length in millimetres, measured from the breech face."
},
"magazine_capacity": {
"type": [
"integer",
"null"
],
"description": "Standard magazine capacity, in rounds."
},
"muzzle_velocity_mps": {
"type": [
"number",
"null"
],
"description": "Muzzle velocity in metres per second, with the reference load."
},
"muzzle_energy_j": {
"type": [
"number",
"null"
],
"description": "Muzzle energy in joules, with the reference load."
},
"effective_range_m": {
"type": [
"number",
"null"
],
"description": "Effective range in metres."
},
"rate_of_fire_rpm": {
"type": [
"number",
"null"
],
"description": "Cyclic rate of fire in rounds per minute; null for a semi-automatic or manual action."
},
"year_introduced": {
"type": [
"integer",
"null"
],
"description": "Year the model was introduced."
},
"status": {
"anyOf": [
{
"$ref": "#/$defs/FirearmStatus"
},
{
"type": "null"
}
],
"description": "Production status, one of `in_production`, `discontinued`, `out_of_production`, `in_service`, `limited_production`, `prototype`. Discontinued records are kept deliberately: a rifle built in 2004 wears parts nobody sells today."
},
"country_of_origin": {
"type": [
"string",
"null"
],
"description": "ISO 3166-1 alpha-2 code of the country of origin."
},
"action_type": {
"type": [
"string",
"null"
],
"description": "Operating action as stored, underscored, e.g. `short_recoil`, `bolt_action`, `gas_operated`. The full vocabulary is `/v1/firearms/action-types`; a hyphenated value matches nothing."
}
},
"required": [
"id",
"name"
],
"$defs": {
"FirearmStatus": {
"type": "string",
"enum": [
"in_production",
"discontinued",
"out_of_production",
"in_service",
"limited_production",
"prototype"
],
"description": "Production status of a firearm. Closed: these are every value the catalog holds."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/gunspec-io-head-to-head-firearm"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.