Afonsoft.Amadeus 2.1.0

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Afonsoft.Amadeus --version 2.1.0
NuGet\Install-Package Afonsoft.Amadeus -Version 2.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Afonsoft.Amadeus" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Afonsoft.Amadeus --version 2.1.0
#r "nuget: Afonsoft.Amadeus, 2.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Afonsoft.Amadeus as a Cake Addin
#addin nuget:?package=Afonsoft.Amadeus&version=2.1.0

// Install Afonsoft.Amadeus as a Cake Tool
#tool nuget:?package=Afonsoft.Amadeus&version=2.1.0

Amadeus CSharp SDK

Amadeus provides a set of APIs for the travel industry. Flights, Hotels, Locations and more.

For more details see the on

Getting Started

To send make your first API call you will need to register for an Amadeus Developer Account and set up your first application.

using Afonsoft.Amadeus.Amadeus;
using Afonsoft.Amadeus.Params;

using Afonsoft.Amadeus.exceptions.ResponseException;
using Afonsoft.Amadeus.referenceData.Locations;
using Afonsoft.Amadeus.resources.Location;

public class AmadeusExample {
  public static void main(String[] args)  {
    Amadeus amadeus = Amadeus

    Location[] locations = amadeus.referenceData.locations.get(Params
      .with("keyword", "LON")
      .and("subType", Locations.ANY));


The client can be initialized directly.

//Initialize using parameters
Amadeus amadeus = Amadeus

Alternatively it can be initialized without any parameters if the environment variables AMADEUS_CLIENT_ID and AMADEUS_CLIENT_SECRET are present.

Your credentials can be found on the Amadeus dashboard. Sign up for an account today.

By default the environment for the SDK is the test environment. To switch to a production (paid-for) environment please switch the hostname


Amadeus has a large set of APIs, and our documentation is here to get you started today. Head over to our Reference documentation for in-depth information about every SDK method, its arguments and return types.

Making API calls

This library conveniently maps every API path to a similar path.

For example, GET /v2/reference-data/urls/checkin-links?airlineCode=BA would be:

amadeus.referenceData.urls.checkinLinks.get(Params.with("airlineCode", "BA"));

Similarly, to select a resource by ID, you can pass in the ID to the singular path.

For example, GET /v2/shopping/hotel-offers/XXX would be:


You can make any arbitrary API call as well directly with the .get method. Keep in mind, this returns a raw Resource

Resource resource = amadeus.get('/v2/reference-data/urls/checkin-links',
  Params.with("airlineCode", "BA"));



Every successful API call returns a Resource object. The underlying Resource with the raw available.

Location[] locations = amadeus.referenceData.locations.get(Params
  .with("keyword", "LON")
  .and("subType", Locations.ANY));

 // The raw response, as a string


If an API endpoint supports pagination, the other pages are available under the .next, .previous, .last and .first methods.

Location[] locations = amadeus.referenceData.locations.get(Params
  .with("keyword", "LON")
  .and("subType", Locations.ANY));

// Fetches the next page
Location[] locations = (Location[])[0]);

If a page is not available, the method will return null.

Logging & Debugging

The SDK makes it easy to add your own logger.

Additionally, to enable more verbose logging, you can set the appropriate level on your own logger, though the easiest way would be to enable debugging via a parameter on initialization, or using the AMADEUS_LOG_LEVEL environment variable.


This library is released under the MIT License.


Our developer support team is here to help you. You can find us on StackOverflow and email.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.2 1,078 7/12/2019
2.1.1 503 7/5/2019
2.1.0 507 7/2/2019

Amadeus CSharp SDK - C# library for the Amadeus Self-Service travel APIs
Amadeus provides a set of APIs for the travel industry. Flights, Hotels, Locations and more.