Get Schedules Endpoint With Extra Information (V2)
✅ CURRENT VERSION - This endpoint supports both Timed Schedules and Random Schedules.
Understanding Schedule Types
Timed Schedules
Random Schedules
Endpoint Overview
Key Features
API Reference
Endpoint
Query Parameters
Parameter
Type
Required
Description
Example
Request & Response Example
Get bus schedules by route, departure and arrival city, terminal ID, business ID and departure date (V2 - Supports both Timed and Random schedules)
get
Query parameters
route_idintegerOptional
ID of the route to fetch schedules for.
departure_datestring · dateOptional
Departure date for which to retrieve schedules (format YYYY-MM-DD).
from_city_idintegerOptionalExample:
ID of the city where the trip originates.
12to_city_idintegerOptionalExample:
ID of the destination city.
3business_idstringOptionalExample:
ID of the business offering the schedule (UUID format).
6e9d9432-2a1d-4a8a-a5e4-3ddfaf832523terminal_idintegerOptionalExample:
ID of the terminal associated with the departure.
7Responses
200
List of bus schedules (both Timed and Random).
application/json
successbooleanOptionalExample:
truestatusintegerOptionalExample:
200messagestringOptionalExample:
List of bus schedulesget
/api/v2/merpi/transport/schedules/packages200
List of bus schedules (both Timed and Random).
Response Fields
Common Fields (Both Schedule Types)
Field
Type
Description
Timed Schedule Specific Fields
Field
Type
Description
Random Schedule Specific Fields
Field
Type
Description
Understanding the Response Structure
How to Identify Schedule Type
For Timed Schedules:
For Random Schedules:
Important Notes
Integration Examples
Handling Mixed Results
Migration from V1
Last updated