jnjosjk0965 / travelMaker

호텔, 비행기 통합 예약 사이트 프로젝트
0 stars 2 forks source link

FlightSearch API 예시 #10

Open jnjosjk0965 opened 9 months ago

jnjosjk0965 commented 9 months ago

검색 url : https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=ICN&destinationLocationCode=HND&departureDate=2023-12-13&returnDate=2023-12-20&adults=1&nonStop=false&max=5&travelClass=ECONOMY

결과 : { "meta": { "count": 5, "links": { "self": "https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=ICN&destinationLocationCode=HND&departureDate=2023-12-13&returnDate=2023-12-20&adults=1&nonStop=false&max=5&travelClass=ECONOMY" } }, "data": [ { "type": "flight-offer", "id": "1", "source": "GDS", "instantTicketingRequired": false, "nonHomogeneous": false, "oneWay": false, "lastTicketingDate": "2023-12-04", "lastTicketingDateTime": "2023-12-04", "numberOfBookableSeats": 9, "itineraries": [ { "duration": "PT2H10M", "segments": [ { "departure": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-13T20:40:00" }, "arrival": { "iataCode": "HND", "terminal": "3", "at": "2023-12-13T22:50:00" }, "carrierCode": "KE", "number": "719", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H10M", "id": "1", "numberOfStops": 0, "blacklistedInEU": false } ] }, { "duration": "PT2H50M", "segments": [ { "departure": { "iataCode": "HND", "terminal": "3", "at": "2023-12-20T02:00:00" }, "arrival": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-20T04:50:00" }, "carrierCode": "KE", "number": "720", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H50M", "id": "10", "numberOfStops": 0, "blacklistedInEU": false } ] } ], "price": { "currency": "EUR", "total": "340.45", "base": "241.00", "fees": [ { "amount": "0.00", "type": "SUPPLIER" }, { "amount": "0.00", "type": "TICKETING" } ], "grandTotal": "340.45" }, "pricingOptions": { "fareType": [ "PUBLISHED" ], "includedCheckedBagsOnly": true }, "validatingAirlineCodes": [ "KE" ], "travelerPricings": [ { "travelerId": "1", "fareOption": "STANDARD", "travelerType": "ADULT", "price": { "currency": "EUR", "total": "340.45", "base": "241.00" }, "fareDetailsBySegment": [ { "segmentId": "1", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "10", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } } ] } ] }, { "type": "flight-offer", "id": "2", "source": "GDS", "instantTicketingRequired": false, "nonHomogeneous": false, "oneWay": false, "lastTicketingDate": "2023-12-04", "lastTicketingDateTime": "2023-12-04", "numberOfBookableSeats": 9, "itineraries": [ { "duration": "PT2H10M", "segments": [ { "departure": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-13T20:40:00" }, "arrival": { "iataCode": "HND", "terminal": "3", "at": "2023-12-13T22:50:00" }, "carrierCode": "KE", "number": "719", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H10M", "id": "1", "numberOfStops": 0, "blacklistedInEU": false } ] }, { "duration": "PT7H20M", "segments": [ { "departure": { "iataCode": "HND", "terminal": "2", "at": "2023-12-20T06:40:00" }, "arrival": { "iataCode": "UKB", "at": "2023-12-20T07:50:00" }, "carrierCode": "NH", "number": "411", "aircraft": { "code": "738" }, "operating": { "carrierCode": "EH" }, "duration": "PT1H10M", "id": "8", "numberOfStops": 0, "blacklistedInEU": false }, { "departure": { "iataCode": "KIX", "terminal": "1", "at": "2023-12-20T11:55:00" }, "arrival": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-20T14:00:00" }, "carrierCode": "KE", "number": "724", "aircraft": { "code": "333" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H5M", "id": "9", "numberOfStops": 0, "blacklistedInEU": false } ] } ], "price": { "currency": "EUR", "total": "459.65", "base": "357.00", "fees": [ { "amount": "0.00", "type": "SUPPLIER" }, { "amount": "0.00", "type": "TICKETING" } ], "grandTotal": "459.65" }, "pricingOptions": { "fareType": [ "PUBLISHED" ], "includedCheckedBagsOnly": true }, "validatingAirlineCodes": [ "KE" ], "travelerPricings": [ { "travelerId": "1", "fareOption": "STANDARD", "travelerType": "ADULT", "price": { "currency": "EUR", "total": "459.65", "base": "357.00" }, "fareDetailsBySegment": [ { "segmentId": "1", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "8", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "K", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "9", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "Y", "includedCheckedBags": { "quantity": 1 } } ] } ] }, { "type": "flight-offer", "id": "3", "source": "GDS", "instantTicketingRequired": false, "nonHomogeneous": false, "oneWay": false, "lastTicketingDate": "2023-12-04", "lastTicketingDateTime": "2023-12-04", "numberOfBookableSeats": 9, "itineraries": [ { "duration": "PT6H30M", "segments": [ { "departure": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-13T11:05:00" }, "arrival": { "iataCode": "KIX", "terminal": "1", "at": "2023-12-13T12:50:00" }, "carrierCode": "KE", "number": "727", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT1H45M", "id": "4", "numberOfStops": 0, "blacklistedInEU": false }, { "departure": { "iataCode": "ITM", "at": "2023-12-13T16:30:00" }, "arrival": { "iataCode": "HND", "terminal": "1", "at": "2023-12-13T17:35:00" }, "carrierCode": "JL", "number": "126", "aircraft": { "code": "788" }, "operating": { "carrierCode": "JL" }, "duration": "PT1H5M", "id": "5", "numberOfStops": 0, "blacklistedInEU": false } ] }, { "duration": "PT2H50M", "segments": [ { "departure": { "iataCode": "HND", "terminal": "3", "at": "2023-12-20T02:00:00" }, "arrival": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-20T04:50:00" }, "carrierCode": "KE", "number": "720", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H50M", "id": "10", "numberOfStops": 0, "blacklistedInEU": false } ] } ], "price": { "currency": "EUR", "total": "460.82", "base": "357.00", "fees": [ { "amount": "0.00", "type": "SUPPLIER" }, { "amount": "0.00", "type": "TICKETING" } ], "grandTotal": "460.82" }, "pricingOptions": { "fareType": [ "PUBLISHED" ], "includedCheckedBagsOnly": true }, "validatingAirlineCodes": [ "KE" ], "travelerPricings": [ { "travelerId": "1", "fareOption": "STANDARD", "travelerType": "ADULT", "price": { "currency": "EUR", "total": "460.82", "base": "357.00" }, "fareDetailsBySegment": [ { "segmentId": "4", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "Y", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "5", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "S", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "10", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } } ] } ] }, { "type": "flight-offer", "id": "4", "source": "GDS", "instantTicketingRequired": false, "nonHomogeneous": false, "oneWay": false, "lastTicketingDate": "2023-12-04", "lastTicketingDateTime": "2023-12-04", "numberOfBookableSeats": 9, "itineraries": [ { "duration": "PT6H35M", "segments": [ { "departure": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-13T09:00:00" }, "arrival": { "iataCode": "KIX", "terminal": "1", "at": "2023-12-13T10:45:00" }, "carrierCode": "KE", "number": "723", "aircraft": { "code": "333" }, "operating": { "carrierCode": "KE" }, "duration": "PT1H45M", "id": "6", "numberOfStops": 0, "blacklistedInEU": false }, { "departure": { "iataCode": "ITM", "at": "2023-12-13T14:30:00" }, "arrival": { "iataCode": "HND", "terminal": "1", "at": "2023-12-13T15:35:00" }, "carrierCode": "JL", "number": "120", "aircraft": { "code": "767" }, "operating": { "carrierCode": "JL" }, "duration": "PT1H5M", "id": "7", "numberOfStops": 0, "blacklistedInEU": false } ] }, { "duration": "PT2H50M", "segments": [ { "departure": { "iataCode": "HND", "terminal": "3", "at": "2023-12-20T02:00:00" }, "arrival": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-20T04:50:00" }, "carrierCode": "KE", "number": "720", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H50M", "id": "10", "numberOfStops": 0, "blacklistedInEU": false } ] } ], "price": { "currency": "EUR", "total": "460.82", "base": "357.00", "fees": [ { "amount": "0.00", "type": "SUPPLIER" }, { "amount": "0.00", "type": "TICKETING" } ], "grandTotal": "460.82" }, "pricingOptions": { "fareType": [ "PUBLISHED" ], "includedCheckedBagsOnly": true }, "validatingAirlineCodes": [ "KE" ], "travelerPricings": [ { "travelerId": "1", "fareOption": "STANDARD", "travelerType": "ADULT", "price": { "currency": "EUR", "total": "460.82", "base": "357.00" }, "fareDetailsBySegment": [ { "segmentId": "6", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "Y", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "7", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "S", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "10", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } } ] } ] }, { "type": "flight-offer", "id": "5", "source": "GDS", "instantTicketingRequired": false, "nonHomogeneous": false, "oneWay": false, "lastTicketingDate": "2023-12-04", "lastTicketingDateTime": "2023-12-04", "numberOfBookableSeats": 9, "itineraries": [ { "duration": "PT4H30M", "segments": [ { "departure": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-13T19:00:00" }, "arrival": { "iataCode": "KIX", "terminal": "1", "at": "2023-12-13T21:00:00" }, "carrierCode": "KE", "number": "721", "aircraft": { "code": "7M8" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H", "id": "2", "numberOfStops": 0, "blacklistedInEU": false }, { "departure": { "iataCode": "KIX", "terminal": "1", "at": "2023-12-13T22:25:00" }, "arrival": { "iataCode": "HND", "terminal": "2", "at": "2023-12-13T23:30:00" }, "carrierCode": "NH", "number": "100", "aircraft": { "code": "738" }, "operating": { "carrierCode": "NH" }, "duration": "PT1H5M", "id": "3", "numberOfStops": 0, "blacklistedInEU": false } ] }, { "duration": "PT2H50M", "segments": [ { "departure": { "iataCode": "HND", "terminal": "3", "at": "2023-12-20T02:00:00" }, "arrival": { "iataCode": "ICN", "terminal": "2", "at": "2023-12-20T04:50:00" }, "carrierCode": "KE", "number": "720", "aircraft": { "code": "32Q" }, "operating": { "carrierCode": "KE" }, "duration": "PT2H50M", "id": "10", "numberOfStops": 0, "blacklistedInEU": false } ] } ], "price": { "currency": "EUR", "total": "461.44", "base": "357.00", "fees": [ { "amount": "0.00", "type": "SUPPLIER" }, { "amount": "0.00", "type": "TICKETING" } ], "grandTotal": "461.44" }, "pricingOptions": { "fareType": [ "PUBLISHED" ], "includedCheckedBagsOnly": true }, "validatingAirlineCodes": [ "KE" ], "travelerPricings": [ { "travelerId": "1", "fareOption": "STANDARD", "travelerType": "ADULT", "price": { "currency": "EUR", "total": "461.44", "base": "357.00" }, "fareDetailsBySegment": [ { "segmentId": "2", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "Y", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "3", "cabin": "ECONOMY", "fareBasis": "YRT", "class": "K", "includedCheckedBags": { "quantity": 1 } }, { "segmentId": "10", "cabin": "ECONOMY", "fareBasis": "UKEVZRKB", "class": "U", "includedCheckedBags": { "quantity": 1 } } ] } ] } ], "dictionaries": { "locations": { "ITM": { "cityCode": "OSA", "countryCode": "JP" }, "ICN": { "cityCode": "SEL", "countryCode": "KR" }, "KIX": { "cityCode": "OSA", "countryCode": "JP" }, "UKB": { "cityCode": "OSA", "countryCode": "JP" }, "HND": { "cityCode": "TYO", "countryCode": "JP" } }, "aircraft": { "333": "AIRBUS A330-300", "738": "BOEING 737-800", "767": "BOEING 767", "788": "BOEING 787-8", "32Q": "AIRBUS A321NEO", "7M8": "BOEING 737 MAX 8" }, "currencies": { "EUR": "EURO" }, "carriers": { "JL": "JAPAN AIRLINES", "EH": "ANA WINGS", "KE": "KOREAN AIR", "NH": "ALL NIPPON AIRWAYS" } } }