PNR Status

Procedure

Just make a HTTP request to
http://yoursite.com/api.php?pnrno=&rtype=json

The parameters to be provided are:
pnrno: Your 10 digit PNR number
rtype: Return type json/xml.

This site script is available to purchase. If you want to buy it click on buy button and make the payment. After payment you will get a download link via email.

Price - ₹ 199/-

Note: you will get an API with working example code.

Uses:

<?php
$url = 'http://yoursite.com/api.php';
$param = array(
	'pnrno' => '48XXXXXXXX',
	'rtype' => 'json'
);

$url = $url . "?" . http_build_query($param, '&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>
			

Result:

{
  "status": "OK",
  "pnr": "4833818101",
  "lastUpdated": "November 11, 2015, 1:52 am",
  "journeyDetails": {
    "trainNumber": "*16093",
    "trainName": "LUCKNOW EXP",
    "from": "KMT",
    "to": "CNB",
    "reservedUpto": "CNB",
    "boardingPoint": "KMT",
    "class": "3A",
    "boardingDate": "10-11-2015"
  },
  "bookingStatus": [
    {
      "passengerNo": 1,
      "bookingStatus": "B1,16,CK",
      "currentStatus": "B1,16"
    },
    {
      "passengerNo": 2,
      "bookingStatus": "B1,15,CK",
      "currentStatus": "B1,15"
    }
  ],
  "bookingFare": "2140",
  "chartingStatus": "CHART PREPARED"
}