Amtrak Station Details API
Look up Amtrak stations by code via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as code, output, raw, and retrieve structured data including source station code, published station name, source active-station flag, source metadata effective date, and source baggage-storage flag for station directory, and facility display.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Amtrak Station Details API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
Amtrak Station Details API
Set code to an Amtrak station reference such as NYP. Source facility and accessibility flags can coexist with descriptive conditions; preserve their wording and any fees rather than interpreting availability as a reservation.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required: code. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks. |
| Selected implementation | apish · Amtrak station details API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Station directory: Keep source station identity and effective context.
- Facility display: Preserve service flags and descriptive conditions together.
Returned Data
| Field | Meaning |
|---|---|
code |
Source station code |
name |
Published station name |
active |
Source active-station flag |
effective_date |
Source metadata effective date |
baggage.baggageStorageAvailable |
Source baggage-storage flag |
accessibility.platformAccessible |
Source platform-accessibility flag |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/amtrak/v1/station \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode code=NYP \
--data-urlencode output=json \
--data-urlencode raw=0
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published Amtrak Station Details API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Amtrak station details API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/amtrak/v1/station- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
code | URL query parametersquery | string | Yes | Station code, e.g. NYP. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
accessibilityobjectelevatorAvailablebooleanhightPlatformbooleanotherServicesstringparkingOvernightAccessiblestringparkingSamedayAccessiblestringpayTelephoneAccesiblebooleanplatformAccessiblebooleanpreferredEntrancestringrestroomAccessiblebooleantddTelephoneobjectphoneNumberstring
ticketCounterAccessiblebooleanwaitingRoomAccessiblebooleanwaterFountainAccessiblebooleanwheelChairAvailablebooleanwheelChairLiftAvailableboolean
activebooleanaddressobjectaddressLinestring[]cityNamestringcountryobjectnamestring
postalCodestringstateProvobjectstateCodestring
baggageobjectassistAvailablebooleanbaggageCheckLocationstringbaggageClaimLocationstringbaggageRoomTelephoneobjectphoneNumberstring
baggageStorageAvailablebooleanbikeBoxesAvailablebooleanlockersAvailablebooleanluggageCartsAvailablebooleanparcelCheckAmtstringparcelCheckAvailablebooleanpassengerBagAssistProviderstringshippingBoxesAvailablebooleanskiBoxesAvailableboolean
cachedbooleancodestringcontactsobject[]supervisorsobject[]personNameobjectsurnamestring
telephoneobject[]phoneNumberstring
ticketOfficeobjectpersonNameobjectsurnamestring
telephoneobject[]phoneNumberstring
credits_usedintegerdirectionsobject[]directionstringfromstring
effective_datestringfacilitiesobjectamtrakConnectWifibooleanatmAvailablebooleanindoorTelephonesintegermensRestroomsintegerotherWifibooleanvendingMachineIndbooleanwomensRestroomsinteger
fetched_atstringhoursobjectbaggageHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
expressHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
loungeHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
mailHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
meetAndAssistHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
nonAmtrakTicketHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
quikTrakHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
stationHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
ticketHoursobject[]dayOfWeekstringtimeSlotsobject[]endstringstartstring
loungesobject[]capacityintegereligibilitystringlocationInfostringnamestringprinterAddressstringquikTrakAvailablebooleantelephoneobjectphoneNumberstring
ticketPrinterAvailableboolean
namestringparkingobject[]locationInfostringoverNightParkingstringratestring[]sameDayParkingstringtelephoneobjectphoneNumberstring
taxisobject[]locationInfostringnamestringtelephoneobjectphoneNumberstring
thruway_servicesobject[]boardingLocationstringoperatingCompanystringtelephoneobjectphoneNumberstring
vehicleInfostring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 6
Review these request fields before running. Keep the published provider and request method unchanged.
code- Station code, e.g. NYP.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/amtrak/v1/station?code=NYP&output=json&raw=0' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "accessibility": { "elevatorAvailable": true, "hightPlatform": true, "otherServices": "Red Cap, 24/7 at Penn. Moynihan 5a-11p at curb, 31st & 33rd.", "parkingOvernightAccessible": "Yes, with Fee", "parkingSamedayAccessible": "Yes, with Fee", "payTelephoneAccesible": true, "platformAccessible": true, "preferredEntrance": "Taxis 31st St. Rideshare 33rd St.(Both btwn 8th & 9th Ave)", "restroomAccessible": true, "tddTelephone": { "phoneNumber": "800-523-6590" }, "ticketCounterAccessible": true, "waitingRoomAccessible": true, "waterFountainAccessible": true, "wheelChairAvailable": true, "wheelChairLiftAvailable": false }, "active": true, "address": { "addressLine": [ "351 West 31st Street", "", "Moynihan Train Hall" ], "cityName": "New York", "country": { "name": "United States" }, "postalCode": "10001", "stateProv": { "stateCode": "NY" } }, "baggage": { "assistAvailable": true, "baggageCheckLocation": "South side of station next to tracks 5 and 6", "baggageClaimLocation": "South side of station next to tracks 5 and 6", "baggageRoomTelephone": { "phoneNumber": "212-630-7287" }, "baggageStorageAvailable": true, "bikeBoxesAvailable": true, "lockersAvailable": false, "luggageCartsAvailable": false, "parcelCheckAmt": "with Fee", "parcelCheckAvailable": true, "passengerBagAssistProvider": "212-630-7914/212-630-6221 (24/7 at Penn. 5a-11p at Moynihan)", "shippingBoxesAvailable": true, "skiBoxesAvailable": false }, "cached": false, "code": "NYP", "contacts": [ { "supervisors": [ { "personName": { "surname": "J. Jones, M. Wonderlin, S Thorpe, C Simmons and C Rodriguez" }, "telephone": [ { "phoneNumber": "212-630-6548" }, { "phoneNumber": "521-6548" } ] }, { "personName": { "surname": "Randolph Starver" }, "telephone": [ { "phoneNumber": "212-630-7006" }, { "phoneNumber": "521-7006" } ] } ], "ticketOffice": { "personName": { "surname": "D Fleming, D. Coles, V Valente, Jade Pimentel" }, "telephone": [ { "phoneNumber": "212-630-7135" }, { "phoneNumber": "521-7189" } ] } } ], "credits_used": 1, "directions": [ { "direction": "Penn Station is underneath Madison Square Garden, bounded \r\nby 7 and 8 Avs and West 31 and West 33 Sts. Main \r\nentrances are at 7 Av and West 32 St, 8 Av and West\r\n31 St, and 8 Av and West 33 St. Direct entrances from the \r\n7 Av and 8 Av subways (34 St/Penn Station stop).", "from": "General Location" }, { "direction": "7 Av south to West 32 St or 8 Av north to West 33 St. \r\nSubway: 8 Av-A, C, E to 34 St/Penn Station. 7 Av-1, 2, 3 \r\nto 34 St/Penn Station. 6 Av-B, D, F, M to 34 St/Herald Sq; \r\nBroadway-N, Q, R to 34 St/Herald Sq; walk one block west \r\nto 7 Av. Buses: M4/M10/M16/M20/M34/Q32.", "from": "Manhattan" }, { "direction": "Lincoln Tunnel. Trains: New Jersey Transit to Penn\r\nStation. PATH to 33 St (6 Av) then walk one block west to \r\n7 Av.", "from": "New Jersey" }, { "direction": "Any tunnel or bridge to Manhattan. Trains: Long Island\r\nRail Road to Penn Station. Subway: see Manhattan. Staten \r\nIsland: ferry to Manhattan, then 1 train from South Ferry \r\nto 34 St-Penn Station.", "from": "Brooklyn/Queens/Staten Island/Long Island" } ], "effective_date": "2026-11-19", "facilities": { "amtrakConnectWifi": true, "atmAvailable": true, "indoorTelephones": 10, "mensRestrooms": 1, "otherWifi": false, "vendingMachineInd": true, "womensRestrooms": 1 }, "fetched_at": "2026-11-19T12:24:34.720Z", "hours": { "baggageHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] } ], "expressHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "00:00:00", "start": "00:00:00" } ] } ], "loungeHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "21:00:00", "start": "07:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "21:00:00", "start": "07:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] } ], "mailHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "17:15:00", "start": "06:00:00" } ] } ], "meetAndAssistHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] } ], "nonAmtrakTicketHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "15:00:00", "start": "06:30:00" } ] } ], "quikTrakHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "23:59:00", "start": "00:00:00" } ] } ], "stationHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "23:59:00", "start": "05:00:00" } ] } ], "ticketHours": [ { "dayOfWeek": "Fri", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Mon", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sat", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Sun", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Thu", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Tue", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] }, { "dayOfWeek": "Wed", "timeSlots": [ { "end": "22:00:00", "start": "05:00:00" } ] } ] }, "lounges": [ { "capacity": 72, "eligibility": "Acela First class or sleeping car passengers with \r\nsame day ticket (arrival or departure). Amtrak Guest \r\nRewards Select Plus or Select Executive card. Amtrak \r\ncomplimentary single-day pass. Free wireless internet.", "locationInfo": "Near 8 Av/West 31 St exit staircase.", "name": "Metropolitan Lounge", "printerAddress": "446 ", "quikTrakAvailable": false, "telephone": { "phoneNumber": "212-630-7514" }, "ticketPrinterAvailable": true } ], "name": "NY Moynihan Train Hall at Penn Station, New York", "parking": [ { "locationInfo": "271 West 33 St, across from station and Madison Sq Garden", "overNightParking": "Yes, with Fee", "rate": [ "Penn Parking - very expensive but convenient, valet parking" ], "sameDayParking": "Yes, with Fee", "telephone": { "phoneNumber": "212-643-7409" } } ], "taxis": [ { "locationInfo": "Elevator/escalators located near this taxi stand", "name": "Taxi stand located on West 31 St btwn 7 Av & 8 Av " }, { "locationInfo": "direct their taxi to drop them at the above location. ", "name": "Passengers needing elevator/wheelchair assistance should " }, { "locationInfo": "Special Services", "name": "See miscellaneous page for more information on " }, { "name": "Sunny's Limousine-Car service", "telephone": { "phoneNumber": "800-949-0949" } }, { "name": "Dave's Limousine-Car service", "telephone": { "phoneNumber": "800-922-0343" } } ], "thruway_services": [ { "boardingLocation": "Various Hotel locations in NYC\r\nPassengers must arrive at all area airport two \r\nhrs in advance of their flight. Allow 60 min. travel time \r\nfrom mid-town Manhattan to all area airports. Plan \r\ntransportation accordingly. ", "operatingCompany": "Airport service operated by Go Air Link", "telephone": { "phoneNumber": "718-875-8200" }, "vehicleInfo": "buses\r\n" }, { "boardingLocation": "Corner of 7th Ave. and 33rd Street. Also has pick ups at \r\nPort Authority and Grand Central Station. ", "operatingCompany": "NYC AIRPORTER", "telephone": { "phoneNumber": "718-777-5111" }, "vehicleInfo": "Bus/van" } ] }