# ClickBus station list API

Browse ClickBus station and destination directory entries by region or text via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including source directory-entry name, source location slug, source region code, source entry-page URL, and source total matching-entry count for location directory, and paginated navigation.

Documentation: https://openany.si/clickbus/clickbus-station-list-api/0e611443-5a31-40cc-8cb1-5818ad9d3321/
API ID: 0e611443-5a31-40cc-8cb1-5818ad9d3321
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/clickbus/v1/stations
Page update time: 2026-12-03T02:47:05.465Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:02.351Z. This is not a price-change timestamp.
```json
{
  "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": []
  }
}
```

## Usage and limits
## ClickBus Station Directory API

Optionally use state, q, page and limit. Directory entries provide name, slug, state and URL; a destination URL is not automatically a dedicated station-profile URL.

## What You Can Build

- **Location directory**: Preserve source entry type and region.
- **Paginated navigation**: Use next\_page rather than guessing the full directory size.

## Returned Data

| Field | Meaning |
| --- | --- |
| `stations[].name` | Source directory-entry name |
| `stations[].slug` | Source location slug |
| `stations[].state` | Source region code |
| `stations[].url` | Source entry-page URL |
| `next_page` | Next directory page when present |
| `total` | Source total matching-entry count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ClickBus station list API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "Two-letter state (UF), e.g. `SP`, or `INT` for international."
        },
        "q": {
          "type": "string",
          "description": "Part of the name."
        },
        "page": {
          "type": "integer",
          "description": "Page (default 1)."
        },
        "limit": {
          "type": "integer",
          "description": "Results per page, 1-500 (default 100)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "limit": {
      "type": "integer"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "null"
    },
    "regions": {
      "type": "object",
      "properties": {
        "Centro-Oeste": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Nordeste": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Norte": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Sudeste": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Sul": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "state": {
      "type": "string"
    },
    "stations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "state_name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/clickbus/v1/stations?limit=1&output=json&raw=0&state=SP' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:24:53.875Z",
  "limit": 1,
  "next_page": 2,
  "page": 1,
  "query": null,
  "regions": {
    "Centro-Oeste": [
      "DF",
      "GO",
      "MS"
    ],
    "Nordeste": [
      "BA",
      "CE",
      "PE",
      "RN",
      "SE"
    ],
    "Norte": [
      "AC",
      "AM",
      "AP",
      "PA",
      "RO",
      "RR",
      "TO"
    ],
    "Sudeste": [
      "ES",
      "MG",
      "RJ",
      "SP"
    ],
    "Sul": [
      "PR",
      "RS",
      "SC"
    ]
  },
  "state": "SP",
  "stations": [
    {
      "name": "Adamantina",
      "slug": "adamantina-sp",
      "state": "SP",
      "state_name": "São Paulo",
      "url": "https://www.clickbus.com.br/onibus/adamantina-sp"
    }
  ],
  "total": 292
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What region format is supported?
Use a Brazilian two-letter state code, or INT for international entries.

### How do I paginate?
page starts at 1. limit accepts up to 500 and defaults to 100; preserve next_page and total.

### Does every result have a station detail page?
No. Retain the returned source URL and page type; some entries point to destination pages.

### Can I filter entries by text?
Use q for a partial match and keep the selected region and pagination context.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/clickbus/clickbus-station-list-api/0e611443-5a31-40cc-8cb1-5818ad9d3321/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
