Summary counts of pedestrians and pedestrian groups
This dataset provides a list of automatic pedestrian counters in the city of Trnava, including their location, name, provider, and daily counts of pedestrians or pedestrian groups over the last 7 and 30 days. The data can be used to analyze pedestrian traffic intensity, track trends, and support the planning of pedestrian infrastructure and public spaces.
Publisher
Transport Department, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Daily
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"classes": [21]
}
classes (array of numbers, required) – class numbers of the objects whose counts are returned; counts of the selected classes are summed. Values: [21] – pedestrians only, [22] – pedestrian groups only, [21, 22] – pedestrians and pedestrian groups together. A pedestrian group is counted as one record regardless of the number of people in it, so [21, 22] gives the sum of "pedestrian + group" records, not the number of people.
itemId (string, optional) – identifier of a specific counter (24-character hexadecimal ID). If omitted, all counters that count the selected classes are returned.
systemStatuses (array of strings, optional) – filters counters by device status; allowed values: "Ok", "Warn", "Error", "Unknown", "Disconnected". Defaults to "Ok", "Warn", "Error" and "Unknown".
Request
POST https://opendata.trnava.sk/api/datasets/v2/traffic-counters/pedestrians
Answer
[
{
"id": "6565b70bd8d78d00013c4527",
"name": "K7_Hospodárska x Šrobárova (Merkur)",
"provider": "RCE",
"lat": 48.382463118967024,
"lng": 17.57864704551713,
"history": {
"countLast7Days": 13299,
"last7Days": [
{
"timestamp": "2026-10-14T22:00:00.000Z",
"count": 2046
},
{
"timestamp": "2026-10-15T22:00:00.000Z",
"count": 1949
}
],
"last30Days": [
{
"timestamp": "2026-09-21T22:00:00.000Z",
"count": 1681
},
{
"timestamp": "2026-09-22T22:00:00.000Z",
"count": 1818
}
]
}
}
]
id - The unique identifier of the counter in the system.
name - The name or internal designation of the counter (e.g., its location).
provider - The name of the provider of the technology or counting system.
lat - The latitude of the counter location (null if the position is unknown).
lng - The longitude of the counter location (null if the position is unknown).
history - Historical count object for the given counter.
history.countLast7Days - Total number of pedestrians or pedestrian groups for the last 7 days (null if there are no data for this period).
history.last7Days - List of daily counts for the last 7 days.
history.last7Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last7Days[].count - Number of pedestrians or pedestrian groups on the given day.
history.last30Days - List of daily counts for the last 30 days.
history.last30Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last30Days[].count - Number of pedestrians or pedestrian groups on the given day.
The response contains an array of objects, each object representing one counter with summary daily counts of the selected classes.
Request
GET https://opendata.trnava.sk/api/datasets/v2/traffic-counters/pedestrians?outputType=csv
Answer
"id","name","provider","lat","lng","history.countLast7Days","history.last7Days.0.timestamp","history.last7Days.0.count","history.last7Days.1.timestamp","history.last7Days.1.count","history.last7Days.2.timestamp","history.last7Days.2.count","history.last7Days.3.timestamp","history.last7Days.3.count","history.last7Days.4.timestamp","history.last7Days.4.count","history.last7Days.5.timestamp","history.last7Days.5.count","history.last7Days.6.timestamp","history.last7Days.6.count","history.last30Days.0.timestamp","history.last30Days.0.count","history.last30Days.1.timestamp","history.last30Days.1.count","history.last30Days.2.timestamp","history.last30Days.2.count","history.last30Days.3.timestamp","history.last30Days.3.count","history.last30Days.4.timestamp","history.last30Days.4.count","history.last30Days.5.timestamp","history.last30Days.5.count","history.last30Days.6.timestamp","history.last30Days.6.count","history.last30Days.7.timestamp","history.last30Days.7.count","history.last30Days.8.timestamp","history.last30Days.8.count","history.last30Days.9.timestamp","history.last30Days.9.count","history.last30Days.10.timestamp","history.last30Days.10.count","history.last30Days.11.timestamp","history.last30Days.11.count","history.last30Days.12.timestamp","history.last30Days.12.count","history.last30Days.13.timestamp","history.last30Days.13.count","history.last30Days.14.timestamp","history.last30Days.14.count","history.last30Days.15.timestamp","history.last30Days.15.count","history.last30Days.16.timestamp","history.last30Days.16.count","history.last30Days.17.timestamp","history.last30Days.17.count","history.last30Days.18.timestamp","history.last30Days.18.count","history.last30Days.19.timestamp","history.last30Days.19.count","history.last30Days.20.timestamp","history.last30Days.20.count","history.last30Days.21.timestamp","history.last30Days.21.count","history.last30Days.22.timestamp","history.last30Days.22.count","history.last30Days.23.timestamp","history.last30Days.23.count","history.last30Days.24.timestamp","history.last30Days.24.count","history.last30Days.25.timestamp","history.last30Days.25.count","history.last30Days.26.timestamp","history.last30Days.26.count","history.last30Days.27.timestamp","history.last30Days.27.count","history.last30Days.28.timestamp","history.last30Days.28.count","history.last30Days.29.timestamp","history.last30Days.29.count"
"6565b70bd8d78d00013c4527","K7_Hospodárska x Šrobárova (Merkur)","RCE",48.382463118967024,17.57864704551713,13299,"2026-10-14T22:00:00.000Z",2046,"2026-10-15T22:00:00.000Z",1949,"2026-10-16T22:00:00.000Z",1764,"2026-10-17T22:00:00.000Z",1502,"2026-10-18T22:00:00.000Z",1902,"2026-10-19T22:00:00.000Z",1952,"2026-10-20T22:00:00.000Z",2184,"2026-09-21T22:00:00.000Z",1681,"2026-09-22T22:00:00.000Z",1818,"2026-09-23T22:00:00.000Z",1596,"2026-09-24T22:00:00.000Z",1869,"2026-09-25T22:00:00.000Z",1457,"2026-09-26T22:00:00.000Z",1378,"2026-09-27T22:00:00.000Z",1847,"2026-09-28T22:00:00.000Z",1867,"2026-09-29T22:00:00.000Z",2043,"2026-09-30T22:00:00.000Z",2001,"2026-10-01T22:00:00.000Z",2007,"2026-10-02T22:00:00.000Z",1503,"2026-10-03T22:00:00.000Z",1388,"2026-10-04T22:00:00.000Z",2234,"2026-10-05T22:00:00.000Z",2206,"2026-10-06T22:00:00.000Z",1673,"2026-10-07T22:00:00.000Z",1938,"2026-10-08T22:00:00.000Z",2045,"2026-10-09T22:00:00.000Z",1537,"2026-10-10T22:00:00.000Z",1380,"2026-10-11T22:00:00.000Z",1940,"2026-10-12T22:00:00.000Z",2093,"2026-10-13T22:00:00.000Z",2019,"2026-10-14T22:00:00.000Z",2046,"2026-10-15T22:00:00.000Z",1949,"2026-10-16T22:00:00.000Z",1764,"2026-10-17T22:00:00.000Z",1502,"2026-10-18T22:00:00.000Z",1902,"2026-10-19T22:00:00.000Z",1952,"2026-10-20T22:00:00.000Z",2184
id - The unique identifier of the counter in the system.
name - The name or internal designation of the counter (e.g., its location).
provider - The name of the provider of the technology or counting system.
lat - The latitude of the counter location (null if the position is unknown).
lng - The longitude of the counter location (null if the position is unknown).
history - Historical count object for the given counter.
history.countLast7Days - Total number of pedestrians or pedestrian groups for the last 7 days (null if there are no data for this period).
history.last7Days - List of daily counts for the last 7 days.
history.last7Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last7Days[].count - Number of pedestrians or pedestrian groups on the given day.
history.last30Days - List of daily counts for the last 30 days.
history.last30Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last30Days[].count - Number of pedestrians or pedestrian groups on the given day.
The response contains an array of objects, each object representing one counter with summary daily counts of the selected classes.
Request
GET https://opendata.trnava.sk/api/datasets/v2/traffic-counters/pedestrians?outputType=xml
Answer
<root>
<item>
<id>6565b70bd8d78d00013c4527</id>
<name>K7_Hospodárska x Šrobárova (Merkur)</name>
<provider>RCE</provider>
<lat>48.382463118967024</lat>
<lng>17.57864704551713</lng>
<history>
<countLast7Days>13299</countLast7Days>
<last7Days>
<item>
<timestamp>2026-10-14T22:00:00.000Z</timestamp>
<count>2046</count>
</item>
<item>
<timestamp>2026-10-15T22:00:00.000Z</timestamp>
<count>1949</count>
</item>
</last7Days>
<last30Days>
<item>
<timestamp>2026-09-21T22:00:00.000Z</timestamp>
<count>1681</count>
</item>
<item>
<timestamp>2026-09-22T22:00:00.000Z</timestamp>
<count>1818</count>
</item>
</last30Days>
</history>
</item>
</root>
id - The unique identifier of the counter in the system.
name - The name or internal designation of the counter (e.g., its location).
provider - The name of the provider of the technology or counting system.
lat - The latitude of the counter location (null if the position is unknown).
lng - The longitude of the counter location (null if the position is unknown).
history - Historical count object for the given counter.
history.countLast7Days - Total number of pedestrians or pedestrian groups for the last 7 days (null if there are no data for this period).
history.last7Days - List of daily counts for the last 7 days.
history.last7Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last7Days[].count - Number of pedestrians or pedestrian groups on the given day.
history.last30Days - List of daily counts for the last 30 days.
history.last30Days[].timestamp - Timestamp (in UTC) of the start of the local day to which the count refers.
history.last30Days[].count - Number of pedestrians or pedestrian groups on the given day.
The response contains an array of objects, each object representing one counter with summary daily counts of the selected classes.