Usage

To use Amadeus Python Library in a project:

import amadeus

Flights

https://sandbox.amadeus.com/apis#flights

Flight Inspiration Search API:

from amadeus import Flights

flights = Flights('<Your API Key>')
resp = flights.inspiration_search(
    origin='BKK',
    departure_date="2015-11-25--2015-11-30",
    max_price=200)

Extensive Flight Search API:

from amadeus import Flights

flights = Flights('<Your API Key>')
resp = flights.extensive_search(
    origin='NCE',
    destination='LAS',
    departure_date='2015-11-25--2015-11-30',
    duration='4--10')

Low Fare Search API:

from amadeus import Flights

flights = Flights('<Your API Key>')
resp = flights.low_fare_search(
    origin='NCE',
    destination='LAS',
    departure_date='2015-11-25',
    return_date='2015-11-30',
    duration='4--10')

Rail and Train

Rail Station Auto Complete:

from amadeus import RailStations
rails = RailStations('<Your API Key>')
resp = rails.auto_complete(term='VENT')

Rail Station Get info:

from amadeus import RailStations
rails = RailStations('<Your API Key>')
resp = rails.get_info(id=8301700)

CO2 Emissions

https://sandbox.amadeus.com/content/CO2

Get emissions data:

from amadeus import CO2Emissions

co2 = CO2Emissions('<Your API Key>')
resp = co2.get_data(
    origin='PAR',
    destination='NYC')