Statistics

List a country adoption record

Returns every firearm adopted by operators in one country, with the adopting organisation and year.

Requires Studio tier or higher.

get/v1/stats/adoption/by-country

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/stats/adoption/by-country
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

codestring required

ISO 3166-1 alpha-2 country code

Response

List a country adoption record

successboolean required

Always true on a successful response. Every error carries false and an error object instead.

Example response

{
  "success": true,
  "data": [
    {
      "id": 412,
      "user_name": "Australian Army",
      "user_type": "military",
      "adopted_year": 1988,
      "designation": "F88 Austeyr",
      "firearm_id": "steyr-aug",
      "firearm_name": "Steyr AUG"
    }
  ]
}

Changes

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