Pagination and Sorting
List endpoints use offset pagination. Not every endpoint supports every sort field, so check the endpoint reference before building a query.
Pagination parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit | number | No | 100 | Maximum number of records to return. |
offset | number | No | 0 | Number of records to skip. |
Sorting parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sort | enum | No | name | Field used for sorting. Supported values depend on the endpoint. |
direction | enum | No | asc | Sort direction, `asc` or `desc`. |
Example
bash
curl "https://api.geodash.pl/api/v1/gminy?limit=25&offset=50&sort=name&direction=asc"
Filtering
Administrative list endpoints support relationship filters such as wojewodztwo, wojewodztwo_id, powiat, powiat_id and admin_unit. Search endpoints use a simpler q parameter.