ClickBus trip itinerary API

Use the ClickBus trip itinerary API to retrieve preparation steps, duration information, journey segments and endpoints and station and stop records as structured JSON from ClickBus. Choose origin, destination and departure offset in days as optional query conditions to select the source records or view required for your request. Use these results to compare journey options for the selected route and dates before choosing a travel itinerary. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (9)
Trip id from `/clickbus/v1/trips` (`trip_ids`); up to four, comma-separated, for a connection.
Origin place slug, when no `trip_id` is given.
Destination place slug, when no `trip_id` is given.
Day of that trip, days from today (default 30).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

{
  "cached": false,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:24:52.376Z",
  "steps": [
    {
      "arrival": {
        "address": "Av Francisco Bicalho - 1 - Santo Cristo - Rio de Janeiro - RJ",
        "city": "Rio de Janeiro",
        "date": "2026-12-19",
        "place": "Rio de Janeiro, RJ - Rodoviaria do Rio",
        "slug": "rio-de-janeiro-rj",
        "state": "RJ",
        "time": "06:35"
      },
      "bus_features": {
        "airConditioning": true,
        "bathroom": true,
        "legSupport": true,
        "seatRecline": 170
      },
      "company": {
        "id": 11,
        "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
        "name": "Expresso Do Sul",
        "slug": "expresso-do-sul"
      },
      "departure": {
        "address": "Av Cruzeiro do Sul - 1800 - Santana - Tiete - SP - 02031-000",
        "city": "São Paulo",
        "date": "2026-12-19",
        "place": "Sao Paulo, SP - Tiete",
        "slug": "sao-paulo-tiete-sp",
        "state": "SP",
        "time": "00:05"
      },
      "duration": "06:30:00",
      "leg": 1,
      "service_class": "Cama",
      "stops": [],
      "trip_id": "f3b34d70-b97b-368c-9106-e29f0ceaa3df",
      "waiting_time": null
    }
  ],
  "total_duration": "06:30:00",
  "trip_ids": [
    "f3b34d70-b97b-368c-9106-e29f0ceaa3df"
  ]
}

Response result

Response structure

Inferred from examples
  • cachedboolean
  • credits_usedinteger
  • fetched_atstring
  • stepsobject[]
    • arrivalobject
      • addressstring
      • citystring
      • datestring
      • placestring
      • slugstring
      • statestring
      • timestring
    • bus_featuresobject
      • airConditioningboolean
      • bathroomboolean
      • legSupportboolean
      • seatReclineinteger
    • companyobject
      • idinteger
      • logostring
      • namestring
      • slugstring
    • departureobject
      • addressstring
      • citystring
      • datestring
      • placestring
      • slugstring
      • statestring
      • timestring
    • durationstring
    • leginteger
    • service_classstring
    • stopsunknown[]
    • trip_idstring
    • waiting_timenull
  • total_durationstring
  • trip_idsstring[]

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use ClickBus trip itinerary API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.