GunSpec

DataQuality

Resource class for interacting with the GunSpec Data Quality API. Wraps all /v1/data endpoints. Instantiated internally by the GunSpec client and exposed as client.dataQuality.

Authentifizierung erforderlichEnterprise

Get overall data coverage statistics for the database. Returns per-field and aggregate coverage metrics showing what percentage of records have data for each field.

coverage(): Promise<APIResponse<DataCoverage>>
GET/v1/data/coverage

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • object

    The response payload.

  • object

    Per-field completeness across the firearms table.

  • integer

    Total records matching the query across every page.

  • object

    Per-field completeness, keyed by column name.

  • object

    Per-field completeness across the calibers table.

  • integer

    Total records matching the query across every page.

  • object

    Per-field completeness, keyed by column name.

  • object

    Per-field completeness across the manufacturers table.

  • integer

    Total records matching the query across every page.

  • object

    Per-field completeness, keyed by column name.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Enterprise
Monatskontingent
1,000,000/mo
Anfragerate
300/min
Tageslimit
50,000

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.

Authentifizierung erforderlichEnterprise

Get firearms with confidence scores below a specified threshold. Useful for identifying records that may need additional data verification or enrichment.

confidence(params?: ConfidenceParams): Promise<PaginatedResponse<ConfidenceEntry>>
GET/v1/data/confidence

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • numberstandard0.5

    Only return records scoring below this threshold

    Bereich
    0 – 1
    Beispiel
  • integerstandard1

    Page number, from 1 to 10,000

    Bereich
    1 – 10000
    Beispiel
  • integerstandard20

    Items per page (max 100)

    Bereich
    1 – 100
    Beispiel

  • object[]

    One page of results

  • string

    Slug of the firearm.

  • string

    Display name, as the maker writes it.

  • number

    How completely the record is specified and how well it is sourced, 0 to 1. A record-level completeness and provenance measure, not a per-field probability of correctness. dataConfidence on the camelCase endpoints.

  • number

    Current page number

  • number

    Items per page

  • number

    Total matching records (Builder and above)

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Enterprise
Monatskontingent
1,000,000/mo
Anfragerate
300/min
Tageslimit
50,000

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.