> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecroma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Red Movilidad

> Santiago's public transport network. Every stop and route of the Red buses, Metro and trains, scheduled departures at any stop, and the buses on their way to a stop right now.

Red Movilidad is Santiago's integrated public transport network: the Red buses,
Metro de Santiago and the EFE trains to Nos and Rancagua. Its schedule is
published by the Directorio de Transporte Público Metropolitano (DTPM). About
12,600 stops and stations, 425 routes and 8.9 million scheduled departures a
week.

Find a stop by name, by the code on its sign or near a point, see which routes
serve it and when the next ones leave, follow a route stop by stop on the map,
and see which buses are on their way to a stop right now. The schedule endpoints
answer from data refreshed with each release; the live arrivals read the network
as it runs.

## Search stops

`POST /cl/red-movilidad/stops-search/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

Finds stops and stations by name, by route, or around a point. Start here to
get the `stop_id` the other endpoints take.

**Request**

| Field | Type | Notes |
| - | - | - |
| `query` | string | Optional. Words in the name, or the code on the sign, e.g. `Manuel Montt`, `Baquedano`, `PC1`. |
| `route` | string | Optional. The code printed on the bus or the line (`506`, `210e`, `L1`), or a `route_id`. A code covers both directions. |
| `kind` | enum | Optional. `station` or `stop` (a street stop or a platform). Both by default. |
| `latitude` | number,null | Optional. Latitude of a point, e.g. `-33.4372`. With `longitude`, only what is within `radius_m`, nearest first. Default `null`. |
| `longitude` | number,null | Optional. Longitude of the point, e.g. `-70.6344`. Default `null`. |
| `radius_m` | integer | Optional. Metres around the point, 50-5000. Default `500`. |
| `page` | integer | Optional. 1-based page. Default `1`. |
| `per_page` | integer | Optional. Results per page, 1-100. Default `20`. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/stops-search/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "Manuel Montt" }'
```

**Response**

Returns the matching stops and stations. Each stop carries `distance_m` when you searched around a point. It also carries `as_of`, how current the data is, and [the paging fields](https://docs.usecroma.com/datasets.md#pages-and-totals).

| Field | Notes |
| - | - |
| `stops[]` | |
| `stops[].stop_id` | The stop's id. For a street stop it is the code on its sign, e.g. `PC1`. |
| `stops[].code` | The code on the stop's sign, e.g. `PC1`; null for a station or a platform. |
| `stops[].name` | The stop's or station's name, e.g. `Parada 3 / (M) Manuel Montt`. |
| `stops[].kind` | `station` (a Metro or train station, which holds platforms) or `stop` (a street stop, or a platform inside a station). |
| `stops[].parent_station` | The `stop_id` of the station a platform belongs to. |
| `stops[].latitude` | Decimal degrees (WGS84). |
| `stops[].longitude` | Decimal degrees (WGS84). |
| `stops[].wheelchair_boarding` | Whether a wheelchair can board here; null when the network does not say. |
| `stops[].route_ids[]` | Every route that stops here (for a station, at any of its platforms). |
| `stops[].route_codes[]` | The public codes of those routes, e.g. `506`. |
| `stops[].routes[]` | Every route that stops there, `{ route_id, short_name, long_name, system }`. A station gathers the routes of all its platforms. |
| `stops[].systems[]` | The parts of the network that serve the stop. |
| `stops[].platforms[]` | For a station, the `stop_id` of every platform inside it. |
| `stops[].distance_m` | Metres from the point searched around; null without one. |

## One stop

`POST /cl/red-movilidad/stop/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

Returns one stop or station by its id.

**Request**

| Field | Type | Notes |
| - | - | - |
| `stop_id` | string | **Required.** The `stop_id` from the stop search. For a street stop it is the code on its sign, e.g. `PC1`. A station covers every platform inside it. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/stop/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "stop_id": "PC1" }'
```

**Response**

Returns the stop and, for a platform, its station. An unknown id answers `found: false`. It also carries `as_of`, how current the data is.

| Field | Notes |
| - | - |
| `found` | False for an id the network does not publish. |
| `stop` | |
| `stop.stop_id` | The stop's id. For a street stop it is the code on its sign, e.g. `PC1`. |
| `stop.code` | The code on the stop's sign, e.g. `PC1`; null for a station or a platform. |
| `stop.name` | The stop's or station's name, e.g. `Parada 3 / (M) Manuel Montt`. |
| `stop.kind` | `station` (a Metro or train station, which holds platforms) or `stop` (a street stop, or a platform inside a station). |
| `stop.parent_station` | The `stop_id` of the station a platform belongs to. |
| `stop.latitude` | Decimal degrees (WGS84). |
| `stop.longitude` | Decimal degrees (WGS84). |
| `stop.wheelchair_boarding` | Whether a wheelchair can board here; null when the network does not say. |
| `stop.route_ids[]` | Every route that stops here (for a station, at any of its platforms). |
| `stop.route_codes[]` | The public codes of those routes, e.g. `506`. |
| `stop.routes[]` | Every route that stops there, `{ route_id, short_name, long_name, system }`. A station gathers the routes of all its platforms. |
| `stop.systems[]` | The parts of the network that serve the stop. |
| `stop.platforms[]` | For a station, the `stop_id` of every platform inside it. |
| `station` | For a platform, the station it belongs to. |
| `station.stop_id` | The stop's id. For a street stop it is the code on its sign, e.g. `PC1`. |
| `station.code` | The code on the stop's sign, e.g. `PC1`; null for a station or a platform. |
| `station.name` | The stop's or station's name, e.g. `Parada 3 / (M) Manuel Montt`. |
| `station.kind` | `station` (a Metro or train station, which holds platforms) or `stop` (a street stop, or a platform inside a station). |
| `station.parent_station` | The `stop_id` of the station a platform belongs to. |
| `station.latitude` | Decimal degrees (WGS84). |
| `station.longitude` | Decimal degrees (WGS84). |
| `station.wheelchair_boarding` | Whether a wheelchair can board here; null when the network does not say. |
| `station.route_ids[]` | Every route that stops here (for a station, at any of its platforms). |
| `station.route_codes[]` | The public codes of those routes, e.g. `506`. |
| `station.routes[]` | Every route that stops there, `{ route_id, short_name, long_name, system }`. A station gathers the routes of all its platforms. |
| `station.systems[]` | The parts of the network that serve the stop. |
| `station.platforms[]` | For a station, the `stop_id` of every platform inside it. |

## Departures from a stop

`POST /cl/red-movilidad/stop-departures/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

The timetable at a stop: the next departures from now, or from any time on any
day.

**Request**

| Field | Type | Notes |
| - | - | - |
| `stop_id` | string | **Required.** The `stop_id` from the stop search. For a street stop it is the code on its sign, e.g. `PC1`. A station covers every platform inside it. |
| `date` | string | Optional. `yyyy-mm-dd` in Santiago. Today by default. |
| `from_time` | string | Optional. `HH:MM`, 24-hour. Now by default (the start of the day for another date). |
| `route` | string | Optional. The code printed on the bus or the line (`506`, `210e`, `L1`), or a `route_id`. A code covers both directions. |
| `limit` | integer | Optional. How many to return, 1-200. Default `20`. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/stop-departures/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "stop_id": "PC1" }'
```

**Response**

Returns the scheduled departures from the stop. Routes that end at the stop are left out: they arrive, they do not leave. It also carries `as_of`, how current the data is, and [the paging fields](https://docs.usecroma.com/datasets.md#pages-and-totals).

| Field | Notes |
| - | - |
| `found` | False for an id the network does not publish. |
| `stop_name` | |
| `date` | The service day read, `yyyy-mm-dd`. |
| `from_time` | `HH:MM` the list starts from. |
| `services[]` | The timetables in force that day. |
| `departures[]` | |
| `departures[].time` | `HH:MM` on the clock in Santiago. |
| `departures[].at` | ISO 8601 on Santiago's clock, with the offset in force that day. |
| `departures[].minutes_from_now` | Minutes from the moment of the request; null for another day. |
| `departures[].timing` | `timetable` for a fixed time (Metro, trains). `frequency` when the route runs every so many minutes: the time is where that frequency puts a bus, not a promise of the minute. |
| `departures[].route_id` | |
| `departures[].route_code` | |
| `departures[].route_name` | |
| `departures[].headsign` | Where the bus or train is headed. |
| `departures[].system` | |
| `departures[].stop_id` | The platform it leaves from (for a station, one of its platforms). |

## Search routes

`POST /cl/red-movilidad/routes-search/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

Finds routes by code, name, system or a stop they serve.

**Request**

| Field | Type | Notes |
| - | - | - |
| `query` | string | Optional. The route's code or words in its name, e.g. `506`, `L1`, `Peñalolén`. |
| `system` | enum | Optional. `bus` (the Red buses), `metro` or `tren`. |
| `stop_id` | string | Optional. Only routes that stop at this `stop_id` (for a station, at any of its platforms). |
| `page` | integer | Optional. 1-based page. Default `1`. |
| `per_page` | integer | Optional. Results per page, 1-100. Default `20`. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/routes-search/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "506" }'
```

**Response**

Returns the matching routes. It also carries `as_of`, how current the data is, and [the paging fields](https://docs.usecroma.com/datasets.md#pages-and-totals).

| Field | Notes |
| - | - |
| `routes[]` | |
| `routes[].route_id` | The route's id; one id covers both directions. |
| `routes[].short_name` | The code printed on the bus or the line, e.g. `506`, `210e`, `L1`. |
| `routes[].long_name` | The route's name, usually its two ends. |
| `routes[].system` | `bus` (the Red buses), `metro` (Metro de Santiago) or `tren` (EFE trains). |
| `routes[].system_name` | The operator's name, e.g. `Metro de Santiago`. |
| `routes[].mode` | The vehicle: `bus`, `metro` or `rail`. |
| `routes[].color` | The route's colour as `#rrggbb`. |
| `routes[].text_color` | |
| `routes[].stops_count` | |
| `routes[].trips_per_week` | Scheduled trips a week. |
| `routes[].first_departure` | `HH:MM:SS` of the earliest departure on any day. |
| `routes[].last_departure` | `HH:MM:SS` of the latest departure on any day; past `24:00:00` means after midnight. |
| `routes[].services[]` | Each timetable the route runs, `{ service_id, days[], trips, first_departure, last_departure }`. Times are `HH:MM:SS` of the service day. Past `24:00:00` is after midnight. |
| `routes[].headways[]` | How often the route runs in each window of the day, `{ service_id, direction, start_time, end_time, headway_seconds }`. The buses run by frequency, not by fixed times. |

## One route

`POST /cl/red-movilidad/route/v1` [Dataset 1 credit](https://docs.usecroma.com/datasets.md)

Returns one route with its stops in order and, on request, its path.

**Request**

| Field | Type | Notes |
| - | - | - |
| `route_id` | string | **Required.** The `route_id` from the route search, e.g. `506` or `L1`. |
| `include_geometry` | boolean | Optional. `true` adds each pattern's path as a GeoJSON `LineString`. Default `false`. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/route/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "route_id": "506" }'
```

**Response**

Returns the route: the route's fields plus `patterns[]`, the most frequent first. It also carries `as_of`, how current the data is.

| Field | Notes |
| - | - |
| `found` | False for an id the network does not publish. |
| `route` | |
| `route.route_id` | The route's id; one id covers both directions. |
| `route.short_name` | The code printed on the bus or the line, e.g. `506`, `210e`, `L1`. |
| `route.long_name` | The route's name, usually its two ends. |
| `route.system` | `bus` (the Red buses), `metro` (Metro de Santiago) or `tren` (EFE trains). |
| `route.system_name` | The operator's name, e.g. `Metro de Santiago`. |
| `route.mode` | The vehicle: `bus`, `metro` or `rail`. |
| `route.color` | The route's colour as `#rrggbb`. |
| `route.text_color` | |
| `route.stops_count` | |
| `route.trips_per_week` | Scheduled trips a week. |
| `route.first_departure` | `HH:MM:SS` of the earliest departure on any day. |
| `route.last_departure` | `HH:MM:SS` of the latest departure on any day; past `24:00:00` means after midnight. |
| `route.services[]` | Each timetable the route runs, `{ service_id, days[], trips, first_departure, last_departure }`. Times are `HH:MM:SS` of the service day. Past `24:00:00` is after midnight. |
| `route.headways[]` | How often the route runs in each window of the day, `{ service_id, direction, start_time, end_time, headway_seconds }`. The buses run by frequency, not by fixed times. |
| `route.patterns[]` | Each distinct sequence of stops it runs, the most frequent first: `{ shape_id, direction, headsign, trips_per_week, length_m, geometry, stops[] }`. Each stop is `{ sequence, stop_id, name, code, latitude, longitude, offset_seconds }`, where `offset_seconds` is the scheduled time from the first stop. |

## Live arrivals at a stop

`POST /cl/red-movilidad/stop-arrivals/v1` [Live 10 credits](https://docs.usecroma.com/live-lookups.md)

The buses heading to a stop now, soonest first.

**Request**

| Field | Type | Notes |
| - | - | - |
| `stop_id` | string | **Required.** The `stop_id` from the stop search. For a street stop it is the code on its sign, e.g. `PC1`. A station covers every platform inside it. |
| `route` | string | Optional. The code printed on the bus or the line (`506`, `210e`, `L1`), or a `route_id`. A code covers both directions. |
| `limit` | integer | Optional. How many to return, 1-200. Default `20`. |

```bash theme={"dark"}
curl https://api.croma.run/cl/red-movilidad/stop-arrivals/v1 \
  -H "Authorization: Bearer $CROMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "stop_id": "PC1" }'
```

**Response**

Returns the buses heading to the stop, up to two per route, and `routes[]` with the state of every route at the stop. `live` is `false` when the arrivals come from the published timetable instead (`basis: scheduled`): for a Metro or train station, or when Red is not answering. `notice` then says why in plain words (null while live). It also carries `as_of`, how current the data is, and [the paging fields](https://docs.usecroma.com/datasets.md#pages-and-totals).

| Field | Notes |
| - | - |
| `live` | True when the arrivals are Red's own word on the buses coming; false when they come from the timetable. |
| `notice` | Null while the data is live. Otherwise, in plain words, why the arrivals come from the timetable. |
| `found` | False for an id the network does not publish. |
| `stop_name` | |
| `arrivals[]` | |
| `arrivals[].predicted_at` | When the bus is expected at the stop, ISO 8601 on Santiago's clock. |
| `arrivals[].minutes_away` | |
| `arrivals[].wait` | The wait in Red's own words, e.g. `En menos de 3 min`, `Entre 8 Y 12 min`. `minutes_away` is the same wait as a number; a span is told by its middle. |
| `arrivals[].basis` | `predicted` when Red says a bus is on its way; `scheduled` from the timetable, when the stop is a station or the live data is not arriving (`live: false`). |
| `arrivals[].distance_m` | Metres the bus still has to run to reach the stop. |
| `arrivals[].stop_id` | The stop or platform it arrives at. |
| `arrivals[].route_id` | |
| `arrivals[].route_code` | |
| `arrivals[].route_name` | |
| `arrivals[].headsign` | Where the bus is headed. |
| `arrivals[].system` | |
| `arrivals[].license_plate` | |
| `routes[]` | Every route Red lists at the stop, with or without a bus on its way. Empty when the arrivals come from the timetable. |
| `routes[].route_code` | |
| `routes[].headsign` | |
| `routes[].status` | `arriving` (buses on their way), `no_buses` (none heading to the stop), `not_running` (outside its hours), `frequency` (Red gives only how often it runs), `stop_closed` or `unknown`. |
| `routes[].message` | What Red says about the route at this stop, in its own words. |

> [card] [Full reference](https://docs.usecroma.com/api-reference/overview.md)
>
> Schemas, all response fields, and an interactive playground.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.