Flight Search Endpoint
Searches for flight availability across providers.
- Endpoint:
/api/v1/flights/fliggy/search - Method:
POST
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Your encrypted AES-256 time-sensitive token. |
Content-Type | application/json | Yes | |
Accept | application/json | Yes |
Payload Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
trip_type | String | Yes | 1 (One Way), 2 (Round Trip), 3 (Multi City) |
cabin_class | String | Yes | A (All), Y (Economy), FC (First/Business), S (Premium) |
departure_city_code | String | Conditional | 3-letter IATA code (e.g., "BKK"). Required if departure_airport_code is not provided. |
departure_airport_code | String | Conditional | 3-letter IATA code (e.g., "BKK"). Required if departure_city_code is not provided. |
arrival_city_code | String | Conditional | 3-letter IATA code (e.g., "SIN"). Required if arrival_airport_code is not provided. |
arrival_airport_code | String | Conditional | 3-letter IATA code (e.g., "SIN"). Required if arrival_city_code is not provided. |
departure_date | String | Yes | Date format Y-m-d (e.g., "2026-10-01") |
return_date | String | Conditional | Date format Y-m-d. Required if trip_type is 2 (Round Trip). |
adults | Integer | Optional | Number of adults (Minimum: 1, Default: 1) |
children | Integer | Optional | Number of children (Minimum: 0, Default: 0) |
infants | Integer | Optional | Number of infants (Minimum: 0, Default: 0) |
Sample Payload
{
"trip_type": "1",
"cabin_class": "A",
"departure_city_code": "BKK",
"arrival_city_code": "SIN",
"departure_date": "2026-10-01",
"return_date": null,
"adults": 1,
"children": 0,
"infants": 0
}