---
title: "Get a transit stop's lines and live departures from Apple Maps"
method: GET
path: "/apple-maps/transit-departures"
tags: ["Apple Maps"]
---

# Get a transit stop's lines and live departures from Apple Maps

`GET /apple-maps/transit-departures`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/apple-maps/transit-departures`
- Auth: API key in header `x-api-key`

Returns a transit stop or station's systems (e.g. BART, Muni Metro), lines (name, shield, color), and the upcoming departures Apple Maps shows, each with the line, headsign, direction, scheduled and live times, and real-time status. Takes the stop's Apple place ID (find stops with the search endpoint, e.g. a station name). A place that is not a transit stop returns 404.

## Query parameters

- `place_id` string, required
- `lang` string
- `country` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- ApplemapsTransitDeparturesResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` ApplemapsTransitDeparturesResponse
    - `departures` ApplemapsTransitDeparture[]
      - `direction` string
      - `headsign` string
      - `line` string
      - `line_id` string
      - `live` string
      - `origin` string
      - `scheduled` string
      - `status` string
      - `stop_id` string
    - `lines` ApplemapsTransitLine[]
      - `color` string
      - `id` string
      - `name` string
      - `shield` string
      - `system` string
      - `type` integer
    - `place` ApplemapsPlaceRef
      - `id` string
      - `name` string
    - `stop_name` string
    - `systems` ApplemapsTransitSystem[]
      - `id` string
      - `name` string
    - `ttl_seconds` integer
  - `msg` unknown

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
