<filename>hotel_search/v2/get/hotel_offers/Python SDK/hotel_search.py
# Install the Python library from https://pypi.org/project/amadeus
from amadeus import Client, ResponseError

amadeus = Client(
    client_id='YOUR_AMADEUS_API_KEY',
    client_secret='YOUR_AMADEUS_API_SECRET'
)

try:
    # Get list of Hotels by city code
    hotels_by_city = amadeus.shopping.hotel_offers.get(cityCode='PAR')
    print(hotels_by_city.data)
except ResponseError as error:
    raise error

<filename>hotel_search/v2/get/hotel_offers/Python SDK/hotel_search.py
# Install the Python library from https://pypi.org/project/amadeus
from amadeus import Client, ResponseError

amadeus = Client(
    client_id='YOUR_AMADEUS_API_KEY',
    client_secret='YOUR_AMADEUS_API_SECRET'
)

try:
    # Get list of Hotels by city code
    hotels_by_city = amadeus.shopping.hotel_offers.get(cityCode='PAR')
    print(hotels_by_city.data)
except ResponseError as error:
    raise error

# Install the Python library from https://pypi.org/project/amadeus # Get list of Hotels by city code