GET
/api/v1/flightrates/{shopId}Get Flight Rates
The Flight Rates endpoint provides data sourced from various channels, including information on flight fares, operating and marketing airline details, flight schedules, flight numbers, connecting airports, fare families, tax details, fare breakdowns, ancillary services, and other relevant information.
The API method GET /flightrates/{shopId} allows users to retrieve the above data. To obtain the flight rates, send a GET request to the specified endpoint, replacing {shopId} in the URL with the actual ID of the shop.
The API method GET /flightrates/{shopId} allows users to retrieve the above data. To obtain the flight rates, send a GET request to the specified endpoint, replacing {shopId} in the URL with the actual ID of the shop.
GET
/api/v1/flightrates/{shopId}Mandatory Fields
- shopId
Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
shopId | path | string(string) | Required | Id of the Flight Shop |
fromId | query | string | Optional | The from id used for cursor based pagination. |
size | query | integer | Optional | The number of items to be displayed per page. |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | |
| 400 | Bad Request | Request data failed validation(s) | None |
| 401 | Unauthorized | Authentication Failed! | None |
| 429 | Too Many Requests | Too Many Requests. | None |
| 500 | Internal Server Error | Internal Server Error | None |
Example Request
# You can also use wget
curl -X GET /api/v1/flightrates/{shopId} \
-H 'Accept: application/json' \
-H 'Authorization: API_KEY'
Example responses
200 Response
{
"error": false,
"isRealtime": true,
"status": "COMPLETED",
"flightrates": [
{
"travellers": {
"adults": 1,
"infants": 0,
"children": 1
},
"_id": "63a59bf4533a40315c201e77",
"outbound": {
"price": 171,
"baseFare": 0,
"feesAndOthers": 0,
"description": "",
"numOfStops": 2,
"metaProviderName": "",
"layover": "13:58",
"flightStatusCode": 22,
"departureDate": "2022-08-17T00:00:00.000Z",
"departureTime": "17:55",
"arrivalDate": "2022-08-18T00:00:00.000Z",
"arrivalTime": "14:36",
"totalDuration": "19:41",
"flightTime": "05:43",
"actualPrice": 0,
"actualBaseFare": 0,
"actualFeeAndOthers": 0,
"_priceClass": "6540b8df2e9e9a091aa17df7",
"priceClassName": "Standard",
"bookingClass": "Z",
"legs": [
{
"_id": "64802d78164ff91223679439",
"origin": "CUN",
"destination": "MCO",
"description": "",
"distance": 0,
"fbc": "",
"seatCount": 1,
"departureDate": "2022-08-17T00:00:00.000Z",
"departureTime": "17:55",
"arrivalDate": "2022-08-17T00:00:00.000Z",
"arrivalTime": "21:02",
"airlineShortCode": "NK",
"flightNumber": "NK-544",
"flightTime": "02:07",
"waitTime": "10:53",
"operatedBy": "",
"_airline": "6540b8df2e9e9a091aa17df7",
"airlineName": "Air Arabia",
"airlineCode": 1
}
],
"baggageDetails": "",
"promoCode": "",
"discounts": "",
"taxStatus": 22,
"_id": "64802d78164ff9122367943c",
"allFlightNumbers": [
"NK-544, NK-195,NK-145"
],
"allStopOverAirports": [
[
"CUN,",
"FLL,",
"SDQ,",
"MCQ"
]
],
"allAirlineCodes": [
[
"1,",
"1,",
1
]
],
"id": "64802d78164ff9122367943c"
},
"flyFrom": "CUN",
"flyTo": "SDQ",
"isRoundTrip": false,
"departDate": "2022-08-17T00:00:00.000Z",
"returnDate": "2022-08-18T00:00:00.000Z",
"channelName": "Spirit",
"channelType": "brand",
"airlineCode": 35,
"totalPrice": 244,
"isRatePerPerson": false,
"previousPrice": null,
"isMultipleAirline": false,
"collectedAt": "2022-07-16T18:52:57.214Z",
"statusCode": 200,
"batchInsertionId": "6448ce36bc44695e8914a8c2",
"_user": "6540b8df2e9e9a091aa17df7",
"userName": "user@flightrates.com",
"flightTripHash": "",
"_flightShop": "6540b8df2e9e9a091aa17df7",
"flightShopName": "Test Jetblue_copaair",
"_source": "6540b8df2e9e9a091aa17df7",
"sourceName": "Biman Bangladesh Airlines",
"sourceId": 1,
"_pos": "6540b8df2e9e9a091aa17df7",
"posName": "My Code",
"_cabinClass": {
"_id": "6013a6abf553c71d4dfbe92b",
"name": "Economy",
"id": "6013a6abf553c71d4dfbe92b"
},
"_currency": "5fa104806304832acf9c67e9",
"currencyName": "AED",
"updatedAt": "2022-12-28T05:48:30.669Z",
"_flyFrom": "5fa104806304832acf9c67e9",
"_flyTo": "5fa104806304832acf9c67e9",
"rowHash": "YyX",
"id": "63a59bf4533a40315c201e5f"
}
],
"prevPageUrl": "http://192.168.1.14:3000//flightrates/65a11460eb2070b608d4f396?size=1000",
"nextPageUrl": "http://192.168.1.14:3000//flightrates/65a11460eb2070b608d4f397?size=1000",
"pageSize": 1000
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.