# Amtrak live train map API

Get Amtrak train-map records by train number or route text via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, train_number, and retrieve structured data including source train number, source latitude, source longitude, train observation update time, and source next-station reference for train map, and stop context.

Documentation: https://openany.si/amtrak/amtrak-live-train-map-api/e46ed0b7-7289-4cc7-8f47-42de72181eb0/
API ID: e46ed0b7-7289-4cc7-8f47-42de72181eb0
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/amtrak/v1/live-trains
Page update time: 2026-12-03T02:46:40.358Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:46:39.089Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Amtrak Live Train Map API

Optionally select train\_number or route. Each train retains its own last\_update, latitude, longitude and speed\_mph; map observations and scheduled, estimated or actual stop times represent different source data.

## What You Can Build

- **Train map**: Keep source observation time with each location.
- **Stop context**: Display scheduled and actual values under separate labels.

## Returned Data

| Field | Meaning |
| --- | --- |
| `trains[].train_number` | Source train number |
| `trains[].lat` | Source latitude |
| `trains[].lng` | Source longitude |
| `trains[].speed_mph` | Source speed in miles per hour |
| `trains[].last_update` | Train observation update time |
| `trains[].next_station` | Source next-station reference |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Amtrak live train map API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "train_number": {
          "type": "string",
          "description": "Keep one train number."
        },
        "route": {
          "type": "string",
          "description": "Keep routes whose name contains this text, e.g. `acela`."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "routes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "trains": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "destination": {
            "type": "string"
          },
          "heading": {
            "type": "string"
          },
          "last_update": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "lng": {
            "type": "number"
          },
          "next_station": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "origin_departure": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "speed_mph": {
            "type": "number"
          },
          "state": {
            "type": "string"
          },
          "status_message": {
            "type": "null"
          },
          "stops": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "actual_arrival": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "actual_departure": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "arrival_note": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "bus": {
                  "type": "boolean"
                },
                "departure_note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "estimated_arrival": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "estimated_departure": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "scheduled_arrival": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "scheduled_departure": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "station": {
                  "type": "string"
                },
                "time_zone": {
                  "type": "string"
                }
              }
            }
          },
          "train_number": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/amtrak/v1/live-trains?output=json&raw=0&train_number=2' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:34:24.394Z",
  "routes": [
    "Acela",
    "Adirondack",
    "Amtrak Cascades",
    "Auto Train",
    "California Zephyr",
    "Capitol Corridor",
    "Capitol Limited",
    "Cardinal",
    "Hoosier State",
    "Carolinian / Piedmont",
    "City of New Orleans",
    "Coast Starlight",
    "Crescent",
    "Downeaster",
    "Empire Builder",
    "Empire Service",
    "Ethan Allen Express",
    "Heartland Flyer",
    "Hiawatha",
    "Illinois Service",
    "Keystone",
    "Lake Shore Limited",
    "Maple Leaf",
    "Michigan Services",
    "Missouri River Runner",
    "Northeast Regional",
    "Pacific Surfliner",
    "Pennsylvanian",
    "Gold Runner",
    "Silver Service / Palmetto",
    "Southwest Chief",
    "Sunset Limited",
    "Texas Eagle",
    "Vermonter",
    "Berkshire flyer",
    "Lincoln Service Missouri River Runner",
    "Floridian",
    "Amtrak Mardi Gras Service"
  ],
  "trains": [
    {
      "destination": "NOL",
      "heading": "E",
      "last_update": "2026-11-19T04:31:10",
      "lat": 33.925137666939314,
      "lng": -116.91920903364117,
      "next_station": "PSN",
      "origin": "LAX",
      "origin_departure": "2026-11-18T22:00:00",
      "route": "Sunset Limited",
      "speed_mph": 57.1,
      "state": "Active",
      "status_message": null,
      "stops": [
        {
          "actual_arrival": null,
          "actual_departure": "2026-11-18T22:00:00",
          "arrival_note": null,
          "bus": false,
          "departure_note": "ON TIME",
          "estimated_arrival": null,
          "estimated_departure": null,
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-18T22:00:00",
          "station": "LAX",
          "time_zone": "America/Los_Angeles"
        },
        {
          "actual_arrival": "2026-11-18T22:43:00",
          "actual_departure": "2026-11-18T22:46:00",
          "arrival_note": "5 MI LATE",
          "bus": false,
          "departure_note": "5 MI LATE",
          "estimated_arrival": null,
          "estimated_departure": null,
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-18T22:41:00",
          "station": "POS",
          "time_zone": "America/Los_Angeles"
        },
        {
          "actual_arrival": "2026-11-18T22:53:00",
          "actual_departure": "2026-11-18T23:05:00",
          "arrival_note": "11 MI LATE",
          "bus": false,
          "departure_note": "11 MI LATE",
          "estimated_arrival": null,
          "estimated_departure": null,
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-18T22:54:00",
          "station": "ONA",
          "time_zone": "America/Los_Angeles"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "04 HR 19 MI LATE",
          "bus": false,
          "departure_note": "04 HR 22 MI LATE",
          "estimated_arrival": "2026-11-19T04:55:00",
          "estimated_departure": "2026-11-19T04:58:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T00:36:00",
          "station": "PSN",
          "time_zone": "America/Los_Angeles"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "04 HR 08 MI LATE",
          "bus": false,
          "departure_note": "04 HR 11 MI LATE",
          "estimated_arrival": "2026-11-19T07:55:00",
          "estimated_departure": "2026-11-19T07:58:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T03:47:00",
          "station": "YUM",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "03 HR 49 MI LATE",
          "bus": false,
          "departure_note": "03 HR 36 MI LATE",
          "estimated_arrival": "2026-11-19T10:24:00",
          "estimated_departure": "2026-11-19T10:31:00",
          "scheduled_arrival": "2026-11-19T06:35:00",
          "scheduled_departure": "2026-11-19T06:55:00",
          "station": "MRC",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "03 HR 07 MI LATE",
          "bus": false,
          "departure_note": "03 HR 07 MI LATE",
          "estimated_arrival": "2026-11-19T11:45:00",
          "estimated_departure": "2026-11-19T12:00:00",
          "scheduled_arrival": "2026-11-19T08:38:00",
          "scheduled_departure": "2026-11-19T08:53:00",
          "station": "TUS",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "03 HR LATE",
          "bus": false,
          "departure_note": "03 HR 01 MI LATE",
          "estimated_arrival": "2026-11-19T12:53:00",
          "estimated_departure": "2026-11-19T12:54:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T09:53:00",
          "station": "BEN",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "03 HR LATE",
          "bus": false,
          "departure_note": "03 HR 01 MI LATE",
          "estimated_arrival": "2026-11-19T14:53:00",
          "estimated_departure": "2026-11-19T14:54:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T11:53:00",
          "station": "LDB",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "03 HR LATE",
          "bus": false,
          "departure_note": "03 HR 01 MI LATE",
          "estimated_arrival": "2026-11-19T15:48:00",
          "estimated_departure": "2026-11-19T15:49:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T12:48:00",
          "station": "DEM",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "02 HR 33 MI LATE",
          "bus": false,
          "departure_note": "02 HR 03 MI LATE",
          "estimated_arrival": "2026-11-19T17:33:00",
          "estimated_departure": "2026-11-19T17:48:00",
          "scheduled_arrival": "2026-11-19T15:00:00",
          "scheduled_departure": "2026-11-19T15:45:00",
          "station": "ELP",
          "time_zone": "America/Denver"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "01 HR 31 MI LATE",
          "bus": false,
          "departure_note": "01 HR 28 MI LATE",
          "estimated_arrival": "2026-11-19T22:16:00",
          "estimated_departure": "2026-11-19T22:23:00",
          "scheduled_arrival": "2026-11-19T20:45:00",
          "scheduled_departure": "2026-11-19T20:55:00",
          "station": "ALP",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "01 HR 15 MI LATE",
          "bus": false,
          "departure_note": "01 HR 16 MI LATE",
          "estimated_arrival": "2026-11-20T00:01:00",
          "estimated_departure": "2026-11-20T00:02:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-19T22:46:00",
          "station": "SND",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "01 HR 14 MI LATE",
          "bus": false,
          "departure_note": "01 HR 15 MI LATE",
          "estimated_arrival": "2026-11-20T02:26:00",
          "estimated_departure": "2026-11-20T02:27:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-20T01:12:00",
          "station": "DRT",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "01 HR 15 MI LATE",
          "bus": false,
          "departure_note": "50 MI LATE",
          "estimated_arrival": "2026-11-20T06:15:00",
          "estimated_departure": "2026-11-20T07:15:00",
          "scheduled_arrival": "2026-11-20T05:00:00",
          "scheduled_departure": "2026-11-20T06:25:00",
          "station": "SAS",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "ON TIME",
          "estimated_arrival": "2026-11-20T11:10:00",
          "estimated_departure": "2026-11-20T12:10:00",
          "scheduled_arrival": "2026-11-20T11:10:00",
          "scheduled_departure": "2026-11-20T12:10:00",
          "station": "HOS",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "ON TIME",
          "estimated_arrival": "2026-11-20T13:53:00",
          "estimated_departure": "2026-11-20T14:05:00",
          "scheduled_arrival": "2026-11-20T13:53:00",
          "scheduled_departure": "2026-11-20T14:05:00",
          "station": "BMT",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "01 MI LATE",
          "estimated_arrival": "2026-11-20T15:29:00",
          "estimated_departure": "2026-11-20T15:30:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-20T15:29:00",
          "station": "LCH",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "ON TIME",
          "estimated_arrival": "2026-11-20T17:12:00",
          "estimated_departure": "2026-11-20T17:15:00",
          "scheduled_arrival": "2026-11-20T17:12:00",
          "scheduled_departure": "2026-11-20T17:15:00",
          "station": "LFT",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "01 MI LATE",
          "estimated_arrival": "2026-11-20T17:41:00",
          "estimated_departure": "2026-11-20T17:42:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-20T17:41:00",
          "station": "NIB",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "ON TIME",
          "bus": false,
          "departure_note": "01 MI LATE",
          "estimated_arrival": "2026-11-20T19:03:00",
          "estimated_departure": "2026-11-20T19:04:00",
          "scheduled_arrival": null,
          "scheduled_departure": "2026-11-20T19:03:00",
          "station": "SCH",
          "time_zone": "America/Chicago"
        },
        {
          "actual_arrival": null,
          "actual_departure": null,
          "arrival_note": "01 HR 05 MI EARLY",
          "bus": false,
          "departure_note": null,
          "estimated_arrival": "2026-11-20T20:35:00",
          "estimated_departure": null,
          "scheduled_arrival": "2026-11-20T21:40:00",
          "scheduled_departure": null,
          "station": "NOL",
          "time_zone": "America/Chicago"
        }
      ],
      "train_number": "2"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How can I narrow the train map?
Use train_number or a route-name substring such as acela.

### Is speed_mph measured in kilometres per hour?
No. Keep the stated miles-per-hour unit unless explicitly converting it.

### Does fetched_at equal every train's observation time?
No. Preserve last_update per train separately from the response fetch timestamp.

### Are estimated stop times confirmed arrivals?
No. Retain scheduled, estimated and actual fields separately.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/amtrak/amtrak-live-train-map-api/e46ed0b7-7289-4cc7-8f47-42de72181eb0/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
