ClickBus bus trips API

Use the ClickBus bus trips API to retrieve trip options, price information, product records, transport operators, filter and option values and duration information as structured JSON from ClickBus. Supply origin and destination in the query; optionally select date, departure offset in days and travel date to set the requested scope. Use these results to compare journey options for the selected route and dates before choosing a travel itinerary. For sort option, choose departure / price / duration / arrival. 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
Origin place slug from `/clickbus/v1/places`, e.g. `sao-paulo-tiete-sp` or a whole city `sao-paulo-sp-todos`.
Destination place slug, e.g. `rio-de-janeiro-rj`.
Optional parameters (18)
Departure date, YYYY-MM-DD. Give `date` or `days_ahead`.
Departure this many days from today (0-330), instead of `date`.
Return date, YYYY-MM-DD (optional).
Bus company slug, e.g. `1001`, `cometa`, `aguia-branca`.
Earliest departure, HH:MM.
Latest departure, HH:MM.
Seat classes, comma-separated names or ids, e.g. `leito,semi-leito` or `4`.
`true`: only trips without a connection.
`true`: only low-fare trips.
Highest price in BRL.
`true`: trips with gratuity seats (seniors, ID Jovem, Passe Livre).
Sort order (default departure).
asc (default) or desc.
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

{
  "alternative_date": null,
  "applied_filters": {
    "company": null,
    "date": "2026-12-19",
    "destination": "rio-de-janeiro-rj",
    "direct_only": false,
    "gratuity": false,
    "low_fare_only": false,
    "max_departure_time": "00:10",
    "max_price": null,
    "min_departure_time": "00:00",
    "order": "asc",
    "origin": "sao-paulo-tiete-sp",
    "return_date": null,
    "service_class": null,
    "sort": "departure"
  },
  "available_days_of_week": [],
  "cached": false,
  "companies": [
    {
      "id": 11,
      "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
      "name": "Expresso Do Sul",
      "slug": "expresso-do-sul"
    },
    {
      "id": 37,
      "logo": "https://cms.clickbus.com/api/media-logos/logo/aguia-branca.svg",
      "name": "Águia Branca",
      "slug": "aguia-branca"
    }
  ],
  "count": 4,
  "credits_used": 1,
  "date": "2026-12-19",
  "destination": {
    "city": "Rio de Janeiro",
    "name": "Rio de Janeiro, RJ - Rodoviaria do Rio",
    "slug": "rio-de-janeiro-rj",
    "state": "RJ"
  },
  "fetched_at": "2026-11-19T12:52:08.338Z",
  "filters": {
    "serviceClasses": [
      {
        "id": 3,
        "name": "Semi-leito"
      },
      {
        "id": 5,
        "name": "Cama"
      },
      {
        "id": 4,
        "name": "Leito Individual"
      }
    ],
    "terminalsConnection": [],
    "terminalsDestination": [
      {
        "id": "rio-de-janeiro-rj",
        "name": "Rio de Janeiro, RJ - Rodoviaria do Rio"
      }
    ],
    "terminalsOrigin": [
      {
        "id": "sao-paulo-tiete-sp",
        "name": "Sao Paulo, SP - Tiete"
      }
    ],
    "travelCompanies": [
      {
        "id": "expresso-do-sul",
        "name": "Expresso Do Sul"
      },
      {
        "id": "aguia-branca",
        "name": "Águia Branca"
      }
    ]
  },
  "origin": {
    "city": "São Paulo",
    "name": "Sao Paulo, SP - Tiete",
    "slug": "sao-paulo-tiete-sp",
    "state": "SP"
  },
  "redirected_from": null,
  "return": null,
  "terminals": [
    {
      "address": "Av Cruzeiro do Sul - 1800 - Santana - Tiete - SP - 02031-000",
      "name": "São Paulo - Rodoviária do Tietê",
      "phone": null,
      "slug": "sao-paulo-tiete-sp"
    },
    {
      "address": "Av Francisco Bicalho - 1 - Santo Cristo - Rio de Janeiro - RJ",
      "name": "Rio De Janeiro - Rodoviária Novo Rio",
      "phone": "21 3213-1800",
      "slug": "rio-de-janeiro-rj"
    }
  ],
  "trips": [
    {
      "arrival": {
        "city": "Rio de Janeiro",
        "date": "2026-12-19",
        "datetime": "2026-12-19T06:35:00",
        "place": "Rio De Janeiro - Rodoviária Novo Rio",
        "place_id": 3827,
        "slug": "rio-de-janeiro-rj",
        "state": "RJ",
        "time": "06:35"
      },
      "available_seats": 25,
      "company": {
        "logo": "https://cms.clickbus.com/api/media-logos/logo/aguia-branca.svg",
        "name": "Águia Branca",
        "slug": "aguia-branca"
      },
      "connections": 0,
      "currency": "BRL",
      "departure": {
        "city": "São Paulo",
        "date": "2026-12-19",
        "datetime": "2026-12-19T00:05:00",
        "place": "São Paulo - Rodoviária do Tietê",
        "place_id": 4017,
        "slug": "sao-paulo-tiete-sp",
        "state": "SP",
        "time": "00:05"
      },
      "discount_available": true,
      "duration": "6h 30m",
      "duration_days": 0,
      "gratuity_trip": false,
      "installment_free": false,
      "low_fare": false,
      "max_installments": 4,
      "original_price": 199.91,
      "parts": [
        {
          "air_conditioning": true,
          "arrival": {
            "city": "Rio de Janeiro",
            "date": "2026-12-19",
            "datetime": "2026-12-19T06:35:00",
            "place": "Rio De Janeiro - Rodoviária Novo Rio",
            "place_id": 3827,
            "slug": "rio-de-janeiro-rj",
            "state": "RJ",
            "time": "06:35"
          },
          "available_seats": 25,
          "bathroom": true,
          "company": {
            "logo": "https://cms.clickbus.com/api/media-logos/logo/aguia-branca.svg",
            "name": "Águia Branca",
            "slug": "aguia-branca"
          },
          "departure": {
            "city": "São Paulo",
            "date": "2026-12-19",
            "datetime": "2026-12-19T00:05:00",
            "place": "São Paulo - Rodoviária do Tietê",
            "place_id": 4017,
            "slug": "sao-paulo-tiete-sp",
            "state": "SP",
            "time": "00:05"
          },
          "duration": "6h 30m",
          "electronic_boarding_pass": true,
          "has_itinerary": true,
          "leg_support": true,
          "low_fare": false,
          "low_fare_seats": null,
          "original_price": 199.91,
          "price": 199.91,
          "seat_recline_degrees": 140,
          "service_class": "Leito",
          "service_class_id": 4,
          "total_seats": 32,
          "trip_id": "aee320ac-7714-3eb1-b92a-94892eeb2828",
          "waiting_time": null,
          "woman_space": false
        }
      ],
      "price": 199.91,
      "reservable": true,
      "service_class": "Leito",
      "trip_ids": [
        "aee320ac-7714-3eb1-b92a-94892eeb2828"
      ],
      "type": "direct",
      "url": "https://www.clickbus.com.br/onibus/sao-paulo-tiete-sp/rio-de-janeiro-rj?departureDate=2026-12-19"
    },
    {
      "arrival": {
        "city": "Rio de Janeiro",
        "date": "2026-12-19",
        "datetime": "2026-12-19T06:35:00",
        "place": "Rio De Janeiro - Rodoviária Novo Rio",
        "place_id": 3827,
        "slug": "rio-de-janeiro-rj",
        "state": "RJ",
        "time": "06:35"
      },
      "available_seats": 8,
      "company": {
        "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
        "name": "Expresso Do Sul",
        "slug": "expresso-do-sul"
      },
      "connections": 0,
      "currency": "BRL",
      "departure": {
        "city": "São Paulo",
        "date": "2026-12-19",
        "datetime": "2026-12-19T00:05:00",
        "place": "São Paulo - Rodoviária do Tietê",
        "place_id": 4017,
        "slug": "sao-paulo-tiete-sp",
        "state": "SP",
        "time": "00:05"
      },
      "discount_available": false,
      "duration": "6h 30m",
      "duration_days": 0,
      "gratuity_trip": false,
      "installment_free": false,
      "low_fare": true,
      "max_installments": 4,
      "original_price": 599.99,
      "parts": [
        {
          "air_conditioning": true,
          "arrival": {
            "city": "Rio de Janeiro",
            "date": "2026-12-19",
            "datetime": "2026-12-19T06:35:00",
            "place": "Rio De Janeiro - Rodoviária Novo Rio",
            "place_id": 3827,
            "slug": "rio-de-janeiro-rj",
            "state": "RJ",
            "time": "06:35"
          },
          "available_seats": 8,
          "bathroom": true,
          "company": {
            "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
            "name": "Expresso Do Sul",
            "slug": "expresso-do-sul"
          },
          "departure": {
            "city": "São Paulo",
            "date": "2026-12-19",
            "datetime": "2026-12-19T00:05:00",
            "place": "São Paulo - Rodoviária do Tietê",
            "place_id": 4017,
            "slug": "sao-paulo-tiete-sp",
            "state": "SP",
            "time": "00:05"
          },
          "duration": "6h 30m",
          "electronic_boarding_pass": true,
          "has_itinerary": false,
          "leg_support": true,
          "low_fare": true,
          "low_fare_seats": 2,
          "original_price": 599.99,
          "price": 497.99,
          "seat_recline_degrees": 170,
          "service_class": "Cama",
          "service_class_id": 5,
          "total_seats": 8,
          "trip_id": "f3b34d70-b97b-368c-9106-e29f0ceaa3df",
          "waiting_time": null,
          "woman_space": false
        }
      ],
      "price": 497.99,
      "reservable": true,
      "service_class": "Cama",
      "trip_ids": [
        "f3b34d70-b97b-368c-9106-e29f0ceaa3df"
      ],
      "type": "direct",
      "url": "https://www.clickbus.com.br/onibus/sao-paulo-tiete-sp/rio-de-janeiro-rj?departureDate=2026-12-19"
    },
    {
      "arrival": {
        "city": "Rio de Janeiro",
        "date": "2026-12-19",
        "datetime": "2026-12-19T06:35:00",
        "place": "Rio De Janeiro - Rodoviária Novo Rio",
        "place_id": 3827,
        "slug": "rio-de-janeiro-rj",
        "state": "RJ",
        "time": "06:35"
      },
      "available_seats": 21,
      "company": {
        "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
        "name": "Expresso Do Sul",
        "slug": "expresso-do-sul"
      },
      "connections": 0,
      "currency": "BRL",
      "departure": {
        "city": "São Paulo",
        "date": "2026-12-19",
        "datetime": "2026-12-19T00:05:00",
        "place": "São Paulo - Rodoviária do Tietê",
        "place_id": 4017,
        "slug": "sao-paulo-tiete-sp",
        "state": "SP",
        "time": "00:05"
      },
      "discount_available": true,
      "duration": "6h 30m",
      "duration_days": 0,
      "gratuity_trip": false,
      "installment_free": false,
      "low_fare": false,
      "max_installments": 4,
      "original_price": 154.99,
      "parts": [
        {
          "air_conditioning": true,
          "arrival": {
            "city": "Rio de Janeiro",
            "date": "2026-12-19",
            "datetime": "2026-12-19T06:35:00",
            "place": "Rio De Janeiro - Rodoviária Novo Rio",
            "place_id": 3827,
            "slug": "rio-de-janeiro-rj",
            "state": "RJ",
            "time": "06:35"
          },
          "available_seats": 21,
          "bathroom": true,
          "company": {
            "logo": "https://cms.clickbus.com/api/media-logos/logo/expresso-do-sul.svg",
            "name": "Expresso Do Sul",
            "slug": "expresso-do-sul"
          },
          "departure": {
            "city": "São Paulo",
            "date": "2026-12-19",
            "datetime": "2026-12-19T00:05:00",
            "place": "São Paulo - Rodoviária do Tietê",
            "place_id": 4017,
            "slug": "sao-paulo-tiete-sp",
            "state": "SP",
            "time": "00:05"
          },
          "duration": "6h 30m",
          "electronic_boarding_pass": true,
          "has_itinerary": false,
          "leg_support": true,
          "low_fare": false,
          "low_fare_seats": null,
          "original_price": 154.99,
          "price": 154.99,
          "seat_recline_degrees": 135,
          "service_class": "Semi-leito",
          "service_class_id": 3,
          "total_seats": 46,
          "trip_id": "9b24fb59-8571-3787-b8ba-649b019200dc",
          "waiting_time": null,
          "woman_space": false
        }
      ],
      "price": 154.99,
      "reservable": true,
      "service_class": "Semi-leito",
      "trip_ids": [
        "9b24fb59-8571-3787-b8ba-649b019200dc"
      ],
      "type": "direct",
      "url": "https://www.clickbus.com.br/onibus/sao-paulo-tiete-sp/rio-de-janeiro-rj?departureDate=2026-12-19"
    },
    {
      "arrival": {
        "city": "Rio de Janeiro",
        "date": "2026-12-19",
        "datetime": "2026-12-19T06:35:00",
        "place": "Rio De Janeiro - Rodoviária Novo Rio",
        "place_id": 3827,
        "slug": "rio-de-janeiro-rj",
        "state": "RJ",
        "time": "06:35"
      },
      "available_seats": 11,
      "company": {
        "logo": "https://cms.clickbus.com/api/media-logos/logo/aguia-branca.svg",
        "name": "Águia Branca",
        "slug": "aguia-branca"
      },
      "connections": 0,
      "currency": "BRL",
      "departure": {
        "city": "São Paulo",
        "date": "2026-12-19",
        "datetime": "2026-12-19T00:05:00",
        "place": "São Paulo - Rodoviária do Tietê",
        "place_id": 4017,
        "slug": "sao-paulo-tiete-sp",
        "state": "SP",
        "time": "00:05"
      },
      "discount_available": true,
      "duration": "6h 30m",
      "duration_days": 0,
      "gratuity_trip": false,
      "installment_free": false,
      "low_fare": false,
      "max_installments": 4,
      "original_price": 209.91,
      "parts": [
        {
          "air_conditioning": true,
          "arrival": {
            "city": "Rio de Janeiro",
            "date": "2026-12-19",
            "datetime": "2026-12-19T06:35:00",
            "place": "Rio De Janeiro - Rodoviária Novo Rio",
            "place_id": 3827,
            "slug": "rio-de-janeiro-rj",
            "state": "RJ",
            "time": "06:35"
          },
          "available_seats": 11,
          "bathroom": true,
          "company": {
            "logo": "https://cms.clickbus.com/api/media-logos/logo/aguia-branca.svg",
            "name": "Águia Branca",
            "slug": "aguia-branca"
          },
          "departure": {
            "city": "São Paulo",
            "date": "2026-12-19",
            "datetime": "2026-12-19T00:05:00",
            "place": "São Paulo - Rodoviária do Tietê",
            "place_id": 4017,
            "slug": "sao-paulo-tiete-sp",
            "state": "SP",
            "time": "00:05"
          },
          "duration": "6h 30m",
          "electronic_boarding_pass": true,
          "has_itinerary": true,
          "leg_support": true,
          "low_fare": false,
          "low_fare_seats": null,
          "original_price": 209.91,
          "price": 209.91,
          "seat_recline_degrees": 140,
          "service_class": "Leito Individual",
          "service_class_id": 4,
          "total_seats": 14,
          "trip_id": "16ad0fe7-1788-3eb0-beb0-c63b47c82217",
          "waiting_time": null,
          "woman_space": false
        }
      ],
      "price": 209.91,
      "reservable": true,
      "service_class": "Leito Individual",
      "trip_ids": [
        "16ad0fe7-1788-3eb0-beb0-c63b47c82217"
      ],
      "type": "direct",
      "url": "https://www.clickbus.com.br/onibus/sao-paulo-tiete-sp/rio-de-janeiro-rj?departureDate=2026-12-19"
    }
  ]
}

Response result

Response structure

Inferred from examples
  • alternative_datenull
  • applied_filtersobject
    • companynull
    • datestring
    • destinationstring
    • direct_onlyboolean
    • gratuityboolean
    • low_fare_onlyboolean
    • max_departure_timestring
    • max_pricenull
    • min_departure_timestring
    • orderstring
    • originstring
    • return_datenull
    • service_classnull
    • sortstring
  • available_days_of_weekunknown[]
  • cachedboolean
  • companiesobject[]
    • idinteger
    • logostring
    • namestring
    • slugstring
  • countinteger
  • credits_usedinteger
  • datestring
  • destinationobject
    • citystring
    • namestring
    • slugstring
    • statestring
  • fetched_atstring
  • filtersobject
    • serviceClassesobject[]
      • idinteger
      • namestring
    • terminalsConnectionunknown[]
    • terminalsDestinationobject[]
      • idstring
      • namestring
    • terminalsOriginobject[]
      • idstring
      • namestring
    • travelCompaniesobject[]
      • idstring
      • namestring
  • originobject
    • citystring
    • namestring
    • slugstring
    • statestring
  • redirected_fromnull
  • returnnull
  • terminalsobject[]
    • addressstring
    • namestring
    • phonenull | string
    • slugstring
  • tripsobject[]
    • arrivalobject
      • citystring
      • datestring
      • datetimestring
      • placestring
      • place_idinteger
      • slugstring
      • statestring
      • timestring
    • available_seatsinteger
    • companyobject
      • logostring
      • namestring
      • slugstring
    • connectionsinteger
    • currencystring
    • departureobject
      • citystring
      • datestring
      • datetimestring
      • placestring
      • place_idinteger
      • slugstring
      • statestring
      • timestring
    • discount_availableboolean
    • durationstring
    • duration_daysinteger
    • gratuity_tripboolean
    • installment_freeboolean
    • low_fareboolean
    • max_installmentsinteger
    • original_pricenumber
    • partsobject[]
      • air_conditioningboolean
      • arrivalobject
        • citystring
        • datestring
        • datetimestring
        • placestring
        • place_idinteger
        • slugstring
        • statestring
        • timestring
      • available_seatsinteger
      • bathroomboolean
      • companyobject
        • logostring
        • namestring
        • slugstring
      • departureobject
        • citystring
        • datestring
        • datetimestring
        • placestring
        • place_idinteger
        • slugstring
        • statestring
        • timestring
      • durationstring
      • electronic_boarding_passboolean
      • has_itineraryboolean
      • leg_supportboolean
      • low_fareboolean
      • low_fare_seatsnull | integer
      • original_pricenumber
      • pricenumber
      • seat_recline_degreesinteger
      • service_classstring
      • service_class_idinteger
      • total_seatsinteger
      • trip_idstring
      • waiting_timenull
      • woman_spaceboolean
    • pricenumber
    • reservableboolean
    • service_classstring
    • trip_idsstring[]
    • typestring
    • urlstring

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 bus trips API with your agent

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