# Amtrak timetable between two stations API

Get Amtrak timetables between station codes for a travel day via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as days_ahead, from, output, and retrieve structured data including selected travel date, source connection count, leg train number, origin timezone, and destination timezone for timetable display, and station links.

Documentation: https://openany.si/market/apis/amtrak/amtrak-timetable-between-two-stations-api/?offering=fcf87cbf-ab0f-46ba-96ea-e4577f026841
API ID: fcf87cbf-ab0f-46ba-96ea-e4577f026841
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/amtrak/v1/schedules
Page update time: 2026-12-03T02:46:40.368Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:39.180Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Amtrak timetable between two stations 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": {
        "from": {
          "type": "string",
          "description": "Departure station code, e.g. NYP."
        },
        "to": {
          "type": "string",
          "description": "Arrival station code, e.g. WAS."
        },
        "date": {
          "type": "string",
          "description": "Travel day, YYYY-MM-DD. Give this or `days_ahead`."
        },
        "days_ahead": {
          "type": "integer",
          "description": "Travel day as days from today (0-365), when `date` is not given."
        },
        "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."
        }
      },
      "required": [
        "from",
        "to"
      ]
    },
    "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"
    },
    "date": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "trips": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "arrival": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "changes": {
            "type": "integer"
          },
          "departure": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "integer"
          },
          "legs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "arrival": {
                  "type": "string"
                },
                "bike": {
                  "type": "boolean"
                },
                "classes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "days_of_operation": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "departure": {
                  "type": "string"
                },
                "destination": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "facility": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "time_zone": {
                      "type": "string"
                    }
                  }
                },
                "distance_miles": {
                  "type": "integer"
                },
                "duration_minutes": {
                  "type": "integer"
                },
                "operator": {
                  "type": "string"
                },
                "origin": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "facility": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "time_zone": {
                      "type": "string"
                    }
                  }
                },
                "overnight": {
                  "type": "boolean"
                },
                "pets": {
                  "type": "boolean"
                },
                "restricted": {
                  "type": "boolean"
                },
                "route": {
                  "type": "string"
                },
                "route_code": {
                  "type": "string"
                },
                "self_transfer": {
                  "type": "boolean"
                },
                "stops": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "alighting": {
                        "type": "boolean"
                      },
                      "arrival": {
                        "type": "string"
                      },
                      "boarding": {
                        "type": "boolean"
                      },
                      "departure": {
                        "type": "string"
                      },
                      "miles_to_next": {
                        "type": "integer"
                      },
                      "number": {
                        "type": "integer"
                      },
                      "station": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "facility": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "time_zone": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "train_number": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "train_numbers": {
            "type": "array",
            "items": {
              "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/schedules?days_ahead=14&from=NYP&output=json&raw=0&to=WAS' \
  -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": 45,
  "credits_used": 1,
  "date": "2026-12-03",
  "fetched_at": "2026-11-19T12:24:32.399Z",
  "from": "NYP",
  "to": "WAS",
  "trips": [
    {
      "arrival": "2026-12-03T08:32:00",
      "changes": 0,
      "departure": "2026-12-03T04:50:00",
      "id": 1,
      "legs": [
        {
          "amenities": [
            "Cafe",
            "Quiet Car",
            "Free WiFi",
            "Seat Selection"
          ],
          "arrival": "2026-12-03T08:32:00",
          "bike": true,
          "classes": [
            "Business Class Seat",
            "Coach Seat"
          ],
          "days_of_operation": [
            "MON",
            "TUE",
            "WED",
            "THU",
            "FRI"
          ],
          "departure": "2026-12-03T04:50:00",
          "destination": {
            "code": "WAS",
            "facility": "Union Station",
            "name": "Washington, DC",
            "time_zone": "America/New_York"
          },
          "distance_miles": 226,
          "duration_minutes": 222,
          "operator": "Amtrak",
          "origin": {
            "code": "NYP",
            "facility": "Moynihan Train Hall at Penn Sta.",
            "name": "New York, NY",
            "time_zone": "America/New_York"
          },
          "overnight": false,
          "pets": true,
          "restricted": false,
          "route": "Northeast Regional",
          "route_code": "NERG",
          "self_transfer": false,
          "stops": [
            {
              "alighting": true,
              "arrival": "04:50:00",
              "boarding": true,
              "departure": "04:50:00",
              "miles_to_next": 10,
              "number": 1,
              "station": {
                "code": "NYP",
                "facility": "Moynihan Train Hall at Penn Sta.",
                "name": "New York, NY",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "05:05:00",
              "boarding": true,
              "departure": "05:06:00",
              "miles_to_next": 14,
              "number": 2,
              "station": {
                "code": "NWK",
                "facility": "Penn Station",
                "name": "Newark, NJ",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "05:18:00",
              "boarding": true,
              "departure": "05:20:00",
              "miles_to_next": 8,
              "number": 3,
              "station": {
                "code": "MET",
                "facility": null,
                "name": "Metropark, NJ",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "05:29:00",
              "boarding": true,
              "departure": "05:30:00",
              "miles_to_next": 16,
              "number": 4,
              "station": {
                "code": "NBK",
                "facility": null,
                "name": "New Brunswick, NJ",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "05:42:00",
              "boarding": true,
              "departure": "05:43:00",
              "miles_to_next": 10,
              "number": 5,
              "station": {
                "code": "PJC",
                "facility": null,
                "name": "Princeton Junction, NJ",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "05:51:00",
              "boarding": true,
              "departure": "05:56:00",
              "miles_to_next": 33,
              "number": 6,
              "station": {
                "code": "TRE",
                "facility": null,
                "name": "Trenton, NJ",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "06:24:00",
              "boarding": true,
              "departure": "06:27:00",
              "miles_to_next": 25,
              "number": 7,
              "station": {
                "code": "PHL",
                "facility": "William H Gray III 30th St. Sta.",
                "name": "Philadelphia, PA",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "06:47:00",
              "boarding": true,
              "departure": "06:49:00",
              "miles_to_next": 69,
              "number": 8,
              "station": {
                "code": "WIL",
                "facility": null,
                "name": "Wilmington, DE",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "07:46:00",
              "boarding": true,
              "departure": "07:48:00",
              "miles_to_next": 11,
              "number": 9,
              "station": {
                "code": "BAL",
                "facility": "Penn Station",
                "name": "Baltimore, MD",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "07:59:00",
              "boarding": true,
              "departure": "08:01:00",
              "miles_to_next": 21,
              "number": 10,
              "station": {
                "code": "BWI",
                "facility": null,
                "name": "BWI Marshall Airport, MD",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "08:16:00",
              "boarding": true,
              "departure": "08:17:00",
              "miles_to_next": 9,
              "number": 11,
              "station": {
                "code": "NCR",
                "facility": null,
                "name": "New Carrollton, MD",
                "time_zone": "America/New_York"
              }
            },
            {
              "alighting": true,
              "arrival": "08:32:00",
              "boarding": true,
              "departure": "08:32:00",
              "miles_to_next": 0,
              "number": 12,
              "station": {
                "code": "WAS",
                "facility": "Union Station",
                "name": "Washington, DC",
                "time_zone": "America/New_York"
              }
            }
          ],
          "train_number": "111",
          "type": "Intercity Train"
        }
      ],
      "train_numbers": [
        "111"
      ]
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 2,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 3,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 4,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 5,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 6,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 7,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 8,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 9,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 10,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 11,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 12,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 13,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 14,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 15,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 16,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 17,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 18,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 19,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 20,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 21,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 22,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 23,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 24,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 25,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 26,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 27,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 28,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 29,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 30,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 31,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 32,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 33,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 34,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 35,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 36,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 37,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 38,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 39,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 40,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 41,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 42,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 43,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 44,
      "legs": [],
      "train_numbers": []
    },
    {
      "arrival": null,
      "changes": 0,
      "departure": null,
      "id": 45,
      "legs": [],
      "train_numbers": []
    }
  ]
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/amtrak/amtrak-timetable-between-two-stations-api/?offering=fcf87cbf-ab0f-46ba-96ea-e4577f026841

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