Get station
curl --request POST \
--url https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "NYP"
}'import requests
url = "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station"
payload = { "code": "NYP" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'NYP'})
};
fetch('https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'NYP'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station"
payload := strings.NewReader("{\n \"code\": \"NYP\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"NYP\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"NYP\"\n}"
response = http.request(request)
puts response.read_body{
"accessibility": [
{
"accessible": null,
"feature": "Payphones",
"note": null
},
{
"accessible": null,
"feature": "Accessible platform",
"note": "Accessible platform is a barrier-free path from the drop-off area outside the station to the train platform."
},
{
"accessible": null,
"feature": "Accessible restrooms",
"note": null
},
{
"accessible": null,
"feature": "Accessible ticket office",
"note": null
},
{
"accessible": null,
"feature": "Accessible waiting room",
"note": null
},
{
"accessible": null,
"feature": "Accessible water fountain",
"note": null
},
{
"accessible": null,
"feature": "Same-day, accessible parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": null,
"feature": "Overnight, accessible parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": null,
"feature": "High platform",
"note": "A high platform is a platform at the level of the vestibule of the train, with the exception of two-level Superliner trains."
},
{
"accessible": null,
"feature": "Wheelchair available",
"note": "For passengers who cannot walk far or at all, we offer a wheelchair to help move around within the station. At some stations this may be a battery-powered people mover."
},
{
"accessible": null,
"feature": "No wheelchair lift",
"note": "Wheelchair lift is a platform-mounted lift for loading passengers from low platforms onto trains that do not have onboard ramps."
}
],
"accessible": true,
"address": {
"city": "New York",
"line1": "351 West 31st Street",
"line2": null,
"postal_code": "10001",
"state": "NY"
},
"aliases": [
"nyc",
"Penn Station",
"Moynihan Train Hall",
"new york city",
"newyork"
],
"baggage": [
{
"accessible": null,
"feature": "Amtrak Express shipping not available",
"note": null
},
{
"accessible": null,
"feature": "Checked baggage service available",
"note": null
},
{
"accessible": null,
"feature": "Checked baggage storage available ()",
"note": null
},
{
"accessible": null,
"feature": "Bike boxes for sale",
"note": "The number of bike boxes available in the station is limited. For assistance, call us at 1-800-USA-RAIL."
},
{
"accessible": null,
"feature": "No baggage carts",
"note": null
},
{
"accessible": null,
"feature": "Ski bags not available",
"note": null
},
{
"accessible": null,
"feature": "Bag storage (with Fee)",
"note": "Baggage storage is an area where passengers may store their bags, equivalent to \"left luggage\" in Europe. A storage fee may apply."
},
{
"accessible": null,
"feature": "Shipping boxes for sale",
"note": null
},
{
"accessible": null,
"feature": "Baggage assistance provided by 212-630-7914/212-630-6221 (24/7 at Penn. 5a-11p at Moynihan)",
"note": "Free passenger assistance, including baggage-handling and courtesy wheelchairs where available, is provided by station staff."
}
],
"city": "New York",
"code": "NYP",
"country": null,
"daily_departures": null,
"facility_name": "Moynihan Train Hall at Penn Station",
"features": [
{
"accessible": null,
"feature": "Staffed station",
"note": null
},
{
"accessible": null,
"feature": "ATM available",
"note": null
},
{
"accessible": true,
"feature": "Elevator",
"note": null
},
{
"accessible": null,
"feature": "Metropolitan Lounge",
"note": null
},
{
"accessible": null,
"feature": "Payphones",
"note": null
},
{
"accessible": null,
"feature": "Amtrak ticketing kiosks available",
"note": null
},
{
"accessible": true,
"feature": "Restrooms",
"note": null
},
{
"accessible": true,
"feature": "Ticket sales office",
"note": null
},
{
"accessible": null,
"feature": "Unaccompanied child travel allowed",
"note": null
},
{
"accessible": null,
"feature": "Vending machines",
"note": null
},
{
"accessible": null,
"feature": "Amtrak WiFi available",
"note": null
},
{
"accessible": null,
"feature": "Arrive at least 45 minutes prior to departure if you're checking baggage or need ticketing/passenger assistance",
"note": "How long before departure to be at the station if you need ticketing, baggage or passenger assistance services."
},
{
"accessible": null,
"feature": "Arrive at least 30 minutes prior to departure if you're not checking baggage or don't need assistance",
"note": "How long before departure to be at the station if you do not need services such as ticketing, baggage or passenger assistance."
}
],
"geo": {
"lat": 40.751046264230254,
"lng": -73.99632844773079
},
"hours": [
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
}
],
"no_data_message": null,
"title": "Station Waiting Room Hours",
"type": "stationhours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
}
],
"no_data_message": null,
"title": "Ticket Office Hours",
"type": "tickethours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "TUESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "THURSDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "FRIDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SATURDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SUNDAY",
"time_slots": [
"24 HOURS"
]
}
],
"no_data_message": null,
"title": "Passenger Assistance",
"type": "meetandassisthours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
}
],
"no_data_message": null,
"title": "Checked Baggage Service",
"type": "baggagehours"
},
{
"days": [],
"no_data_message": "No parking at this location.",
"title": "Parking Hours",
"type": "parkinghours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "TUESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "THURSDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "FRIDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SATURDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SUNDAY",
"time_slots": [
"24 HOURS"
]
}
],
"no_data_message": null,
"title": "Quik-Trak Kiosk Hours",
"type": "quiktrakhours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"7:00 AM - 9:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"7:00 AM - 9:00 PM"
]
}
],
"no_data_message": null,
"title": "Lounge Hours",
"type": "loungehours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
}
],
"no_data_message": null,
"title": "Amtrak Express Service",
"type": "expresshours"
}
],
"name": "New York, NY",
"observed_at_ms": 1790117604574,
"parking": [
{
"accessible": true,
"feature": "Same-day parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": true,
"feature": "Overnight parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
}
],
"quik_trak": true,
"staffed": true,
"state": "NY",
"timezone": "E",
"url": "https://www.amtrak.com/stations/nyp",
"wheelchair": true
}Amtrak
Get station
Station detail once you have a code from list_stations, search_stations, a route’s stops or a train’s stops.
POST
https://api.aisa.one
/
apis
/
v1
/
amtrak-com
/
train-status
/
get-station
Get station
curl --request POST \
--url https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "NYP"
}'import requests
url = "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station"
payload = { "code": "NYP" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'NYP'})
};
fetch('https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'code' => 'NYP'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station"
payload := strings.NewReader("{\n \"code\": \"NYP\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"NYP\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"code\": \"NYP\"\n}"
response = http.request(request)
puts response.read_body{
"accessibility": [
{
"accessible": null,
"feature": "Payphones",
"note": null
},
{
"accessible": null,
"feature": "Accessible platform",
"note": "Accessible platform is a barrier-free path from the drop-off area outside the station to the train platform."
},
{
"accessible": null,
"feature": "Accessible restrooms",
"note": null
},
{
"accessible": null,
"feature": "Accessible ticket office",
"note": null
},
{
"accessible": null,
"feature": "Accessible waiting room",
"note": null
},
{
"accessible": null,
"feature": "Accessible water fountain",
"note": null
},
{
"accessible": null,
"feature": "Same-day, accessible parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": null,
"feature": "Overnight, accessible parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": null,
"feature": "High platform",
"note": "A high platform is a platform at the level of the vestibule of the train, with the exception of two-level Superliner trains."
},
{
"accessible": null,
"feature": "Wheelchair available",
"note": "For passengers who cannot walk far or at all, we offer a wheelchair to help move around within the station. At some stations this may be a battery-powered people mover."
},
{
"accessible": null,
"feature": "No wheelchair lift",
"note": "Wheelchair lift is a platform-mounted lift for loading passengers from low platforms onto trains that do not have onboard ramps."
}
],
"accessible": true,
"address": {
"city": "New York",
"line1": "351 West 31st Street",
"line2": null,
"postal_code": "10001",
"state": "NY"
},
"aliases": [
"nyc",
"Penn Station",
"Moynihan Train Hall",
"new york city",
"newyork"
],
"baggage": [
{
"accessible": null,
"feature": "Amtrak Express shipping not available",
"note": null
},
{
"accessible": null,
"feature": "Checked baggage service available",
"note": null
},
{
"accessible": null,
"feature": "Checked baggage storage available ()",
"note": null
},
{
"accessible": null,
"feature": "Bike boxes for sale",
"note": "The number of bike boxes available in the station is limited. For assistance, call us at 1-800-USA-RAIL."
},
{
"accessible": null,
"feature": "No baggage carts",
"note": null
},
{
"accessible": null,
"feature": "Ski bags not available",
"note": null
},
{
"accessible": null,
"feature": "Bag storage (with Fee)",
"note": "Baggage storage is an area where passengers may store their bags, equivalent to \"left luggage\" in Europe. A storage fee may apply."
},
{
"accessible": null,
"feature": "Shipping boxes for sale",
"note": null
},
{
"accessible": null,
"feature": "Baggage assistance provided by 212-630-7914/212-630-6221 (24/7 at Penn. 5a-11p at Moynihan)",
"note": "Free passenger assistance, including baggage-handling and courtesy wheelchairs where available, is provided by station staff."
}
],
"city": "New York",
"code": "NYP",
"country": null,
"daily_departures": null,
"facility_name": "Moynihan Train Hall at Penn Station",
"features": [
{
"accessible": null,
"feature": "Staffed station",
"note": null
},
{
"accessible": null,
"feature": "ATM available",
"note": null
},
{
"accessible": true,
"feature": "Elevator",
"note": null
},
{
"accessible": null,
"feature": "Metropolitan Lounge",
"note": null
},
{
"accessible": null,
"feature": "Payphones",
"note": null
},
{
"accessible": null,
"feature": "Amtrak ticketing kiosks available",
"note": null
},
{
"accessible": true,
"feature": "Restrooms",
"note": null
},
{
"accessible": true,
"feature": "Ticket sales office",
"note": null
},
{
"accessible": null,
"feature": "Unaccompanied child travel allowed",
"note": null
},
{
"accessible": null,
"feature": "Vending machines",
"note": null
},
{
"accessible": null,
"feature": "Amtrak WiFi available",
"note": null
},
{
"accessible": null,
"feature": "Arrive at least 45 minutes prior to departure if you're checking baggage or need ticketing/passenger assistance",
"note": "How long before departure to be at the station if you need ticketing, baggage or passenger assistance services."
},
{
"accessible": null,
"feature": "Arrive at least 30 minutes prior to departure if you're not checking baggage or don't need assistance",
"note": "How long before departure to be at the station if you do not need services such as ticketing, baggage or passenger assistance."
}
],
"geo": {
"lat": 40.751046264230254,
"lng": -73.99632844773079
},
"hours": [
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 11:59 PM"
]
}
],
"no_data_message": null,
"title": "Station Waiting Room Hours",
"type": "stationhours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
}
],
"no_data_message": null,
"title": "Ticket Office Hours",
"type": "tickethours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "TUESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "THURSDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "FRIDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SATURDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SUNDAY",
"time_slots": [
"24 HOURS"
]
}
],
"no_data_message": null,
"title": "Passenger Assistance",
"type": "meetandassisthours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
}
],
"no_data_message": null,
"title": "Checked Baggage Service",
"type": "baggagehours"
},
{
"days": [],
"no_data_message": "No parking at this location.",
"title": "Parking Hours",
"type": "parkinghours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "TUESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "THURSDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "FRIDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SATURDAY",
"time_slots": [
"24 HOURS"
]
},
{
"day": "SUNDAY",
"time_slots": [
"24 HOURS"
]
}
],
"no_data_message": null,
"title": "Quik-Trak Kiosk Hours",
"type": "quiktrakhours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"5:00 AM - 10:00 PM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"7:00 AM - 9:00 PM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"7:00 AM - 9:00 PM"
]
}
],
"no_data_message": null,
"title": "Lounge Hours",
"type": "loungehours"
},
{
"days": [
{
"day": "MONDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "TUESDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "WEDNESDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "THURSDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "FRIDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "SATURDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
},
{
"day": "SUNDAY",
"time_slots": [
"12:00 AM - 12:00 AM"
]
}
],
"no_data_message": null,
"title": "Amtrak Express Service",
"type": "expresshours"
}
],
"name": "New York, NY",
"observed_at_ms": 1790117604574,
"parking": [
{
"accessible": true,
"feature": "Same-day parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
},
{
"accessible": true,
"feature": "Overnight parking is available for a fee",
"note": "Amtrak cannot guarantee that a parking space will be available at the time of your trip."
}
],
"quik_trak": true,
"staffed": true,
"state": "NY",
"timezone": "E",
"url": "https://www.amtrak.com/stations/nyp",
"wheelchair": true
}请求规范
- 方法与路径: POST /apis/v1/amtrak-com/train-status/get-station
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/amtrak-com/train-status/get-station
{
"operationId": "amtrak-com.train-status.get-station",
"method": "POST",
"path": "/apis/v1/amtrak-com/train-status/get-station",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"code": "NYP"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"code": {
"description": "Amtrak 3-letter station code, e.g. NYP, WAS, CHI (case-insensitive). Pattern: ^[A-Za-z]{3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"url": {
"description": "Station page URL, e.g. https://www.amtrak.com/stations/nyp; alternative to `code`",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
Station page URL, e.g. https://www.amtrak.com/stations/nyp; alternative to code
响应
One station by 3-letter code: identity and timezone from the station reference feed, service flags, street address and coordinates from the station finder, and the station page tabs (hours by service, parking, baggage, features, accessibility).
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
accessibility | object[] | |
accessible | boolean | stationAccessible flag; null when unknown. |
address | object | Street address from the station finder; null when the finder has no record for the code. |
aliases | string[] | Alternative names the site's autocomplete matches |
baggage | object[] | |
city | string | |
code | string | 3-letter station code |
country | string | Country as stated by the source (only present for some non-US stations); null otherwise. |
daily_departures | number | Only published for a few major stations; null otherwise. |
facility_name | string | Station facility name, e.g. 'Moynihan Train Hall at Penn Sta.'; null when the source has none. |
features | object[] | |
geo | object | WGS84 coordinates from the station finder; null when unavailable. |
hours | object[] | Opening hours by service, from the station tab JSON; empty when the site publishes none |
name | string | Station name as listed, e.g. 'New York, NY' |
observed_at_ms | number | |
parking | object[] | |
quik_trak | boolean | Quik-Trak ticket kiosk available; null when unknown. |
staffed | boolean | From contentService.stationsinfo.json; null when the station has no flags record. |
state | string | US state or Canadian province code |
timezone | string | Amtrak timezone code: E, C, M, P (Eastern/Central/Mountain/Pacific); MS/PS mark zones without DST. |
url | string | Station page on amtrak.com |
wheelchair | boolean | Courtesy wheelchair available; null when unknown. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.