GunSpec

Releases

Resource class for the release ledger. Exposed as client.releases.

Authentifizierung erforderlichExplorer+

One page of new firearm models. Explorer.

list(params?: ListReleasesParams): Promise<PaginatedResponse<FirearmRelease>>
GET/v1/releases

  • stringHeadererforderlich

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

  • integerstandard1

    Page number, from 1 to 10,000

    Bereich
    1 – 10000
    Beispiel
  • integerstandard20

    Items per page (max 100)

    Bereich
    1 – 100
    Beispiel
  • string

    Only models on or after this day (YYYY-MM-DD)

    Max. Länge
    10
    Beispiel
  • string

    Only models on or before this day (YYYY-MM-DD)

    Max. Länge
    10
  • string

    Filter by catalog manufacturer id

    Max. Länge
    100
    Beispiel
  • string

    Filter by whether the catalog holds a record yet

    Akzeptiert
  • string

    Search the model name, its alternate names and the maker

    Max. Länge
    100
  • stringstandardannounced

    Sort and date-filter by the announcement date, or by the day GunSpec first read the model

    Akzeptiert
    Beispiel

  • object[]

    A new firearm model: its name and alternate names, the dates it was announced and first read, and the sources that name it.

  • string

    Stable id of the release row.

  • string

    The id the catalog gives the model once it holds a record. Informational: it can change if research settles a different name, so key on id.

  • string

    The model's name as the maker writes it, settled by research from a page that states it.

  • string[]

    Other names the sources give the model. Each appears on a page research read; none is inferred.

  • object | null

    The maker. id is the catalog manufacturer id, or null when the catalog holds no record of the maker yet.

  • string | null

    Catalog manufacturer id.

  • string

    Maker name.

  • string

    Whether the catalog holds a record for the model yet.

  • string | null

    The firearm id once status is catalogued, for GET /v1/firearms/{id}. Null before.

  • string | null

    The date (YYYY-MM-DD) of the earliest source a reader can cite that names the model. Null when no source carried a date.

  • string | null

    When a source says the model ships or goes on sale, at the precision it gave: YYYY, YYYY-MM or YYYY-MM-DD. Null when no source states a date. "Spring 2027" is not a date and is never turned into one.

  • string | null

    How much of releasedAt the source gave.

  • string

    When GunSpec first read the model (UTC): the date we consumed it. Always present.

  • string

    When the row last changed (UTC).

  • string | null

    The strongest kind among sources, strongest first: the maker's own page, a standards body, a government, a reference work, then press.

  • object[]

    The pages that name the model, oldest first. Every release has at least one of a citable kind.

  • string

    A page that names the model. Open it to check the claim.

  • string

    What kind of page it is (SourceKind).

  • string | null

    Who published it, when known.

  • string | null

    The page's own date (YYYY-MM-DD), when it carried one.

  • 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

Not yet in the Python SDK.

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

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

Authentifizierung erforderlichExplorer+

Every release matching the filters, a page at a time as the loop asks for them. Explorer.

listAutoPaging(params?: ListReleasesParams): AsyncIterableIterator<FirearmRelease>
GET/v1/releases

  • stringHeadererforderlich

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

  • integerstandard1

    Page number, from 1 to 10,000

    Bereich
    1 – 10000
    Beispiel
  • integerstandard20

    Items per page (max 100)

    Bereich
    1 – 100
    Beispiel
  • string

    Only models on or after this day (YYYY-MM-DD)

    Max. Länge
    10
    Beispiel
  • string

    Only models on or before this day (YYYY-MM-DD)

    Max. Länge
    10
  • string

    Filter by catalog manufacturer id

    Max. Länge
    100
    Beispiel
  • string

    Filter by whether the catalog holds a record yet

    Akzeptiert
  • string

    Search the model name, its alternate names and the maker

    Max. Länge
    100
  • stringstandardannounced

    Sort and date-filter by the announcement date, or by the day GunSpec first read the model

    Akzeptiert
    Beispiel

  • object[]

    A new firearm model: its name and alternate names, the dates it was announced and first read, and the sources that name it.

  • string

    Stable id of the release row.

  • string

    The id the catalog gives the model once it holds a record. Informational: it can change if research settles a different name, so key on id.

  • string

    The model's name as the maker writes it, settled by research from a page that states it.

  • string[]

    Other names the sources give the model. Each appears on a page research read; none is inferred.

  • object | null

    The maker. id is the catalog manufacturer id, or null when the catalog holds no record of the maker yet.

  • string | null

    Catalog manufacturer id.

  • string

    Maker name.

  • string

    Whether the catalog holds a record for the model yet.

  • string | null

    The firearm id once status is catalogued, for GET /v1/firearms/{id}. Null before.

  • string | null

    The date (YYYY-MM-DD) of the earliest source a reader can cite that names the model. Null when no source carried a date.

  • string | null

    When a source says the model ships or goes on sale, at the precision it gave: YYYY, YYYY-MM or YYYY-MM-DD. Null when no source states a date. "Spring 2027" is not a date and is never turned into one.

  • string | null

    How much of releasedAt the source gave.

  • string

    When GunSpec first read the model (UTC): the date we consumed it. Always present.

  • string

    When the row last changed (UTC).

  • string | null

    The strongest kind among sources, strongest first: the maker's own page, a standards body, a government, a reference work, then press.

  • object[]

    The pages that name the model, oldest first. Every release has at least one of a citable kind.

  • string

    A page that names the model. Open it to check the claim.

  • string

    What kind of page it is (SourceKind).

  • string | null

    Who published it, when known.

  • string | null

    The page's own date (YYYY-MM-DD), when it carried one.

  • 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

Returns an async iterator: it fetches each page as you consume it, so a loop over the whole collection is one statement and one page in memory at a time.

Not yet in the Python SDK.

Mindeststufe
Explorer+
Monatskontingent
200/mo
Anfragerate
10/min
Tageslimit
50

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