Flight List API
Returns the flights available for a route and date.
POST #BASEURL/flight/flightList.php
BODY PARAMS
RAW_BODY
jsonHEADERS
Request headers
Accept : application/json
Content-Type: application/json
Accept : application/json
Content-Type: application/json
Request Parameters
Send these parameters in the request body:
| Parameter | Type | Position | # | Description |
|---|---|---|---|---|
| token | string |
RAW_BODY |
Required |
Your API token from the ClubApi dashboard. Keep it private. |
Response
These fields are returned in the response:
| Parameter | Type | Description |
|---|---|---|
| status | string |
Request status: SUCCESS or FAILED. |
| data | array |
List of bus stops with their IDs. Pass the ID in the Bus List API. |
{
"status": "SUCCESS",
"orderId": "24061216091168640",
"resText": "",
"flightList": [
{
"flightId": "66697ad2979e1",
"flightName": "Indigo",
"flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/6E.gif",
"flightCode": "6E",
"flightNumber": "2219",
"flightClass": "RR",
"departureTimeString": "2024-06-15T14:40:00",
"arrivalTimeString": "2024-06-15T16:30:00",
"departureTime": "02:40 PM",
"departureDay": "2024-06-15",
"travelDuration": "01:50 Hrs",
"departureData": {
"airportCode": "IXR",
"airportName": "Ranchi",
"terminal": "",
"cityCode": "IXR",
"cityName": "Ranchi",
"countryCode": "IN",
"countryName": "India"
},
"noOfStops": "0",
"flightStops": [
{
"flightName": "Indigo",
"flightIcon": "https://prod.rechapi.com/flight/image/airlineLogo/6E.gif",
"flightCode": "6E",
"flightNumber": "2219",
"departureTime": "02:40 PM",
"departureDay": "2024-06-15",
"travelDuration": "01:50",
"departurePlace": "Ranchi",
"arrivalTime": "04:30 PM",
"arrivalDay": "2024-06-15",
"arrivalPlace": "Indira Gandhi Airport",
"baggage": {
"checkin": "15 Kilograms",
"cabin": "7 KG"
},
"stopDetails": "",
"flightCraft": "320"
}
],
"arrivalTime": "04:30 PM",
"arrivalDay": "2024-06-15",
"arrivalData": {
"airportCode": "DEL",
"airportName": "Indira Gandhi Airport",
"terminal": "2",
"cityCode": "DEL",
"cityName": "Delhi",
"countryCode": "IN",
"countryName": "India"
},
"fare": "5851",
"fareDetails": [
{
"total": "5851",
"title": "Total"
},
{
"total": "4450",
"title": "Base Fare"
},
{
"total": "1401",
"title": "Surcharge"
}
],
"baggage": {
"checkin": "15 Kilograms",
"cabin": "7 KG"
},
"priceData": [
{
"fare": "5851",
"fareType": "Saver",
"fareId": "66697ad28cf0c",
"fareCode": "R0IP",
"fareRules": null
},
{
"fare": "5851",
"fareType": "SME.CrpCon",
"fareId": "66697ad28d0f7",
"fareCode": "RMIP",
"fareRules": {
"seat": {
"name": "Seat",
"value": "Chargable"
},
"meal": {
"name": "Meal",
"value": "Included but you need to select the same while booking"
},
"handBag": {
"name": "hangBag",
"value": "1 Bag Upto 7 Kg"
},
"checkinBag": {
"name": "Check-In Baggage",
"value": "15 Kg"
},
"changeFee": {
"name": "Change Fee",
"value": "NO-SHOW"
},
"cancellationFee": {
"name": "Cancellation Fee",
"value": "NO-SHOW"
}
}
},
{
"fare": "5851",
"fareType": "Saver",
"fareId": "66697ad28d23d",
"fareCode": "R0IP",
"fareRules": null
},
{
"fare": "6376",
"fareType": "Flexi",
"fareId": "66697ad28f298",
"fareCode": "RUIP",
"fareRules": {
"seat": {
"name": "Seat",
"value": "All standard seats are free , 50% discount on Extra leg room seats (XL Rows)."
},
"meal": {
"name": "Meal",
"value": "Chargable"
},
"handBag": {
"name": "hangBag",
"value": "1 Bag Upto 7 Kg"
},
"checkinBag": {
"name": "Check-In Baggage",
"value": "15 Kg"
},
"changeFee": {
"name": "Change Fee",
"value": "Nill*"
},
"cancellationFee": {
"name": "Cancellation Fee",
"value": "500/Seat *"
}
}
},
{
"fare": "6376",
"fareType": "Flexi",
"fareId": "66697ad28f575",
"fareCode": "RUIP",
"fareRules": {
"seat": {
"name": "Seat",
"value": "All standard seats are free , 50% discount on Extra leg room seats (XL Rows)."
},
"meal": {
"name": "Meal",
"value": "Chargable"
},
"handBag": {
"name": "hangBag",
"value": "1 Bag Upto 7 Kg"
},
"checkinBag": {
"name": "Check-In Baggage",
"value": "15 Kg"
},
"changeFee": {
"name": "Change Fee",
"value": "Nill*"
},
"cancellationFee": {
"name": "Cancellation Fee",
"value": "500/Seat *"
}
}
},
{
"fare": "10051",
"fareType": "Super6E",
"fareId": "66697ad2943c0",
"fareCode": "RLIP",
"fareRules": null
}
],
"isLCC": true,
"fareCode": "R0IP",
"airlineRemark": "On all Indigo Code shared flight, Free Meal will be included ..WEBB.",
"isRefundable": true,
"seatsAvailable": "6",
"penaltyCharges": {
"reissueCharge": null,
"cancellationCharge": null
},
"returnFlight": null,
"slotDepartureTime": {
"timeSlot": {
"name": "Mid Day",
"value": "12pm - 4pm"
},
"flightTime": "1718442600",
"flightDepartureTimeString": "2024-06-15T14:40:00",
"flightDate": "2024-06-15 14:40:00",
"earlyMorningTime": "1718418600",
"morningTime": "1718433000",
"midDayTime": "1718447400",
"eveningTime": "1718461800",
"nightTime": "1718476176"
},
"connectingAirports": [],
"isInternational": "0"
},............
curl 'https://api.clubapi.in/flight/flightList.php' \
--max-time 10 \
-H 'accept: application/json' \
-H 'content-type: application/json' \
--data-raw '{"token":"xxxxx","source":"IXR","destination":"DEL","journeyDate":"2022-06-15","journeyType":"1","flightType":"","adults":"1","children":"0","infants":"0","travelClass":"E","returnDate":""}' \
<?php
$url = "https://api.clubapi.in/flight/flightList.php";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); // wait max 10 seconds to connect
curl_setopt($curl, CURLOPT_TIMEOUT, 10); // wait max 10 seconds for response
$headers = array(
"accept: application/json",
"content-type: application/json",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{"token":"xxxxx","source":"IXR","destination":"DEL","journeyDate":"2022-06-15","journeyType":"1","flightType":"","adults":"1","children":"0","infants":"0","travelClass":"E","returnDate":""}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
?>
URL url = new URL("https://api.clubapi.in/flight/flightList.php");
HttpURLConnection http = (HttpURLConnection)url.openConnection();
http.setRequestMethod("POST");
http.setDoOutput(true);
http.setConnectTimeout(10000); // 10 seconds
http.setReadTimeout(10000); // 10 seconds
http.setRequestProperty("accept", "application/json");
http.setRequestProperty("content-type", "application/json");
String data = "{\"token\":\"xxxxx\",\"source\":\"IXR\",\"destination\":\"DEL\",\"journeyDate\":\"2022-06-15\",\"journeyType\":\"1\",\"flightType\":\"\",\"adults\":\"1\",\"children\":\"0\",\"infants\":\"0\",\"travelClass\":\"E\",\"returnDate\":\"\"}";
byte[] out = data.getBytes(StandardCharsets.UTF_8);
OutputStream stream = http.getOutputStream();
stream.write(out);
System.out.println(http.getResponseCode() + " " + http.getResponseMessage());
http.disconnect();
var url = "https://api.clubapi.in/flight/flightList.php";
var httpRequest = (HttpWebRequest)WebRequest.Create(url);
httpRequest.Method = "POST";
httpRequest.Timeout = 10000; // 10 seconds
httpRequest.Headers["accept"] = "application/json";
httpRequest.Headers["content-type"] = "application/json";
var data = "{\"token\":\"xxxxx\",\"source\":\"IXR\",\"destination\":\"DEL\",\"journeyDate\":\"2022-06-15\",\"journeyType\":\"1\",\"flightType\":\"\",\"adults\":\"1\",\"children\":\"0\",\"infants\":\"0\",\"travelClass\":\"E\",\"returnDate\":\"\"}";
using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))
{
streamWriter.Write(data);
}
var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
var result = streamReader.ReadToEnd();
}
Console.WriteLine(httpResponse.StatusCode);