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...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent ClickBus bus trips API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
alternative_datenullapplied_filtersobjectcompanynulldatestringdestinationstringdirect_onlybooleangratuitybooleanlow_fare_onlybooleanmax_departure_timestringmax_pricenullmin_departure_timestringorderstringoriginstringreturn_datenullservice_classnullsortstring
available_days_of_weekunknown[]cachedbooleancompaniesobject[]idintegerlogostringnamestringslugstring
countintegercredits_usedintegerdatestringdestinationobjectcitystringnamestringslugstringstatestring
fetched_atstringfiltersobjectserviceClassesobject[]idintegernamestring
terminalsConnectionunknown[]terminalsDestinationobject[]idstringnamestring
terminalsOriginobject[]idstringnamestring
travelCompaniesobject[]idstringnamestring
originobjectcitystringnamestringslugstringstatestring
redirected_fromnullreturnnullterminalsobject[]addressstringnamestringphonenull | stringslugstring
tripsobject[]arrivalobjectcitystringdatestringdatetimestringplacestringplace_idintegerslugstringstatestringtimestring
available_seatsintegercompanyobjectlogostringnamestringslugstring
connectionsintegercurrencystringdepartureobjectcitystringdatestringdatetimestringplacestringplace_idintegerslugstringstatestringtimestring
discount_availablebooleandurationstringduration_daysintegergratuity_tripbooleaninstallment_freebooleanlow_farebooleanmax_installmentsintegeroriginal_pricenumberpartsobject[]air_conditioningbooleanarrivalobjectcitystringdatestringdatetimestringplacestringplace_idintegerslugstringstatestringtimestring
available_seatsintegerbathroombooleancompanyobjectlogostringnamestringslugstring
departureobjectcitystringdatestringdatetimestringplacestringplace_idintegerslugstringstatestringtimestring
durationstringelectronic_boarding_passbooleanhas_itinerarybooleanleg_supportbooleanlow_farebooleanlow_fare_seatsnull | integeroriginal_pricenumberpricenumberseat_recline_degreesintegerservice_classstringservice_class_idintegertotal_seatsintegertrip_idstringwaiting_timenullwoman_spaceboolean
pricenumberreservablebooleanservice_classstringtrip_idsstring[]typestringurlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
alternative_date?: null;
applied_filters?: {
company?: null;
date?: string;
destination?: string;
direct_only?: boolean;
gratuity?: boolean;
low_fare_only?: boolean;
max_departure_time?: string;
max_price?: null;
min_departure_time?: string;
order?: string;
origin?: string;
return_date?: null;
service_class?: null;
sort?: string;
};
available_days_of_week?: Array<unknown>;
cached?: boolean;
companies?: Array<{
id?: number;
logo?: string;
name?: string;
slug?: string;
}>;
count?: number;
credits_used?: number;
date?: string;
destination?: {
city?: string;
name?: string;
slug?: string;
state?: string;
};
fetched_at?: string;
filters?: {
serviceClasses?: Array<{
id?: number;
name?: string;
}>;
terminalsConnection?: Array<unknown>;
terminalsDestination?: Array<{
id?: string;
name?: string;
}>;
terminalsOrigin?: Array<{
id?: string;
name?: string;
}>;
travelCompanies?: Array<{
id?: string;
name?: string;
}>;
};
origin?: {
city?: string;
name?: string;
slug?: string;
state?: string;
};
redirected_from?: null;
return?: null;
terminals?: Array<{
address?: string;
name?: string;
phone?: null | string;
slug?: string;
}>;
trips?: Array<{
arrival?: {
city?: string;
date?: string;
datetime?: string;
place?: string;
place_id?: number;
slug?: string;
state?: string;
time?: string;
};
available_seats?: number;
company?: {
logo?: string;
name?: string;
slug?: string;
};
connections?: number;
currency?: string;
departure?: {
city?: string;
date?: string;
datetime?: string;
place?: string;
place_id?: number;
slug?: string;
state?: string;
time?: string;
};
discount_available?: boolean;
duration?: string;
duration_days?: number;
gratuity_trip?: boolean;
installment_free?: boolean;
low_fare?: boolean;
max_installments?: number;
original_price?: number;
parts?: Array<{
air_conditioning?: boolean;
arrival?: {
city?: string;
date?: string;
datetime?: string;
place?: string;
place_id?: number;
slug?: string;
state?: string;
time?: string;
};
available_seats?: number;
bathroom?: boolean;
company?: {
logo?: string;
name?: string;
slug?: string;
};
departure?: {
city?: string;
date?: string;
datetime?: string;
place?: string;
place_id?: number;
slug?: string;
state?: string;
time?: string;
};
duration?: string;
electronic_boarding_pass?: boolean;
has_itinerary?: boolean;
leg_support?: boolean;
low_fare?: boolean;
low_fare_seats?: null | number;
original_price?: number;
price?: number;
seat_recline_degrees?: number;
service_class?: string;
service_class_id?: number;
total_seats?: number;
trip_id?: string;
waiting_time?: null;
woman_space?: boolean;
}>;
price?: number;
reservable?: boolean;
service_class?: string;
trip_ids?: Array<string>;
type?: string;
url?: string;
}>;
};- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips?days_ahead=30&destination=rio-de-janeiro-rj&max_departure_time=00%3A10&min_departure_time=00%3A00&origin=sao-paulo-tiete-sp&output=json&raw=0' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
origin | URL query parametersquery | string | Yes | Origin place slug from `/clickbus/v1/places`, e.g. `sao-paulo-tiete-sp` or a whole city `sao-paulo-sp-todos`. |
destination | URL query parametersquery | string | Yes | Destination place slug, e.g. `rio-de-janeiro-rj`. |
date | URL query parametersquery | string | No | Departure date, YYYY-MM-DD. Give `date` or `days_ahead`. |
days_ahead | URL query parametersquery | integer | No | Departure this many days from today (0-330), instead of `date`. |
return_date | URL query parametersquery | string | No | Return date, YYYY-MM-DD (optional). |
company | URL query parametersquery | string | No | Bus company slug, e.g. `1001`, `cometa`, `aguia-branca`. |
min_departure_time | URL query parametersquery | string | No | Earliest departure, HH:MM. |
max_departure_time | URL query parametersquery | string | No | Latest departure, HH:MM. |
service_class | URL query parametersquery | string | No | Seat classes, comma-separated names or ids, e.g. `leito,semi-leito` or `4`. |
direct_only | URL query parametersquery | boolean | No | `true`: only trips without a connection. |
low_fare_only | URL query parametersquery | boolean | No | `true`: only low-fare trips. |
max_price | URL query parametersquery | number | No | Highest price in BRL. |
gratuity | URL query parametersquery | boolean | No | `true`: trips with gratuity seats (seniors, ID Jovem, Passe Livre). |
sort | URL query parametersquery | string | No | Sort order (default departure). enum: "departure", "price", "duration", "arrival" |
order | URL query parametersquery | string | No | asc (default) or desc. enum: "asc", "desc" |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}
]
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# 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.
Documentation: https://openany.si/apis/eee16a83-9516-4e06-80a6-ed44cd9dc0a5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips?days_ahead=30&destination=rio-de-janeiro-rj&max_departure_time=00%3A10&min_departure_time=00%3A00&origin=sao-paulo-tiete-sp&output=json&raw=0' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "ClickBus bus trips API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Origin place slug from `/clickbus/v1/places`, e.g. `sao-paulo-tiete-sp` or a whole city `sao-paulo-sp-todos`.",
"location": "query",
"name": "origin",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Destination place slug, e.g. `rio-de-janeiro-rj`.",
"location": "query",
"name": "destination",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Departure date, YYYY-MM-DD. Give `date` or `days_ahead`.",
"location": "query",
"name": "date",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Departure this many days from today (0-330), instead of `date`.",
"location": "query",
"name": "days_ahead",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Return date, YYYY-MM-DD (optional).",
"location": "query",
"name": "return_date",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Bus company slug, e.g. `1001`, `cometa`, `aguia-branca`.",
"location": "query",
"name": "company",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Earliest departure, HH:MM.",
"location": "query",
"name": "min_departure_time",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Latest departure, HH:MM.",
"location": "query",
"name": "max_departure_time",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Seat classes, comma-separated names or ids, e.g. `leito,semi-leito` or `4`.",
"location": "query",
"name": "service_class",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`true`: only trips without a connection.",
"location": "query",
"name": "direct_only",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "`true`: only low-fare trips.",
"location": "query",
"name": "low_fare_only",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Highest price in BRL.",
"location": "query",
"name": "max_price",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "`true`: trips with gratuity seats (seniors, ID Jovem, Passe Livre).",
"location": "query",
"name": "gratuity",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Sort order (default departure).",
"enum_values": [
"departure",
"price",
"duration",
"arrival"
],
"location": "query",
"name": "sort",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "asc (default) or desc.",
"enum_values": [
"asc",
"desc"
],
"location": "query",
"name": "order",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "0",
"max_cost_micro_usd": "2000",
"quantities": [
{
"id": "upstream_credits",
"label": "Actual API.SH credits consumed",
"max_quantity": "1",
"measure": "value",
"pointer": "/credits_used",
"price_micro_usd": "2000",
"quantity_scale": 0,
"source": "response",
"unit": "credit",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Nonempty request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"days_ahead": "30",
"destination": "rio-de-janeiro-rj",
"max_departure_time": "00:10",
"min_departure_time": "00:00",
"origin": "sao-paulo-tiete-sp",
"output": "json",
"raw": "0"
}
},
"response_body": {
"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"
}
]
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example · Live API.SH response · Nonempty request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 20
Review these request fields before running. Keep the published provider and request method unchanged.
origin- Origin place slug from `/clickbus/v1/places`, e.g. `sao-paulo-tiete-sp` or a whole city `sao-paulo-sp-todos`.
destination- Destination place slug, e.g. `rio-de-janeiro-rj`.
date- Departure date, YYYY-MM-DD. Give `date` or `days_ahead`.
days_ahead- Departure this many days from today (0-330), instead of `date`.
return_date- Return date, YYYY-MM-DD (optional).
company- Bus company slug, e.g. `1001`, `cometa`, `aguia-branca`.
min_departure_time- Earliest departure, HH:MM.
max_departure_time- Latest departure, HH:MM.
service_class- Seat classes, comma-separated names or ids, e.g. `leito,semi-leito` or `4`.
direct_only- `true`: only trips without a connection.
low_fare_only- `true`: only low-fare trips.
max_price- Highest price in BRL.
gratuity- `true`: trips with gratuity seats (seniors, ID Jovem, Passe Livre).
sort- Sort order (default departure).
order- asc (default) or desc.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/clickbus/v1/trips?days_ahead=30&destination=rio-de-janeiro-rj&max_departure_time=00%3A10&min_departure_time=00%3A00&origin=sao-paulo-tiete-sp&output=json&raw=0' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
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" } ] }
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.