# Clickbus Listings API

> Every bus trip ClickBus sells for a Brazilian route and departure date: bus company, departure and arrival time, duration in BRL, seat class (leito, semi-leito, executivo...), origin and destination terminal, seats left and connections. No login needed.

- Page: https://cleanedweb.com/catalog/clickbus-listings-api/
- Contract (JSON): https://cleanedweb.com/catalog/clickbus-listings-api/contract.json
- Source: clickbus.com.br (https://www.clickbus.com.br/)
- Category: Travel & stays
- Countries: Brazil
- Updated: 2026-12-05

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `Ônibus para Rio de Janeiro, RJ` |
| `route.description` | string | `Viagens de ônibus de São Paulo para o Rio de Janeiro pela ClickBus têm preço mí…` |
| `url` | string | `https://www.clickbus.com.br/passagem/sao-paulo-sp-para-rio-de-janeiro-rj` |
| `image.url` | string | `https://www.clickbus.com.br/_next/image?url=https%3A%2F%2Fcms.clickbus.com%2Fapi%2Fmedia-places%2Fby-slug%3Fw%3D120%26h%3D60%26q%3D85%26slug%3Drio-de-janeiro-rj&w=256&q=85` |
| `location.destination` | string | `Rio de Janeiro, RJ` |
| `location.origin` | string | `São Paulo, SP` |
| `image.slug` | string | `rio-de-janeiro-rj` |
| `route.booking_heading` | string | `Origem Destino` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/clickbus-listings-api/contract.json

## Inputs

- `origin_final` (string): Free text: any origin final the site serves, up to 100 characters. A name the site does not serve is refused. Leave it out for the default listing. For example: paulo.
- `destination_final` (string): Free text: any destination final the site serves, up to 100 characters. A name the site does not serve is refused. Leave it out for the default listing. For example: paulo.
- `search_box_radio_group` (boolean): Filters by search box radio group.
- `urls` (string \| array of string): Links copied from the site's address bar, one or a list. A results link (a category page, a search or a filtered list) is read as this API's own inputs and that list is walked; the run echoes each link's inputs in links. A record's own page (path shaped /passagem/{slug}) is read as that one record. Record pages take no search or filter input beside them. A link from another site, or one that names a page or filter this API has no input for, refuses the call with the unread parts listed; it is never served from another page. Tracking and paging keys are dropped. Several links are read in order and max_items counts across all of them.
- `from_url` (string): Deprecated: send the link in \`urls\`. A results link copied from the site (its own address bar): a category page, a search or a filtered list. It is read as this API's own inputs and the run echoes them as \`decoded\`. Tracking and paging keys are dropped. A link from another site, or one that names a page or filter this API has no input for, is refused with the unread parts listed; it is never served from another page.

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_d69fcfb077cd1344f64460e5/endpoints/generated_d69fcfb077cd1344f64460e5_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_d69fcfb077cd1344f64460e5/endpoints/generated_d69fcfb077cd1344f64460e5_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {},
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_d69fcfb077cd1344f64460e5/endpoints/generated_d69fcfb077cd1344f64460e5_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-12-04

The same changelog, as data, is in https://cleanedweb.com/catalog/clickbus-listings-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_d69fcfb077cd1344f64460e5`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Clickbus.
