PNR Status API

API ID 13975

Access real-time train data and schedules with the PNR Status API for seamless travel planning.

API Documentation

Endpoints

Request
Returns the full route of one Indian train, listing each station, journey day, stop, minutes, platform, coordinates, and food, hotel, hospital flags.
Endpoint ID: 33598
GET https://zylalabs.com/api/13975/pnr+status+api/33598/train+schedule
INPUT PARAMETERS

Train Schedule — Endpoint Features

Object Description
trainNumber Required Train number (4–6 digits)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

trainNumber
API EXAMPLE RESPONSE
JSON
{
    "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"
}
Train Schedule — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33598/train+schedule?trainNumber=12321' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the passenger, coach, seat, fare, and train details for one current ten-digit PNR, or not found once that booking is purged.
Endpoint ID: 33601
GET https://zylalabs.com/api/13975/pnr+status+api/33601/pnr+status
INPUT PARAMETERS

PNR Status — Endpoint Features

Object Description
pnr Required 10-digit PNR (must be valid)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

pnr
API EXAMPLE RESPONSE
JSON
{
    "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
    }
}
PNR Status — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33601/pnr+status?pnr=1234567890' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns trains between two station codes on a given date, with class availability, fare in rupees, confirmation chance, and weekly running days.
Endpoint ID: 33604
GET https://zylalabs.com/api/13975/pnr+status+api/33604/train+seat+availability
INPUT PARAMETERS

Train Seat Availability — Endpoint Features

Object Description
source Required Origin Station Code
destination Required Destination Station Code
date Required Date DD-MM-YYYY

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

source
destination
date
API EXAMPLE RESPONSE
JSON
{
    "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"
}
Train Seat Availability — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33604/train+seat+availability?source=NDLS&destination=GKP&date=30-09-2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns railway station details including station name, code, state, and city, helping applications identify and reference Indian railway stations accurately.
Endpoint ID: 33607
GET https://zylalabs.com/api/13975/pnr+status+api/33607/station+search
INPUT PARAMETERS

Station Search — Endpoint Features

Object Description
code Required Full code or part of the name (min. 2 characters)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

code
API EXAMPLE RESPONSE
JSON
{
    "success": true,
    "data": [
        {
            "station_name": "NEW DELHI",
            "station_code": "NDLS",
            "state_name": "DELHI",
            "city_name": "New Delhi"
        }
    ]
}
Station Search — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33607/station+search?code=NDLS' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns train information based on the provided train number, including the corresponding train name for accurate identification of Indian railway services.
Endpoint ID: 33610
GET https://zylalabs.com/api/13975/pnr+status+api/33610/train+search
INPUT PARAMETERS

Train Search — Endpoint Features

Object Description
trainNumber Required Train number (4–6 digits)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

trainNumber
API EXAMPLE RESPONSE
JSON
{
    "success": true,
    "data": {
        "train": "MUMBAI MAIL"
    }
}
Train Search — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33610/train+search?trainNumber=12321' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Provides train schedule and live departure information between selected Indian railway stations, including train details, platforms, departure times, delays, and status.
Endpoint ID: 33612
GET https://zylalabs.com/api/13975/pnr+status+api/33612/live+station
INPUT PARAMETERS

Live Station — Endpoint Features

Object Description
source Required Station code
hours Required Time frame: 2, 4, 6, or 8 hours
destination Optional Enter the station code (Only trains going to this destination)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

source
hours
destination
API EXAMPLE RESPONSE
JSON
{
    "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"
            }
        ]
    }
}
Live Station — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33612/live+station?source=NDLS&hours=4&destination=BSB' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns live train location, delay, distance traveled, ETA, next stoppage, and current movement details for a specified train number.
Endpoint ID: 33613
GET https://zylalabs.com/api/13975/pnr+status+api/33613/live+train+status
INPUT PARAMETERS

Live Train Status — Endpoint Features

Object Description
trainNumber Required Train number (4–6 digits)
startDay Optional Day of departure: 0 today, 1 yesterday, 2 the day before yesterday

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

trainNumber
startDay
API EXAMPLE RESPONSE
JSON
{
    "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
    }
}
Live Train Status — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13975/pnr+status+api/33613/live+train+status?trainNumber=12951&startDay=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

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 PNR Status API simply include your bearer token in the Authorization header.

Headers
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 🎉)

🚀 Enterprise Plan

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

The PNR Status 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.

PNR Status API FAQs

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.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs