Agoda API endpoint
Returns real-content amenities (aircraft type, seat layout, meals, entertainment, wifi) for one or more flight segments. Copy the segments straight from a flight search response's own segment fields.
/agoda/flights/itinerary-amenitiesRequest body:
segments (required, at least one entry) — array of segment objects:
origin_airport (required) — segment origin IATA airport code, e.g. a
search response segment's departure.airport.code.destination_airport (required) — segment destination IATA airport
code, e.g. a search response segment's arrival.airport.code.departure_date_time (required) — segment local departure date/time,
e.g. a search response segment's departure.date_time field, with or
without seconds precision (both are accepted).flight_number (required) — marketing flight number, without the
airline code, e.g. a search response segment's flight_number field.carrier_code (required) — two-letter operating/marketing airline
code, e.g. a search response segment's airline.code field.cabin_class (required) — segment cabin code, e.g. a search response
segment's cabin_code field (not cabin_class).fare_basis_code (optional) — segment fare basis code, when known,
e.g. a search response segment's fare_basis_code field.Notable response behavior:
segments array, or a segment missing a required field, returns
400 before any upstream request is made.segments in the response are returned in the same order as requested.amenities
list, not an error.| Field | Filled in, of 1 checked | Values in the sample |
|---|---|---|
| flight_number | 1 | 772 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| body (body) | object | Yes | One or more flight segments to fetch amenities for | ||
| x-api-key (header) | string | Yes | API key required |
curl -X POST "https://api.crawlora.net/api/v1/agoda/flights/itinerary-amenities" \
-H "x-api-key: $CRAWLORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"segments":[{"cabin_class":"ECO","carrier_code":"VN","departure_date_time":"2026-10-20T11:15:00","destination_airport":"SGN","fare_basis_code":"TLOXAU","flight_number":"772","origin_airport":"SYD"}]}'{
"segments": [
{
"cabin_class": "ECO",
"carrier_code": "VN",
"departure_date_time": "2026-10-20T11:15:00",
"destination_airport": "SGN",
"fare_basis_code": "TLOXAU",
"flight_number": "772",
"origin_airport": "SYD"
}
]
}{
"code": 200,
"msg": "OK",
"data": {
"count": 1,
"segments": [
{
"flight_number": "772",
"amenities": [
"A350 Widebody jet",
"Alcoholic beverages available (Free)",
"On-demand video (Free)",
"Meal available (Free)",
"3-3-3 Layout",
"Fast Wifi Available (Paid)"
]
}
]
}
}Request schema
#/definitions/agoda.FlightItineraryAmenitiesOption
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| segments | array | Yes | ||||
| segments[].cabin_class | string | Yes | ECO | |||
| segments[].carrier_code | string | Yes | VN | |||
| segments[].departure_date_time | string | Yes | 2026-10-20T11:15:00 | |||
| segments[].destination_airport | string | Yes | SGN | |||
| segments[].fare_basis_code | string | No | TLOXAU | |||
| segments[].flight_number | string | Yes | 772 | |||
| segments[].origin_airport | string | Yes | SYD |
Response schema
#/definitions/agoda.flightItineraryAmenitiesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | agoda.FlightItineraryAmenitiesResponse | No | ||||
| data.count | integer | No | 1 | |||
| data.segments | array | No | ||||
| data.segments[].amenities | array | No | A350 Widebody jet | |||
| data.segments[].flight_number | string | No | 772 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X POST "https://api.crawlora.net/api/v1/agoda/flights/itinerary-amenities" \
-H "x-api-key: $CRAWLORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"segments":[{"cabin_class":"ECO","carrier_code":"VN","departure_date_time":"2026-10-20T11:15:00","destination_airport":"SGN","fare_basis_code":"TLOXAU","flight_number":"772","origin_airport":"SYD"}]}'