GunSpec

Conflicts

Resource class for interacting with the GunSpec Conflicts API. Wraps the /v1/conflicts endpoint. Instantiated internally by the GunSpec client and exposed as client.conflicts.

Authentifizierung erforderlichBuilder+

List all military conflicts in the database. Returns conflicts with metadata including name, date range, and participating nations. Use the conflict identifiers with client.firearms.byConflict() to find firearms used in a specific conflict.

list(): Promise<APIResponse<Conflict[]>>
GET/v1/conflicts

  • stringHeadererforderlich

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

  • object[]

    The response payload.

  • string

    Display name, as the maker writes it.

  • integer

    How many firearms this row covers.

  • object[]

    The firearms recorded as used in this conflict.

  • string

    Slug of the firearm.

  • string

    Display name, as the maker writes it.

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

Mindeststufe
Builder+
Monatskontingent
25,000/mo
Anfragerate
60/min
Tageslimit
2,000

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