---
title: "View specific routes"
method: GET
path: "/bus/routes/{route_ids}"
tags: ["bus"]
---

# View specific routes

`GET /bus/routes/{route_ids}`

## Request

- Base URL: `https://api.umd.io/v1`
- URL: `https://api.umd.io/v1/bus/routes/{route_ids}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/umdio/apis/umd-io/docs/bus/routes/:route_ids/get.ts> (a function with typed inputs; its response is checked against the schema)

Get route data for one or more routes

## Path parameters

- `route_ids` string[], required

## Response `200`

Successful Operation

- object
  - `data` Route: Bus route
    - `route_id` string: A unique three digit route number
    - `title` string: String name of the route
    - `stops` Stop[]: Array of stops on the route
      - `stop_id` string: Unique string identifier for a stop, should be mostly human-readable
      - `title` string: Full name of the stop
      - `lat` number, float: Latitude
      - `long` number, float: Longitude
    - `directions` object[]: Array of directions the bus travels
      - `direction_id` string: Unique (relative to the route) string titling the direction
      - `title` string: String name of the direction
      - `stops` string[]: Names of stops along the route
    - `paths` array[]: Lat/Long points to draw the route on a map
      - object[]
        - `lat` number, float
        - `long` number, float
    - `lat_max` number, float
    - `lat_min` number, float
    - `long_max` number, float
    - `long_min` number, float
  - `count` number: Number of routes returned

## Other responses

- `400`: Malformed route code
- `404`: Unknown route code

## Changes

- **2020-03-31** `b4919cd9fb0d`: 1 info
  - endpoint added
- **2019-07-02** `f2f973dd5f11`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/umdio/apis/umd-io/changes/bus/routes/:route_ids/get.md)

---

[API](https://skmtc.dev/umdio/apis/umd-io.md) - [All operations](https://skmtc.dev/umdio/apis/umd-io/llms.txt) - [OpenAPI document](https://skmtc.dev/umdio/apis/umd-io/revisions/c0fac695dd04?raw)
