API referenceEndpoints
Search schedules
**Required permission:** `traffic.schedule:read`
GET
/traffic/v1/schedulesRequired permission: traffic.schedule:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Query Parameters
itinerary_id?string
Restrict to one itinerary revision's schedules.
status?string
Schedule lifecycle status; defaults to ACTIVE.
effective_on?string
Keep only schedules whose effective range contains this date (ISO).
Format
datesort?string
Result ordering.
Value in
- "effectiveAsc"
- "effectiveDesc"
- "newest"
- "oldest"
page?integer
Zero-based page index, at most 10000.
Format
int32Range
0 <= value <= 10000size?integer
Page size, at most 200.
Format
int32Range
0 <= value <= 200include?"stop_times"
What to carry with each schedule: stop_times, its calls.
Value in
- "stop_times"
Response Body
*/*
curl -X GET "https://example.com/traffic/v1/schedules"{ "data": [ { "created_at": "2019-08-24T14:15:22Z", "day_cycle": { "anchor_date": "2019-08-24", "days_in_cycle": [ 0 ], "length_days": 0 }, "effective_from": "2019-08-24", "effective_to": "2019-08-24", "id": "string", "itinerary_id": "string", "operating_days": [ "MONDAY" ], "overrides": [ { "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "id": "string", "kind": "CANCELLED", "reason": "string", "timetable_service_date": "2019-08-24" } ], "predecessor_schedule_id": "string", "status": "string", "stop_times": [ { "announced_departure": true, "arrival_time": "string", "day_offset": 0, "departure_time": "string", "id": "string", "service_kind": "BOARD_ONLY", "stop_id": "string" } ], "successor_schedule_id": "string", "suspended_from": "2019-08-24", "transport_authorization_id": "string", "updated_at": "2019-08-24T14:15:22Z" } ], "page": 0, "size": 0, "total": 0}