---
title: "Line Stops"
method: GET
path: "/line/{line_code}/stops"
---

# Line Stops

`GET /line/{line_code}/stops`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/line/{line_code}/stops`
- Auth: none declared

## Path parameters

- `line_code` string, required

## Query parameters

- `route_code` string, nullable

## Response `200`

Successful Response

- LineStop[]
  - `stop_name` string, required
  - `stop_code` integer, required
  - `coordinates` Coordinates, required
    - `x` number, required
    - `y` number, required
  - `direction` string, required
  - `line_code` string, required
  - `route_code` string, required
  - `route_order` integer, required
  - `route_direction` 'outbound' | 'inbound', required

## Other responses

- `422`: Validation Error

## Changes

- **2024-12-06** `1f272d11e862`: 1 breaking
  - removed the required property `items/line_id` from the response with the `200` status

[Operation history](https://skmtc.dev/styrowolf/apis/oguz-kurt-fern-api/changes/line/:line_code/stops/get.md)

---

[API](https://skmtc.dev/styrowolf/apis/oguz-kurt-fern-api.md) - [All operations](https://skmtc.dev/styrowolf/apis/oguz-kurt-fern-api/llms.txt) - [OpenAPI document](https://skmtc.dev/styrowolf/apis/oguz-kurt-fern-api/revisions/1f272d11e862?raw)
