Url
https://api.basset.ws/flights/clusters?channel=API&adults=1&limit=20&offset=0&site=AR&from=BUE,PTY&to=PTY,BUE&dates=2023-08-26,2023-08-31
Cabeceras
x-api-key
(obligatorio): Clave de API proporcionada por Basset.
x-client-id
(obligatorio): Identificador de cliente proporcionado por Basset.
Descripción de los query params
Request | Query Parameters | Type date | Descriptions |
REQUIRED | Channel | string | Sales channel: WEB, DESKTOP, API, MOBILE |
REQUIRED | From | string | Origen (Código de Ciudad o Aeropuerto) Ej. BUE |
REQUIRED | To | string | Destino (Código de Ciudad o Aeropuerto) Ej. BOG |
REQUIRED | Dates | string | Fechas de vuelo AAAA-MM-DD. |
REQUIRED | Adults | string | Número de pasajeros y tipo de pasajero (&adults=1&&infants=1&seat_infants=1&children=1&seniors=3&handicapped=2) ADT = Adulto, Adulto Mayor, Discapacitado – CHD = Niño 0 – 2 En brazo y Asiento – INF = Niño de 2 a 11
|
REQUIRED | Site | string | ISO 3166-2 country code (Ej. AR) |
REQUIRED | Limit | integer | Cantidad de cluster ej=20 |
REQUIRED | Offset | integer | Referencia que indica a partir de donde se va a mostrar la búsqueda del cluster (si asignas 10 mostrara: (noveno del cero al nueve)) |
REQUIRED | Type | parameter | El vuelo si es solo ida, si es ida y vuelta o si tiene múltiples destinos (ONE_WAY -ROUND_TRIP -MULTIPLE_DESTINATIONS) |
REQUIRED | Cabin | string | Sección donde viajan los pasajeros (asiento) (Y,M,W,C,F) |
REQUIRED | checked_baggage | boolean | Equipage (true-false) |
REQUIRED | Page | integer | Expresa las paginas sobre la segunda pantalla de búsqueda |
REQUIRED | Stops | string | Si posee Paradas |
Ejemplo de pasajeros:
https://app.basset.la/sales/flights/results?origin=BUE&destination=PTY&dates=2023-09-01,2023-09-30&type=ROUND_TRIP&adults=1&&infants=1&seat_infants=1&children=1&seniors=3&handicapped=2
Response:
{
“clusters”: [
{
“segments”: [
{
“origin”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“destination”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“departure_date”: “2023-08-26”,
“options”: [
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|2080484556544533650”,
“departure_date”: “2023-08-26”,
“departure_time”: “05:16”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:40”,
“duration”: “07:24”,
“legs”: [
{
“origin”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“destination”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“departure_date”: “2023-08-26”,
“departure_time”: “05:16”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:40”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:24”,
“flight_number”: “278”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “T”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
}
]
},
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“options”: [
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|386091495561925801”,
“departure_date”: “2023-08-31”,
“departure_time”: “12:14”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:26”,
“duration”: “07:12”,
“legs”: [
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“departure_time”: “12:14”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:26”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:12”,
“flight_number”: “500”,
“aircraft_type”: “738”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|9067548722710408684”,
“departure_date”: “2023-08-31”,
“departure_time”: “15:13”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “00:25”,
“duration”: “07:12”,
“legs”: [
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“departure_time”: “15:13”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “00:25”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:12”,
“flight_number”: “279”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|4558417464413787117”,
“departure_date”: “2023-08-31”,
“departure_time”: “18:18”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “03:33”,
“duration”: “07:15”,
“legs”: [
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“departure_time”: “18:18”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “03:33”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:15”,
“flight_number”: “454”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|6925318911813010053”,
“departure_date”: “2023-08-31”,
“departure_time”: “21:26”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “06:41”,
“duration”: “07:15”,
“legs”: [
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“departure_time”: “21:26”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “06:41”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:15”,
“flight_number”: “367”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 8
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
}
]
}
],
“price”: {
“charges”: 10286.24,
“total”: 524598.34,
“taxes”: 295127.1,
“adults”: {
“fare”: 219185,
“quantity”: 1,
“taxes”: [
{
“total”: 2950,
“type”: “QO”,
“collector”: “PROVIDER”
},
{
“total”: 413,
“type”: “S7”,
“collector”: “PROVIDER”
},
{
“total”: 2360,
“type”: “TQ2”,
“collector”: “PROVIDER”
},
{
“total”: 16815,
“type”: “XR2”,
“collector”: “PROVIDER”
},
{
“total”: 368.8,
“type”: “AH3”,
“collector”: “PROVIDER”
},
{
“total”: 3540,
“type”: “F3”,
“collector”: “PROVIDER”
},
{
“total”: 11800,
“type”: “FZ”,
“collector”: “PROVIDER”
},
{
“total”: 16086.4,
“type”: “AR”,
“collector”: “PROVIDER”
},
{
“total”: 68941.5,
“type”: “O5”,
“collector”: “PROVIDER”
},
{
“total”: 103412.3,
“type”: “Q1”,
“collector”: “PROVIDER”
},
{
“total”: 57451.3,
“type”: “S5”,
“collector”: “PROVIDER”
},
{
“total”: 368.8,
“type”: “AH4”,
“collector”: “PROVIDER”
},
{
“total”: 5310,
“type”: “YQF”,
“collector”: “PROVIDER”
},
{
“total”: 5310,
“type”: “YQF”,
“collector”: “PROVIDER”
}
],
“refund_policy”: [
{
“applies”: “BEFORE”,
“valid”: false,
“amount”: 0,
“percentage”: 0
},
{
“applies”: “AFTER”,
“valid”: false,
“amount”: 0,
“percentage”: 0
}
],
“exchange_policy”: [
{
“applies”: “BEFORE”,
“valid”: true,
“amount”: 44250,
“percentage”: 0
},
{
“applies”: “AFTER”,
“valid”: true,
“amount”: 44250,
“percentage”: 0
}
]
},
“reseller_charges”: {
“operating_cost”: 0,
“fees”: 0,
“markup”: 0
},
“agency_charges”: {
“operating_cost”: 0,
“fees”: 10286.24,
“markup”: 0
},
“currency”: “ARS”,
“commision_rule_data”: {
“currency”: “ARS”,
“ceded_amount”: 0,
“reseller_amount”: 0
},
“over_commision_rule_data”: {
“currency”: “”,
“ceded_amount”: 0,
“reseller_amount”: 0
},
“agency_cost_effectiveness”: 10286.24
},
“provider_id”: “NETVIAX”,
“source”: “SABRE”,
“source_type”: “GDS”,
“validating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“route_type”: “INTERNATIONAL”,
“flight_type”: “ROUND_TRIP”,
“tracking_id”: “52bf8fc1-3277-47b8-a2ea-2b56e”
}
],
“total”: 19,
“limit”: 1,
“offset”: 0,
“filters”: {
“airlines”: [
{
“code”: “AR”,
“name”: “Aerolineas Argentinas”
},
{
“code”: “AV”,
“name”: “Avianca”
},
{
“code”: “CM”,
“name”: “COPA Airlines”
},
{
“code”: “DL”,
“name”: “Delta Air Lines”
},
{
“code”: “UA”,
“name”: “United Airlines”
}
],
“outbound_airports”: {
“outbound”: [
{
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
{
“code”: “AEP”,
“name”: “Buenos Aires, Argentina (AEP-Aeroparque Jorge Newbery)”,
“country_code”: “AR”
}
],
“inbound”: [
{
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
}
]
},
“inbound_airports”: {
“outbound”: [
{
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
}
],
“inbound”: [
{
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
{
“code”: “AEP”,
“name”: “Buenos Aires, Argentina (AEP-Aeroparque Jorge Newbery)”,
“country_code”: “AR”
}
]
},
“stops”: [
0,
1,
2
]
},
“matrix”: [
{
“airline”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“_stops”: {},
“stops”: {
“0”: {
“total”: 524598.34,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “AV”,
“name”: “Avianca”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 581624.46,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “DL”,
“name”: “Delta Air Lines”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 808593.67,
“currency”: “ARS”
},
“2”: {
“total”: 1279062.86,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “UA”,
“name”: “United Airlines”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 1058408.21,
“currency”: “ARS”
},
“2”: {
“total”: 992360.3,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “AR”,
“name”: “Aerolineas Argentinas”
},
“_stops”: {},
“stops”: {
“2”: {
“total”: 1279062.86,
“currency”: “ARS”
}
}
}
],
“metadata”: {
“min_price”: 524598.34,
“max_price”: 1718252.02
}
}