GZW Data docs
API GitHub
DocsAPI referenceFilters, search & pagination

Filters, search & pagination

Every dataset accepts the same small set of query parameters. They can be combined freely.

Parameters#

ParameterDescription
?field=valueFilter by any string field, for example ?type=Keycard
?search=akFull-text search across the record fields
?sort=name:ascSort by a field, asc or desc
?page=2&per_page=20Paginate. per_page defaults to 50 and caps at 500
?dataset=weaponsLimit search to one or more comma-separated datasets
?fields=name,typeSearch only selected comma-separated fields
?fuzzy=trueTolerate small spelling differences. Needs 1–3 explicit datasets
?limit=10Limit matches per dataset in search. Maximum 50

Combine them#

curl "https://gzw-data.dev/api/v1/keys?type=Keycard&search=alpha&page=1&per_page=20"

Search across datasets#

curl "https://gzw-data.dev/api/v1/search?q=AK&dataset=weapons&limit=5"

Numeric values#

Records may include an additive numeric_values object for unambiguous unit-bearing fields. Original source strings are always kept.

weapons/ak-12 (excerpt)
"weight": "3.553 kg",
"numeric_values": { "weight": { "value": 3.553, "unit": "kg" } }

Report a docs issue