{"_id":"@edwincoronado/amadeus","_rev":"2-601987719b1d4448d8a0af4bd13edb7c","name":"@edwincoronado/amadeus","dist-tags":{"latest":"11.1.0-sn-beta.5"},"versions":{"11.1.0-sn-beta.4":{"name":"@edwincoronado/amadeus","version":"11.1.0-sn-beta.4","keywords":["amadeus","travel","api","apis","hotels","flights"],"author":{"name":"amadeus-developer"},"license":"MIT","_id":"@edwincoronado/amadeus@11.1.0-sn-beta.4","maintainers":[{"name":"edwincoronado","email":"edcoronado.17@gmail.com"}],"contributors":[{"name":"cbetta"},{"name":"Anthony Roux"},{"name":"Alvaro Navarro"},{"name":"Akshit Singla"},{"name":"Anna Tsolakou"},{"name":"Minji Kim"},{"name":"Gustavo Giunco Bertoldi"}],"homepage":"https://developers.amadeus.com","bugs":{"url":"https://github.com/richallanb/amadeus-node/issues"},"dist":{"shasum":"1ef41d15983fa3df2a5705308a9ba85de7872e8a","tarball":"https://registry.npmjs.org/@edwincoronado/amadeus/-/amadeus-11.1.0-sn-beta.4.tgz","fileCount":5,"integrity":"sha512-oVF/HgwhI5JdmKXx+exw1gt/CQHgWRyziSIlvCZUL5jG4y8LZq0ghBrtTuHxjOgKDEhGHUmWTEnVs+CI6xkP4A==","signatures":[{"sig":"MEQCIGy+NyD2uWT1La46okl8g6I/Fafw7CkRrIEVGs8A62X8AiBmaj00uAo1I/38mSoWiw9evrR+LASedhy6FKvKZl9ydQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":272278},"jest":{"verbose":true,"testEnvironment":"node"},"main":"dist/index.js","gitHead":"30b3b535100554daf274f56a03600ed65ddaecfd","scripts":{"docs":"documentation build src/** -f html -o docs -a undefined -a public","test":"jest spec --coverage --collectCoverageFrom=src/**/*.js","build":"patch-package && rollup -c rollup.config.js","console":"node -r ./lib/amadeus.js","predocs":"npm run lint:docs","pretest":"eslint spec","docs:dev":"npm run docs:serve && npm run docs:watch","lint:src":"eslint src","lint:docs":"documentation lint src/**","docs:serve":"open docs/","docs:watch":"watch 'npm run docs' src","test:watch":"watch 'npm test' src spec","build:watch":"watch 'npm run build' src","prepublishOnly":"npm run build"},"_npmUser":{"name":"edwincoronado","email":"edcoronado.17@gmail.com"},"repository":{"url":"git+https://github.com/richallanb/amadeus-node.git","type":"git"},"_npmVersion":"9.8.1","description":"Node library for the Amadeus travel APIs with ServiceNow compatibility","directories":{},"_nodeVersion":"22.17.0","dependencies":{"qs":"^6.11.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.8.0","merge":"^2.1.1","watch":"^1.0.2","eslint":"^4.16.0","rollup":"^4.34.8","@babel/cli":"^7.18.6","@babel/core":"^7.18.6","documentation":"^13.2.5","patch-package":"^8.0.0","babel-preset-env":"^1.7.0","@babel/preset-env":"^7.18.6","@rollup/plugin-json":"6.1.0","@rollup/plugin-commonjs":"28.0.2","@rollup/plugin-node-resolve":"16.0.0","babel-plugin-add-module-exports":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/amadeus_11.1.0-sn-beta.4_1761106513323_0.07911199133515878","host":"s3://npm-registry-packages-npm-production"}},"11.1.0-sn-beta.5":{"name":"@edwincoronado/amadeus","version":"11.1.0-sn-beta.5","description":"Node library for the Amadeus travel APIs with ServiceNow compatibility","main":"dist/index.js","scripts":{"build":"ncc build src/amadeus.js -o dist","build:watch":"watch 'npm run build' src","prepublishOnly":"npm run build","pretest":"eslint spec","test":"jest spec --coverage --collectCoverageFrom=src/**/*.js","test:watch":"watch 'npm test' src spec","predocs":"npm run lint:docs","docs":"documentation build src/** -f html -o docs -a undefined -a public","docs:watch":"watch 'npm run docs' src","docs:serve":"open docs/","docs:dev":"npm run docs:serve && npm run docs:watch","lint:src":"eslint src","lint:docs":"documentation lint src/**","console":"node -r ./lib/amadeus.js"},"jest":{"verbose":true,"testEnvironment":"node"},"repository":{"type":"git","url":"git+https://github.com/richallanb/amadeus-node.git"},"keywords":["amadeus","travel","api","apis","hotels","flights"],"author":{"name":"amadeus-developer"},"license":"MIT","bugs":{"url":"https://github.com/richallanb/amadeus-node/issues"},"homepage":"https://developers.amadeus.com","contributors":[{"name":"cbetta"},{"name":"Anthony Roux"},{"name":"Alvaro Navarro"},{"name":"Akshit Singla"},{"name":"Anna Tsolakou"},{"name":"Minji Kim"},{"name":"Gustavo Giunco Bertoldi"}],"devDependencies":{"@babel/cli":"^7.18.6","@babel/core":"^7.18.6","@babel/preset-env":"^7.18.6","babel-plugin-add-module-exports":"^1.0.4","babel-preset-env":"^1.7.0","documentation":"^13.2.5","eslint":"^4.16.0","jest":"^24.8.0","merge":"^2.1.1","@vercel/ncc":"0.38.4","patch-package":"^8.0.0","watch":"^1.0.2"},"dependencies":{"qs":"^6.11.0"},"_id":"@edwincoronado/amadeus@11.1.0-sn-beta.5","gitHead":"7d9902451e1e38ce74cec1390e839a519f40c47f","_nodeVersion":"22.17.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-WZ8wlrHdOybOGYHDZtwq+ni885xcdmI4vknrkPrJ6ecHepSnTi/SXzc7nKVKQ04L2v4JOR3IS0GN/4WUJ7EIow==","shasum":"6ea101482eec99bb8aedb9b57dcc23b3b1d11f3a","tarball":"https://registry.npmjs.org/@edwincoronado/amadeus/-/amadeus-11.1.0-sn-beta.5.tgz","fileCount":5,"unpackedSize":278554,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGGPs9SEUxYl/wcFUBDknEYnHrnsBpsw0Ss1IxgGI/fyAiEAko9zTYAUDxQ/Xk3CAK8AE4ouazrVGIBudp01Xu7uAjc="}]},"_npmUser":{"name":"edwincoronado","email":"edcoronado.17@gmail.com"},"directories":{},"maintainers":[{"name":"edwincoronado","email":"edcoronado.17@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/amadeus_11.1.0-sn-beta.5_1761108138164_0.5141998882130432"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-22T04:15:13.239Z","modified":"2025-10-22T04:42:18.542Z","11.1.0-sn-beta.4":"2025-10-22T04:15:13.522Z","11.1.0-sn-beta.5":"2025-10-22T04:42:18.343Z"},"bugs":{"url":"https://github.com/richallanb/amadeus-node/issues"},"author":{"name":"amadeus-developer"},"license":"MIT","homepage":"https://developers.amadeus.com","keywords":["amadeus","travel","api","apis","hotels","flights"],"repository":{"type":"git","url":"git+https://github.com/richallanb/amadeus-node.git"},"description":"Node library for the Amadeus travel APIs with ServiceNow compatibility","contributors":[{"name":"cbetta"},{"name":"Anthony Roux"},{"name":"Alvaro Navarro"},{"name":"Akshit Singla"},{"name":"Anna Tsolakou"},{"name":"Minji Kim"},{"name":"Gustavo Giunco Bertoldi"}],"maintainers":[{"name":"edwincoronado","email":"edcoronado.17@gmail.com"}],"readme":"# Amadeus Node SDK\n\n[![Module Version](https://badge.fury.io/js/amadeus.svg)](https://www.npmjs.com/package/amadeus)\n[![Build and Deploy](https://github.com/amadeus4dev/amadeus-node/actions/workflows/build.yml/badge.svg)](https://github.com/amadeus4dev/amadeus-node/actions/workflows/build.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/5accb4b8a41e4e3fd1da/maintainability)](https://codeclimate.com/github/amadeus4dev/amadeus-node/maintainability)\n[![Dependencies](.github/images/dependencies.svg)](https://www.npmjs.com/package/amadeus?activeTab=dependencies)\n[![Discord](https://img.shields.io/discord/696822960023011329?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/cVrFBqx)\n\nAmadeus provides a rich set of APIs for the travel industry. For more details, check out the [Amadeus for Developers Portal](https://developers.amadeus.com) or the [SDK class reference](https://amadeus4dev.github.io/amadeus-node/).\n\n## Installation\n\nThis module has been tested using [Node LTS versions](https://nodejs.org/en/about/releases/). You can install it using Yarn or NPM.\n\n```sh\nnpm install amadeus --save\n```\n\n## Getting Started\n\nTo make your first API call, you will need to [register](https://developers.amadeus.com/register) for an Amadeus Developer Account and [set up your first application](https://developers.amadeus.com/my-apps).\n\n```js\nconst Amadeus = require('amadeus');\n\nconst amadeus = new Amadeus({\n  clientId: 'REPLACE_BY_YOUR_API_KEY',\n  clientSecret: 'REPLACE_BY_YOUR_API_SECRET'\n});\n\namadeus.shopping.flightOffersSearch.get({\n    originLocationCode: 'SYD',\n    destinationLocationCode: 'BKK',\n    departureDate: '2022-06-01',\n    adults: '2'\n}).then(function(response){\n  console.log(response.data);\n}).catch(function(responseError){\n  console.log(responseError.code);\n});\n```\n\n## Examples\n\nYou can find all the endpoints in self-contained [code examples](https://github.com/amadeus4dev/amadeus-code-examples).\n\n## Initialization\n\nThe client can be initialized directly.\n\n```js\n// Initialize using parameters\nconst amadeus = new Amadeus({\n  clientId: 'REPLACE_BY_YOUR_API_KEY',\n  clientSecret: 'REPLACE_BY_YOUR_API_SECRET'\n});\n```\n\nAlternatively, it can be initialized without any parameters if the environment variables `AMADEUS_CLIENT_ID` and `AMADEUS_CLIENT_SECRET` are present.\n\n```js\nconst amadeus = new Amadeus();\n```\n\nYour credentials can be found on the [Amadeus dashboard](https://developers.amadeus.com/my-apps).\n\nBy default, the SDK environment is set to `test` environment. To switch to a `production` (pay-as-you-go) environment, please switch the hostname as follows:\n\n```js\nconst amadeus = new Amadeus({\n  hostname: 'production'\n});\n```\n\n## Documentation\n\nAmadeus has a large set of APIs, and our documentation is here to get you started today. Head over to our [reference documentation](https://amadeus4dev.github.io/amadeus-node/) for in-depth information about every SDK method, its arguments and return types.\n\n\n  * [Get Started](https://amadeus4dev.github.io/amadeus-node/)\n  * [Find an Airport](https://amadeus4dev.github.io/amadeus-node/#airports)\n  * [Find a Flight](https://amadeus4dev.github.io/amadeus-node/#flightofferssearch)\n  * [Get Flight Inspiration](https://amadeus4dev.github.io/amadeus-node/#flightdestinations)\n\n## Making API calls\n\nThis library conveniently maps every API path to a similar path. For example, `GET /v2/reference-data/urls/checkin-links?airlineCode=BA` would be:\n\n```js\namadeus.referenceData.urls.checkinLinks.get({ airlineCode: 'BA' });\n```\n\nSimilarly, to select a resource by ID, you can pass in the ID to the **singular** path. For example,  `GET /v1/shopping/hotelOffers/123/` would be:\n\n```js\namadeus.shopping.hotelOffer('123').get(...);\n```\n\nYou can make any arbitrary `GET` API call directly with the `.client.get` method as well:\n\n```js\namadeus.client.get('/v2/reference-data/urls/checkin-links', { airlineCode: 'BA' });\n```\n\nOr, with a `POST` using `.client.post` method:\n```js\namadeus.client.post('/v1/shopping/flight-offers/pricing', { data });\n```\n\n## Promises\n\nEvery API call returns a `Promise` that either resolves or rejects.\n\nEvery resolved API call returns a `Response` object containing a `body` attribute with the raw response. If the API call contained a JSON response, it will parse the JSON into the `result` attribute. If this data contains a `data` key, that will be made available in `data` attribute.\n\nFor a failed API call, it returns a `ResponseError`object containing the (parsed or unparsed) response, the request, and an error code.\n\n```js\namadeus.referenceData.urls.checkinLinks.get({\n  airlineCode: 'BA'\n}).then(function(response){\n  console.log(response.body);   //=> The raw body\n  console.log(response.result); //=> The fully parsed result\n  console.log(response.data);   //=> The data attribute taken from the result\n}).catch(function(error){\n  console.log(error.response); //=> The response object with (un)parsed data\n  console.log(error.response.request); //=> The details of the request made\n  console.log(error.code); //=> A unique error code to identify the type of error\n});\n```\n\n## Pagination\n\nIf an API endpoint supports pagination, the other pages are available under the `.next`, `.previous`, `.last` and `.first` methods.\n\n```js\namadeus.referenceData.locations.get({\n  keyword: 'LON',\n  subType: 'AIRPORT,CITY'\n}).then(function(response){\n  console.log(response.data); // first page\n  return amadeus.next(response);\n}).then(function(nextResponse){\n  console.log(nextResponse.data); // second page\n});\n```\n\nIf a page is not available, the response will resolve to `null`.\n\n## Logging & Debugging\n\nThe SDK makes it easy to add your own logger that is compatible with the default `console`.\n\n```js\nconst amadeus = new Amadeus({\n  clientId: 'REPLACE_BY_YOUR_API_KEY',\n  clientSecret: 'REPLACE_BY_YOUR_API_SECRET',\n  logger: new MyConsole()\n});\n```\n\nAdditionally, to enable more verbose logging, you can set the appropriate level on your own logger. The easiest way would be to enable debugging via a parameter during initialization, or using the `AMADEUS_LOG_LEVEL` environment variable. The available options are `silent` (default), `warn`, and `debug`.\n\n```js\nconst amadeus = new Amadeus({\n  clientId: 'REPLACE_BY_YOUR_API_KEY',\n  clientSecret: 'REPLACE_BY_YOUR_API_SECRET',\n  logLevel: 'debug'\n});\n```\n\n## List of supported endpoints\n\n```js\n//Airport Routes \namadeus.airport.directDestinations.get({\n     departureAirportCode: 'CDG',\n})\n\n//Airline Routes\n//find all destinations served by a given airline\namadeus.airline.destinations.get({\n     airlineCode: 'BA',\n })\n\n// Flight Inspiration Search\namadeus.shopping.flightDestinations.get({\n  origin : 'MAD'\n})\n\n// Flight Cheapest Date Search\namadeus.shopping.flightDates.get({\n  origin : 'MAD',\n  destination : 'MUC'\n})\n\n// Flight Offers Search GET\namadeus.shopping.flightOffersSearch.get({\n  originLocationCode: 'SYD',\n  destinationLocationCode: 'BKK',\n  departureDate: '2022-11-01',\n  adults: '2'\n})\n\n// Flight Offers Search POST\n// A full example can be found at https://github.com/amadeus4dev/amadeus-code-examples\namadeus.shopping.flightOffersSearch.post(body)\n\n// Flight Offers Price\namadeus.shopping.flightOffersSearch.get({\n    originLocationCode: 'SYD',\n    destinationLocationCode: 'BKK',\n    departureDate: '2022-11-01',\n    adults: '1'\n}).then(function(response){\n    return amadeus.shopping.flightOffers.pricing.post(\n      {\n        'data': {\n          'type': 'flight-offers-pricing',\n          'flightOffers': [response.data[0]]\n        }\n      }\n    )\n}).then(function(response){\n    console.log(response.data);\n}).catch(function(responseError){\n    console.log(responseError);\n});\n\n// Flight Offers Price with additional parameters\n// for example: check additional baggage options \namadeus.shopping.flightOffers.pricing.post(body ,{include: 'bags'});\n\n// Flight Create Orders\n// To book the flight-offer(s) returned by the Flight Offers Price\n// and create a flight-order with travelers' information.\n// A full example can be found at https://git.io/JtnYo\namadeus.booking.flightOrders.post(\n  {\n    'type': 'flight-order',\n    'flightOffers': [priced-offers],\n    'travelers': []\n  }\n);\n\n// Retrieve flight order with ID 'XXX'. This ID comes from the\n// Flight Create Orders API, which is a temporary ID in test environment.\namadeus.booking.flightOrder('XXX').get()\n\n// Cancel flight order with ID 'XXX'. This ID comes from the\n// Flight Create Orders API, which is a temporary ID in test environment.\namadeus.booking.flightOrder('XXX').delete()\n\n// Flight SeatMap Display\n// To retrieve the seat map of each flight included\n// in flight offers for MAD-NYC flight on 2021-08-01\namadeus.shopping.flightOffersSearch.get({\n  originLocationCode: 'SYD',\n  destinationLocationCode: 'BKK',\n  departureDate: '2022-11-01',\n  adults: '1'\n}).then(function(response){\n    return amadeus.shopping.seatmaps.post(\n      {\n        'data': [response.data[0]]\n      }\n    );\n}).then(function(response){\n    console.log(response.data);\n}).catch(function(responseError){\n    console.log(responseError);\n});\n// To retrieve the seat map for flight order with ID 'XXX'\namadeus.shopping.seatmaps.get({\n  'flight-orderId': 'XXX'\n});\n\n// Flight Availabilities Search\namadeus.shopping.availability.flightAvailabilities.post(body);\n\n// Branded Fares Upsell \namadeus.shopping.flightOffers.upselling.post(body);\n\n// Flight Choice Prediction\namadeus.shopping.flightOffersSearch.get({\n    originLocationCode: 'SYD',\n    destinationLocationCode: 'BKK',\n    departureDate: '2022-11-01',\n    adults: '2'\n}).then(function(response){\n    return amadeus.shopping.flightOffers.prediction.post(response);\n}).then(function(response){\n    console.log(response.data);\n}).catch(function(responseError){\n    console.log(responseError);\n});\n\n// Flight Checkin Links\namadeus.referenceData.urls.checkinLinks.get({\n  airlineCode : 'BA'\n})\n\n// Airline Code Lookup\namadeus.referenceData.airlines.get({\n  airlineCodes : 'U2'\n})\n\n// Airports and City Search (autocomplete)\n// Find all the cities and airports starting by 'LON'\namadeus.referenceData.locations.get({\n  keyword : 'LON',\n  subType : Amadeus.location.any\n})\n\n// Get a specific city or airport based on its id\namadeus.referenceData.location('ALHR').get()\n\n// Airport Nearest Relevant Airport (for London)\namadeus.referenceData.locations.airports.get({\n  longitude : 0.1278,\n  latitude  : 51.5074\n})\n\n// Flight Most Booked Destinations\namadeus.travel.analytics.airTraffic.booked.get({\n  originCityCode : 'MAD',\n  period : '2017-08'\n}\n\n// Flight Most Traveled Destinations\namadeus.travel.analytics.airTraffic.traveled.get({\n  originCityCode : 'MAD',\n  period : '2017-01'\n})\n\n// Flight Busiest Traveling Period\namadeus.travel.analytics.airTraffic.busiestPeriod.get({\n  cityCode: 'MAD',\n  period: '2017',\n  direction: Amadeus.direction.arriving\n})\n\n// City Search API\n// finds cities that match a specific word or string of letters. \n// Return a list of cities matching a keyword 'Paris'\namadeus.referenceData.locations.cities.get({\n  keyword: 'Paris'\n})\n\n//Hotel Name Autocomplete API\n//Autocomplete a hotel search field\namadeus.referenceData.locations.hotel.get({\n     keyword: 'PARI',\n     subType: 'HOTEL_GDS'\n})\n\n//Hotel List API \n//Get list of hotels by city code\namadeus.referenceData.locations.hotels.byCity.get({\n      cityCode: 'PAR'\n    })\n\n//Get List of hotels by Geocode\namadeus.referenceData.locations.hotels.byGeocode.get({\n      latitude: 48.83152,\n      longitude: 2.24691\n    })\n\n//Get List of hotels by hotelIds\namadeus.referenceData.locations.hotels.byHotels.get({\n      hotelIds: 'ACPAR245'\n    })\n\n// Hotel Search API V3\n// Get list of available offers in specific hotels by hotel ids\namadeus.shopping.hotelOffersSearch.get({\n    hotelIds: 'RTPAR001',\n    adults: '2'\n})\n// Check offer conditions of a specific offer id\namadeus.shopping.hotelOfferSearch('XXX').get()\n\n// Hotel Booking API v2\namadeus.booking.hotelOrders.post(\n  {\n    'data': {\n        'type': 'hotel-order',\n        'guests': [],\n        'travelAgent': {},\n        'roomAssociations': [],\n        'payment': {}\n    }\n  }\n)\n\n\n// Hotel Booking API v1\namadeus.booking.hotelBookings.post(\n  {\n    'data': {\n      'offerId': 'XXXX',\n      'guests': [],\n      'payments': [],\n      'rooms': []\n    }\n  }\n)\n\n// On-Demand Flight Status\n// What's the current status of my flight?\namadeus.schedule.flights.get({\n  carrierCode: 'AZ',\n  flightNumber: '319',\n  scheduledDepartureDate: '2021-03-13'\n})\n\n\n// Points of Interest\n// What are the popular places in Barcelona (based a geo location and a radius)\namadeus.referenceData.locations.pointsOfInterest.get({\n  latitude : 41.397158,\n  longitude : 2.160873\n})\n\n// What are the popular places in Barcelona? (based on a square)\namadeus.referenceData.locations.pointsOfInterest.bySquare.get({\n  north: 41.397158,\n  west: 2.160873,\n  south: 41.394582,\n  east: 2.177181\n})\n\n// Extract the information about point of interest with ID '9CB40CB5D0'\namadeus.referenceData.locations.pointOfInterest('9CB40CB5D0').get()\n\n// Location Score\namadeus.location.analytics.categoryRatedAreas.get({\n  latitude : 41.397158,\n  longitude : 2.160873\n})\n\n// Tours and Activities\n// What are the best tours and activities in Barcelona?\namadeus.shopping.activities.get({\n  latitude: 41.397158,\n  longitude: 2.160873\n})\n\n// What are the best tours and activities in Barcelona? (based on a Square)\namadeus.shopping.activities.bySquare.get({\n  north: 41.397158,\n  west: 2.160873,\n  south: 41.394582,\n  east: 2.177181\n})\n\n// Extract the information about an activity with ID '56777'\namadeus.shopping.activity('56777').get()\n\n// Hotel Ratings\n// Get Sentiment Analysis of reviews about Holiday Inn Paris Notre Dame.\namadeus.eReputation.hotelSentiments.get({\n  hotelIds: 'XKPARC12'\n})\n\n// Trip Purpose Prediction\n// Forecast traveler purpose, Business or Leisure, together with the probability in the context of search & shopping.\namadeus.travel.predictions.tripPurpose.get({\n  originLocationCode: 'NYC',\n  destinationLocationCode: 'MAD',\n  departureDate: '2021-04-01',\n  returnDate: '2021-04-08'\n})\n\n// Flight Delay Prediction\n// This machine learning API is based on a prediction model that takes the input of the user - time, carrier, airport and aircraft information;\n// and predict the segment where the flight is likely to lay.\namadeus.travel.predictions.flightDelay.get({\n  originLocationCode: 'BRU',\n  destinationLocationCode: 'FRA',\n  departureDate: '2020-01-14',\n  departureTime: '11:05:00',\n  arrivalDate: '2020-01-14',\n  arrivalTime: '12:10:00',\n  aircraftCode: '32A',\n  carrierCode: 'LH',\n  flightNumber: '1009',\n  duration: 'PT1H05M'\n})\n\n// Airport On-time Performance\n// Get the percentage of on-time flight departures from JFK\namadeus.airport.predictions.onTime.get({\n  airportCode: 'JFK',\n  date: '2022-18-01'\n})\n\n// Travel Recommendations\namadeus.referenceData.recommendedLocations.get({\n  cityCodes: 'PAR',\n  travelerCountryCode: 'FR'\n})\n\n// Flight Price Analysis\namadeus.analytics.itineraryPriceMetrics.get({\n   originIataCode: 'MAD',\n   destinationIataCode: 'CDG',\n   departureDate: '2022-03-13',\n })\n\n//Cars & Transfers APIs\n// Transfer Search API: Search Transfer\namadeus.shopping.transferOffers.post(body);\n\n// Transfer Book API: Book a transfer based on the offer id\namadeus.ordering.transferOrders.post(body, offerId='2094123123');\n\n// Transfer Management API: Cancel a transfer based on the order id & confirmation number\namadeus.ordering.transferOrder('XXX').transfers.cancellation.post({}, confirmNbr='12345');\n\n```\n\n## Development & Contributing\n\nWant to contribute? Read our [Contributors Guide](.github/CONTRIBUTING.md) for guidance on installing and running this code in a development environment.\n\n## License\n\nThis library is released under the [MIT License](LICENSE).\n\n## Help\n\nYou can find us on [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) or join our developer community on\n[Discord](https://discord.gg/cVrFBqx).\n\n[npmjs]: https://www.npmjs.com/package/amadeus\n","readmeFilename":"README.md"}