{
"success": true,
"data": [
{
"station_name": "HOWRAH JN",
"station_code": "HWH",
"state_name": "West Bengal",
"day": 1,
"std_min": 1420,
"lat": "22.584058",
"lng": "88.340979",
"stop": true,
"platform_number": 15,
"food_available": false,
"hotel_available": false,
"hospital_available": true
},
{
"station_name": "HOWRAH JN CABIN",
"station_code": "HJN",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1420,
"lat": "22.583503",
"lng": "88.342781",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "HOWRAH GOODS",
"station_code": "HWHG",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1421,
"lat": "22.5896053465",
"lng": "88.334197998",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "LILUAH (SORTING YARD)",
"station_code": "SYAE",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1422,
"lat": "22.609178",
"lng": "88.336945",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "LILUAH WORKSHOP",
"station_code": "LLHW",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1423,
"lat": "22.618532",
"lng": "88.338833",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BELUR",
"station_code": "BEQ",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1424,
"lat": "22.63639201",
"lng": "88.33998084",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BALLY",
"station_code": "BLY",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1425,
"lat": "22.6551655812",
"lng": "88.3405065536",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BALLY CHORD",
"station_code": "BLYC",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1425,
"lat": "22.658359",
"lng": "88.337932",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BELANAGAR",
"station_code": "BZL",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1426,
"lat": "22.661185",
"lng": "88.317804",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "DANKUNI",
"station_code": "DKAE",
"state_name": "West Bengal",
"day": 1,
"std_min": 1428,
"lat": "22.677342",
"lng": "88.291411",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "GOBRA",
"station_code": "GBRA",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1429,
"lat": "22.695754",
"lng": "88.279524",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "JANAI ROAD",
"station_code": "JOX",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1431,
"lat": "22.722159",
"lng": "88.26489",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BEGUMPUR",
"station_code": "BPAE",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1432,
"lat": "22.737517",
"lng": "88.255534",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BARUIPARA",
"station_code": "BRPA",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1434,
"lat": "22.766487",
"lng": "88.237081",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "MIRZAPUR BANKIPUR",
"station_code": "MBE",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1436,
"lat": "22.7906827672",
"lng": "88.2223927975",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BALARAMBATI",
"station_code": "BLAE",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1437,
"lat": "22.808367076",
"lng": "88.211824894",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "KAMARKUNDU",
"station_code": "KQU",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1438,
"lat": "22.821441",
"lng": "88.204937",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "KAMARKUNDU",
"station_code": "KQLS",
"state_name": "WEST BENGAL",
"day": 1,
"std_min": 1438,
"lat": "22.820729",
"lng": "88.204139",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "MADHU SUDANPUR",
"station_code": "MDSE",
"state_name": "WEST BENGAL",
"day": 2,
"std_min": 1440,
"lat": "22.844658",
"lng": "88.193049",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "CHANDANPUR",
"station_code": "CDAE",
"state_name": "WEST BENGAL",
"day": 2,
"std_min": 1442,
"lat": "22.88092",
"lng": "88.175797",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "PORABAZAR",
"station_code": "PBZ",
"state_name": "WEST BENGAL",
"day": 2,
"std_min": 1444,
"lat": "22.916777",
"lng": "88.15949",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false,
"hospital_available": false
},
{
"station_name": "BELMURI",
"station_code": "BMAE",
"state_name": "WEST BENGAL",
"day": 2,
"std_min": 1445,
"lat": "22.93254742",
"lng": "88.15215111",
"stop": false,
"platform_number": 0,
"food_available": false,
"hotel_available": false
}
],
"_note": "Response truncated for documentation purposes"
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33728/train+schedule?trainNumber=12321' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"pnr": "6351738552",
"trainNumber": "12150",
"trainName": "DNR PUNE EXP",
"journeyDate": "07-06-2025",
"bookingDate": "25-04-2025",
"source": "DNR",
"destination": "PUNE",
"boardingPoint": "DNR",
"class": "3A",
"chartPrepared": true,
"trainStatus": "Status not available",
"departureTime": "23:15",
"arrivalTime": "04:00",
"duration": "28:45",
"passengers": [
{
"number": 1,
"bookingStatus": "GNWL 180",
"currentStatus": "GNWL 17",
"coach": "N/A",
"berth": 17
}
],
"fare": {
"bookingFare": "3750",
"ticketFare": "3750"
},
"ratings": {
"overall": 3.9,
"food": 3.5,
"punctuality": 4.1,
"cleanliness": 4,
"ratingCount": 2916
},
"hasPantry": true,
"isCancelled": false
}
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33729/pnr+status?pnr=1234567890' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": [
{
"trainNumber": "15134",
"trainName": "AMRIT BHARAT EX",
"from": {
"code": "ANVT",
"name": "Delhi Anand Vihar Terminus"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "00:20",
"arrival": "16:45",
"duration": "16h 25m",
"distanceKm": 777,
"pantry": "No",
"rating": 4.3,
"runningDays": "Wed, Sat",
"allClasses": [
"SL"
],
"classAvailability": [
{
"class": "SL",
"availability": "RAC 63/RAC 58",
"fare": "490",
"prediction": "Available",
"displayStatus": "RAC 58",
"predictionPercent": 100,
"quota": "GN"
}
]
},
{
"trainNumber": "15910",
"trainName": "AVADH ASSAM EXP",
"from": {
"code": "DLI",
"name": "Old Delhi"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "07:22",
"arrival": "23:40",
"duration": "16h 18m",
"distanceKm": 758,
"pantry": "Yes",
"rating": 3.6,
"runningDays": "Sun, Mon, Tue, Wed, Thu, Fri, Sat",
"allClasses": [
"SL",
"SL_TQ",
"3A",
"3A_TQ",
"2A",
"1A"
],
"classAvailability": [
{
"class": "1A",
"availability": "RLWL2/WL2",
"fare": "2645",
"prediction": "90% Chance",
"displayStatus": "WL 2",
"predictionPercent": 90,
"quota": "GN"
},
{
"class": "2A",
"availability": "RLWL10/WL10",
"fare": "1590",
"prediction": "81% Chance",
"displayStatus": "WL 10",
"predictionPercent": 81,
"quota": "GN"
},
{
"class": "3A",
"availability": "RLWL33/WL21",
"fare": "1125",
"prediction": "70% Chance",
"displayStatus": "WL 21",
"predictionPercent": 70,
"quota": "GN"
},
{
"class": "SL",
"availability": "RLWL47/WL42",
"fare": "425",
"prediction": "52% Chance",
"displayStatus": "WL 42",
"predictionPercent": 52,
"quota": "GN"
}
]
},
{
"trainNumber": "12204",
"trainName": "SHC GARIB RATH",
"from": {
"code": "DLI",
"name": "Old Delhi"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "11:05",
"arrival": "00:02",
"duration": "12h 57m",
"distanceKm": 765,
"pantry": "No",
"rating": 3.6,
"runningDays": "Sun, Wed, Sat",
"allClasses": [
"3A"
],
"classAvailability": [
{
"class": "3A",
"availability": "RLWL87/WL44",
"fare": "850",
"prediction": "81% Chance",
"displayStatus": "WL 44",
"predictionPercent": 81,
"quota": "GN"
}
]
},
{
"trainNumber": "02570",
"trainName": "NDLS DBG SF SPL",
"from": {
"code": "NDLS",
"name": "New Delhi"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "12:15",
"arrival": "00:45",
"duration": "12h 30m",
"distanceKm": 787,
"pantry": "Yes",
"rating": 3.6,
"runningDays": "Sun, Mon, Tue, Wed, Thu, Fri, Sat",
"allClasses": [
"SL",
"3E",
"3A"
],
"classAvailability": [
{
"class": "3A",
"availability": "PQWL3/WL3",
"fare": "1530",
"prediction": "94% Chance",
"displayStatus": "WL 3",
"predictionPercent": 94,
"quota": "GN"
},
{
"class": "3E",
"availability": "PQWL3/WL3",
"fare": "1420",
"prediction": "89% Chance",
"displayStatus": "WL 3",
"predictionPercent": 89,
"quota": "GN"
},
{
"class": "SL",
"availability": "PQWL9/WL8",
"fare": "590",
"prediction": "91% Chance",
"displayStatus": "WL 8",
"predictionPercent": 91,
"quota": "GN"
}
]
},
{
"trainNumber": "12566",
"trainName": "BIHAR S KRANTI",
"from": {
"code": "NDLS",
"name": "New Delhi"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "12:45",
"arrival": "00:50",
"duration": "12h 5m",
"distanceKm": 790,
"pantry": "Yes",
"rating": 3.9,
"runningDays": "Sun, Mon, Tue, Wed, Thu, Fri, Sat",
"allClasses": [
"SL",
"3E",
"3A",
"2A",
"1A"
],
"classAvailability": [
{
"class": "1A",
"availability": "PQWL2/WL1",
"fare": "2795",
"prediction": "90% Chance",
"displayStatus": "WL 1",
"predictionPercent": 90,
"quota": "GN"
},
{
"class": "2A",
"availability": "PQWL5/WL2",
"fare": "1680",
"prediction": "92% Chance",
"displayStatus": "WL 2",
"predictionPercent": 92,
"quota": "GN"
},
{
"class": "3A",
"availability": "PQWL18/WL6",
"fare": "1200",
"prediction": "89% Chance",
"displayStatus": "WL 6",
"predictionPercent": 89,
"quota": "GN"
},
{
"class": "3E",
"availability": "PQWL7/WL5",
"fare": "1110",
"prediction": "75% Chance",
"displayStatus": "WL 5",
"predictionPercent": 75,
"quota": "GN"
},
{
"class": "SL",
"availability": "PQWL39/WL13",
"fare": "465",
"prediction": "90% Chance",
"displayStatus": "WL 13",
"predictionPercent": 90,
"quota": "GN"
}
]
},
{
"trainNumber": "15568",
"trainName": "AMRIT BHARAT EXP",
"from": {
"code": "ANVT",
"name": "Delhi Anand Vihar Terminus"
},
"to": {
"code": "GKP",
"name": "Gorakhpur Junction"
},
"departure": "14:00",
"arrival": "03:58",
"duration": "13h 58m",
"distanceKm": 750,
"pantry": "No",
"rating": 4.4,
"runningDays": "Wed, Sat",
"allClasses": [
"SL"
],
"classAvailability": [
{
"class": "SL",
"availability": "GNWL121/WL24",
"fare": "480",
"prediction": "93% Chance",
"displayStatus": "WL 24",
"predictionPercent": 93,
"quota": "GN"
}
]
},
{
"trainNumber": "12558",
"trainName": "SAPT KRANTI EXP",
"from": {
"code": "ANVT",
"name": "Delhi Anand Vihar Terminus"
}
}
],
"_note": "Response truncated for documentation purposes"
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33730/train+seat+availability?source=NDLS&destination=GKP&date=30-09-2026' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": [
{
"station_name": "NEW DELHI",
"station_code": "NDLS",
"state_name": "DELHI",
"city_name": "New Delhi"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33731/station+search?code=NDLS' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"train": "MUMBAI MAIL"
}
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33734/train+search?trainNumber=12321' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"source": "NDLS",
"destination": "BSB",
"hours": "4",
"trainCount": 1,
"trains": [
{
"trainNumber": "22436",
"trainName": "VANDE BHARAT EX",
"trainType": "SHATABDI",
"sourceStationName": "NEW DELHI",
"destinationStationName": "VARANASI",
"platform": "16",
"scheduledArrival": null,
"arrivalDelayMinutes": null,
"scheduledDeparture": "06:00",
"departureDelayMinutes": 0,
"status": "on_time"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33737/live+station?source=NDLS&hours=4&destination=BSB' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"data": {
"train_number": "12951",
"train_name": "Mumbai Central - New Delhi Rajdhani Express",
"current_station_name": "GANGAPUR CITY~",
"status": "T",
"distance_from_source": 1096,
"total_distance": 1384,
"eta": "05:17",
"etd": "05:17",
"delay": 3,
"next_stoppage_info": {
"next_stoppage_title": "Next:",
"next_stoppage": "NEW DELHI",
"next_stoppage_time_diff": "in 3 hrs 12 mins",
"next_stoppage_delay": 0
},
"current_location_info": [
{
"type": 1,
"deeplink": "",
"img_url": "",
"label": "As of few seconds ago",
"message": "Crossed GANGAPUR CITY~ at 05:17",
"readable_message": "Crossed gangapur city at 05:17",
"hint": "Delay 3m"
},
{
"type": 2,
"deeplink": "",
"img_url": "",
"label": "As of few seconds ago",
"message": "288 kms to NEW DELHI",
"readable_message": "288 kilometer to new delhi",
"hint": "1096 kms Covered so far"
},
{
"type": 3,
"deeplink": "",
"img_url": "",
"label": "As of few seconds ago",
"message": "8 kms to CHHOTI ODAI",
"readable_message": "8 kilometer to chhoti odai",
"hint": "No-halt station"
},
{
"type": 4,
"deeplink": "",
"img_url": "",
"label": "As of few seconds ago",
"message": "4 kms ahead of GANGAPUR CITY~",
"readable_message": "4 kilometers ahead of gangapur city",
"hint": "Travelling North"
}
],
"upcoming_stations_count": 1
}
}
curl --location --request GET 'https://zylalabs.com/api/13999/indian+railways+train+search+api/33740/live+train+status?trainNumber=12951&startDay=1' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Indian Railways Train Search API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
The Indian Railways Train Search API provides comprehensive Indian Railways data, including train schedules, official names, routes, stations, operating days, travel duration, distances, fares, seat availability, and class information for selected journeys and travel dates. It also provides station details such as codes, locations, arrivals, departures, platforms, and delays, along with live train positions, upcoming stops, current delays, and distance traveled. PNR data can include booking status, passenger details, coach and seat assignments, and fare information. The API supports applications for journey planning, train search, live tracking, station displays, delay monitoring, availability checks, reservation assistance, and other services that require structured railway data.
Each endpoint returns specific data related to Indian Railways. For example, the Train Schedule endpoint provides route details, while the PNR Status endpoint returns booking and passenger information. Other endpoints cover seat availability, station details, live train status, and more.
Key fields vary by endpoint. For Train Schedule, fields include station name, code, and scheduled time. The PNR Status includes passenger details and fare. Live Train Status features train number, current location, ETA, and delay information.
Parameters vary by endpoint. For Train Seat Availability, you can specify departure and arrival station codes along with the travel date. The PNR Status requires a ten-digit PNR number. Each endpoint documentation provides specific parameter requirements.
Response data is structured in JSON format, typically containing a "success" field and a "data" array. Each entry in the data array corresponds to specific details relevant to the request, such as train schedules or seat availability.
The data is sourced from Indian Railways and is maintained by IRCTC. This ensures that the information is accurate and up-to-date, reflecting real-time changes in train schedules, seat availability, and other railway operations.
Typical use cases include journey planning, real-time train tracking, checking seat availability, and monitoring delays. Developers can integrate this data into applications for travel planning, ticket booking, and station information displays.
Users can parse the JSON response to extract relevant information. For instance, in the Live Train Status, users can track delays and next stoppage details to provide real-time updates in their applications or services.
Each endpoint provides distinct information: Train Schedule offers route and station details, PNR Status gives booking and passenger info, Train Seat Availability shows class and fare details, and Live Train Status provides real-time location and delay data.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund