Data Quality

Get per-record confidence scores

Returns a confidence score per firearm derived from source count and field completeness, for filtering out thinly sourced records.

Requires Enterprise tier or higher.

get/v1/data/confidence

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/data/confidence
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

belownumber

Only return records scoring below this threshold

pageinteger

Page number, from 1 to 10,000

per_pageinteger

Items per page (max 100)

Response

Get per-record confidence scores

successboolean required

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

Example response

{
  "success": true,
  "data": [
    {
      "id": "glock-g17-gen5",
      "name": "Glock 17 Gen5",
      "data_confidence": 0.42
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 20,
    "limit": 20,
    "total": 42,
    "totalPages": 3
  }
}

Changes

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