API
Public toilets
Locations of toilets recorded in the municipal ISDP register, with location descriptions, source fee information, facility descriptions and an accessibility flag. Facility descriptions may include opening hours and condition notes. Register information does not confirm current opening or operation; the source update date is not established.
Requests to the whole API service
Loading statistics…
Daily aggregates · UTC
| Time (UTC) | Series | Value |
|---|
Documentation
The API exposes public table data with selected columns, filters, sorting and pagination.
API endpoints
GET
/szalety/data
Table data: Public toilets
json
Returns records from public table szalety. Locations of toilets recorded in the municipal ISDP register, with location descriptions, source fee information, facility descriptions and an accessibility flag. Facility descriptions may include opening hours and condition notes. Register information does not confirm current opening or operation; the source update date is not established.
Data publication metadata
Try endpoint
Response schemas
Endpoint
/api/public/szalety-publiczne/szalety/data?version=v1
Parameters
| Name | Location | Type | Required | Description | example |
|---|---|---|---|---|---|
columns |
query | string |
optional | Optional comma-separated list of columns. Empty value returns all public columns. | id,name |
filter[column] |
query | string |
optional | Filter by a public indexed column. Put the column name in brackets, for example filter[status]=active. | active |
sort |
query | string |
optional | Sort by a public sortable column. Prefix "-" means descending order. | -updated_at |
limit |
query | integer |
optional | Optional number of records from 1 to 1000; defaults to 100. Zero is not allowed. | 100 |
offset |
query | integer |
optional | Optional non-negative integer offset; defaults to 0. | - |
Columns 5
| Column | Type | Description | Semantics | Filtering | Sorting |
|---|---|---|---|---|---|
Geometry
geometry
|
GEOMETRY(POINT,2178) |
- | - | yes | no |
Fee — source description
oplata
|
VARCHAR(254) |
- | - | yes | yes |
Location description
polozenie
|
VARCHAR(254) |
- | - | no | no |
Type, hours and notes — source description
typ
|
VARCHAR(100) |
- | - | no | no |
Accessibility according to the register
niepelnosprawni
|
BOOLEAN |
- | - | yes | yes |
Filters 3
| Name | Type | Required | Mode | example |
|---|---|---|---|---|
geometry |
GEOMETRY(POINT,2178) |
optional | bbox: xmin,ymin,xmax,ymax | filter[geometry]=20.58,50.82,20.72,50.90 |
oplata |
VARCHAR(254) |
optional | exact match | filter[oplata]=sample |
niepelnosprawni |
BOOLEAN |
optional | exact match | filter[niepelnosprawni]=sample |
GET /api/public/szalety-publiczne/szalety/data?columns=geometry,oplata&limit=10&offset=0
{
"tableName": "szalety",
"columns": [
{
"name": "geometry",
"type": "GEOMETRY(POINT,2178)",
"filterable": true,
"requiredFilter": false,
"sortable": false,
"label": "Geometry",
"description": null,
"semanticRole": null,
"semanticPredicate": null
},
{
"name": "oplata",
"type": "VARCHAR(254)",
"filterable": true,
"requiredFilter": false,
"sortable": true,
"label": "Fee — source description",
"description": null,
"semanticRole": null,
"semanticPredicate": null
}
],
"requiredFilters": [],
"allowedFilters": [
"geometry",
"oplata"
],
"pagination": {
"limit": 10,
"offset": 0,
"count": 1,
"total": 1
},
"filters": [],
"items": [
{
"geometry": "sample",
"oplata": "sample"
}
]
}