# Bus Route and Stop Methods API

> Bus Route and Stop Methods API on Apizie: 12 endpoints (XML - Bus Position, XML - Path Details, XML - Schedule, XML - Routes, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/transport:wmata-bus-route/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `transport:wmata-bus-route`
- Category: Transport
- Status: byok
- Source: https://wmata.com
- Page: https://zieapi.vercel.app/api/transport/wmata-bus-route
- OpenAPI: https://zieapi.vercel.app/api/transport/wmata-bus-route/openapi.json

Bus stop information, route and schedule data, and bus positions.

## Endpoints

### XML - Bus Position
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6e` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | no | Bus route, e.g.: 70, 10A. |
| Lat | string | no | Center point Latitude, required if Longitude and Radius are specified. |
| Lon | string | no | Center point Longitude, required if Latitude and Radius are specified. |
| Radius | string | no | Radius (meters) to include in the search area, required if Latitude and Longitude are specified. |

### XML - Path Details
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6f` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | yes | Bus route variant, e.g.: 70, 10A, 10Av1. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve route and stop information. Defaults to today's date unless specified. |

### XML - Schedule
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d71` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | yes | Bus route variant, e.g.: 70, 10A, 10Av1. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified. |
| IncludingVariations | boolean | no | Whether or not to include variations. For example, if B30 is specified, include all variations such as B30v1, B30v2, etc. |

### XML - Routes
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d70` (byok)

### XML - Schedule at Stop
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d72` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StopID | string | yes | 7-digit regional stop ID. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified. |

### XML - Stop Search
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d73` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| Lat | string | no | Center point Latitude, required if Longitude and Radius are specified. |
| Lon | string | no | Center point Longitude, required if Latitude and Radius are specified. |
| Radius | string | no | Radius (feet) to include in the search area, required if Latitude and Longitude are specified. |

### JSON - Bus Position
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d68` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | no | Base bus route, e.g.: 70, 10A. |
| Lat | number | no | Center point Latitude, required if Longitude and Radius are specified. |
| Lon | number | no | Center point Longitude, required if Latitude and Radius are specified. |
| Radius | number | no | Radius (meters) to include in the search area, required if Latitude and Longitude are specified. |

### JSON - Path Details
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d69` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | yes | Bus route variant, e.g.: 70, 10A, 10Av1. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve route and stop information. Defaults to today's date unless specified. |

### JSON - Schedule
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6b` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RouteID | string | yes | Bus route variant, e.g.: 70, 10A, 10Av1, etc. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified. |
| IncludingVariations | boolean | no | Whether or not to include variations if a base route is specified in RouteID. For example, if B30 is specified and IncludingVariations is… |

### JSON - Routes
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6a` (byok)

### JSON - Schedule at Stop
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6c` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StopID | string | yes | 7-digit regional stop ID. |
| Date | string | no | Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified. |

### JSON - Stop Search
`GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6d` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| Lat | number | no | Center point Latitude, required if Longitude and Radius are specified. |
| Lon | number | no | Center point Longitude, required if Latitude and Radius are specified. |
| Radius | number | no | Radius (meters) to include in the search area, required if Latitude and Longitude are specified. |

## Example
```
curl "https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6e" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Bus Route and Stop Methods API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/transport:wmata-bus-route/5476362a281d830c946a3d6e with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Bus Route and Stop Methods API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Bus Route and Stop Methods itself also needs your own key from wmata.com.

### Can AI agents use the Bus Route and Stop Methods API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key transport:wmata-bus-route.

### What is the status of the Bus Route and Stop Methods API?
Needs your own provider key (bring your own key)
