GZW Data docs
API GitHub
DocsAPI referenceResponse format

Response format

All routes share one envelope, so a single parser covers the whole API.

Success envelope#

Paginated routes add count, page, perPage, total and totalPages. Single-record routes return an object in data, not an array.

{
  "data": [ ... ],
  "count": 10,
  "page": 1,
  "perPage": 50,
  "total": 2141,
  "totalPages": 43,
  "source": "GZW Data API",
  "timestamp": "2026-09-20T08:00:00.000Z",
  "dataVersion": "2026-09-14T13:05:54.486874Z"
}
Timestamps

timestamp is the response time. dataVersion identifies the data snapshot. Example counts above are illustrative.

Error envelope#

HTTP errors share a stable shape: error.code, error.message, optional route details, plus source, timestamp and dataVersion.

CodeMeaning
DATASET_NOT_FOUNDUnknown dataset name
RECORD_NOT_FOUNDNo record with that ID
METHOD_NOT_ALLOWEDThe API is read-only; use GET
RATE_LIMITEDToo many requests. See limits
INTERNAL_ERRORUnexpected server error

The full contract lives in API_CONTRACT.md and the OpenAPI document.

Report a docs issue