# Real-Time Rail Predictions API

> Real-Time Rail Predictions API on Apizie: 2 endpoints (XML - Next Trains, JSON - Next Trains) 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-realtime/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

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

Real-time rail prediction methods.

## Endpoints

### XML - Next Trains
`GET https://apizie.tech/v1/transport:wmata-rail-realtime/547636a6f918230da8553640` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCodes | string | yes | Comma-separated list of station codes. For all predictions, use "All". |

### JSON - Next Trains
`GET https://apizie.tech/v1/transport:wmata-rail-realtime/547636a6f918230da855363f` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| StationCodes | string | yes | Comma-separated list of station codes. For all predictions, use "All". |

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

## FAQ

### How do I call the Real-Time Rail Predictions API?
Create a free Apizie key, then send GET https://apizie.tech/v1/transport:wmata-rail-realtime/547636a6f918230da8553640 with the header x-api-key. Every endpoint returns { project, data, timestamp }.

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

### Can AI agents use the Real-Time Rail Predictions 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-realtime.

### What is the status of the Real-Time Rail Predictions API?
Needs your own provider key (bring your own key)
