# Rail Station Information API

> Rail Station Information API on Apizie: 16 endpoints (XML - Lines, XML - Path Between Stations, XML - Station to Station Information, XML - Station Entrances, …) 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://apizie.tech/v1/transport:wmata-rail-station/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `transport:wmata-rail-station`
- Category: Transport
- Status: byok
- Source: https://wmata.com
- Page: https://apizie.tech/api/transport/wmata-rail-station
- OpenAPI: https://apizie.tech/api/transport/wmata-rail-station/openapi.json

Rail line and station information, including locations, fares, times, and parking.

## Endpoints

### XML - Lines
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3314` (byok)

### XML - Path Between Stations
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3316` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| FromStationCode | string | yes | Station code for the origin station. Use the Station List method to return a list of all station codes. |
| ToStationCode | string | yes | Station code for the origin station. Use the Station List method to return a list of all station codes. |

### XML - Station to Station Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe331b` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| FromStationCode | string | no | Station code for the origin station. Use the Station List method to return a list of all station codes. |
| ToStationCode | string | no | Station code for the destination station. Use the Station List method to return a list of all station codes. |

### XML - Station Entrances
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3317` (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. |

### XML - Station Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3318` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | yes | Station code. Use the Station List method to return a list of all station codes. |

### XML - Parking Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3315` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | no | Station code. Use the Station List method to return a list of all station codes. |

### XML - Station Timings
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe331a` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | no | Station code. Use the Station List method to return a list of all station codes. |

### XML - Station List
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3319` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| LineCode | string | no | Two-letter line code abbreviation: RD - Red YL - Yellow GR - Green BL - Blue OR - Orange SV - Silver |

### JSON - Lines
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe330c` (byok)

### JSON - Path Between Stations
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe330e` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| FromStationCode | string | yes | Station code for the origin station. Use the Station List method to return a list of all station codes. |
| ToStationCode | string | yes | Station code for the destination station. Use the Station List method to return a list of all station codes. |

### JSON - Station to Station Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3313` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| FromStationCode | string | no | Station code for the origin station. Use the Station List method to return a list of all station codes. |
| ToStationCode | string | no | Station code for the destination station. Use the Station List method to return a list of all station codes. |

### JSON - Station Entrances
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe330f` (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. |

### JSON - Station Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3310` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | yes | Station code. Use the Station List method to return a list of all station codes. |

### JSON - Parking Information
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe330d` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | no | Station code. Use the Station List method to return a list of all station codes. |

### JSON - Station Timings
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3312` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCode | string | no | Station code. Use the Station List method to return a list of all station codes. |

### JSON - Station List
`GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3311` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| LineCode | string | no | Two-letter line code abbreviation: RD - Red YL - Yellow GR - Green BL - Blue OR - Orange SV - Silver |

## Example
```
curl "https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3314" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Rail Station Information API?
Create a free Apizie key, then send GET https://apizie.tech/v1/transport:wmata-rail-station/5476364f031f5909e4fe3314 with the header x-api-key. Every endpoint returns { project, data, timestamp }.

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

### Can AI agents use the Rail Station Information API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key transport:wmata-rail-station.

### What is the status of the Rail Station Information API?
Needs your own provider key (bring your own key)
