ClickBus trip itinerary

GET https://api.api.sh/clickbus/v1/itinerary
1 credit / call travel & events try it in the playground →

Itinerary of one trip from /clickbus/v1/trips: each leg with departure and arrival terminal, address, date and time, duration, waiting time, seat class, company, bus features and intermediate stops when the company publishes them. Trip ids stop working after departure. Without trip_id, give origin and destination (and days_ahead) for the first trip on that route and day.

Every response includes credits_used: the credits this call cost.

Part of the ClickBus API: 9 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
trip_id string Trip id from /clickbus/v1/trips (trip_ids); up to four, comma-separated, for a connection.
origin string Origin place slug, when no trip_id is given.
destination string Destination place slug, when no trip_id is given.
days_ahead integer Day of that trip, days from today (default 30).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/clickbus/v1/itinerary?origin=sao-paulo-tiete-sp&destination=rio-de-janeiro-rj&days_ahead=30" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"trip_ids": ["194e7239-8ff5-3d8f-8da8-d6289e51bfbe"],"total_duration": "06:30:00","steps": [{"trip_id": "194e7239-8ff5-3d8f-8da8-d6289e51bfbe","leg": 1,"duration": "06:30:00","waiting_time": null,"departure": {"place": "Sao Paulo, SP - Tiete","city": "São Paulo","state": "SP","address": "Av Cruzeiro do Sul - 1800 - Santana - Tiete - SP - 02031-000","slug": "sao-paulo-tiete-sp","date": "2026-12-04","time": "00:05"},"arrival": {"place": "Rio de Janeiro, RJ - Rodoviaria do Rio","city": "Rio de Janeiro","state": "RJ","address": "Av Francisco Bicalho - 1 - Santo Cristo - Rio de Janeiro - RJ","slug": "rio-de-janeiro-rj","date": "2026-12-04","time": "06:35"},"service_class": "Cama","company": {"id": 11,"name": "Expresso Do Sul","slug": "expresso-do-sul","logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg"},"bus_features": {"airConditioning": true,"seatRecline": 170,"bathroom": true,"legSupport": true},"stops": []}],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.