Amadeus · Arazzo Workflow

Amadeus Geocode Hotels and Offers

Version 1.0.0

Resolve a city to coordinates, find hotels by geocode, then fetch live offers for the nearest one.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket InsightsArazzoWorkflows

Provider

amadeus

Workflows

geocode-hotels-and-offers
Resolve city coordinates, find nearby hotels, and get offers for the nearest.
Looks up a city's coordinates, searches hotels by geocode, and fetches live offers for the nearest hotel.
3 steps inputs: adults, checkInDate, checkOutDate, cityKeyword outputs: hotelCount, nearestHotelId, offerId
1
resolveCity
Resolve the city keyword to coordinates via the locations reference data, matching on CITY subtype.
2
hotelsByGeocode
List hotels around the resolved coordinates, ordered by distance, to get property codes.
3
getOffers
Fetch live priced offers for the nearest hotel for the requested stay dates and occupancy.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amadeus Geocode Hotels and Offers
  summary: Resolve a city to coordinates, find hotels by geocode, then fetch live offers for the nearest one.
  description: >-
    Supports a map-centred hotel search. The workflow resolves a city keyword to
    coordinates via the locations reference data, lists hotels around that
    geocode ordered by distance, then fetches live priced offers for the nearest
    hotel for the requested stay. Each request is inlined so the
    geocode-to-offers flow can be read and executed without opening the
    underlying OpenAPI descriptions.
  version: 1.0.0
sourceDescriptions:
- name: hotelsApi
  url: ../openapi/amadeus-hotels-api-openapi.yml
  type: openapi
- name: locationApi
  url: ../openapi/amadeus-location-api-openapi.yml
  type: openapi
- name: shoppingApi
  url: ../openapi/amadeus-shopping-api-openapi.yml
  type: openapi
workflows:
- workflowId: geocode-hotels-and-offers
  summary: Resolve city coordinates, find nearby hotels, and get offers for the nearest.
  description: >-
    Looks up a city's coordinates, searches hotels by geocode, and fetches live
    offers for the nearest hotel.
  inputs:
    type: object
    required:
    - cityKeyword
    - checkInDate
    - checkOutDate
    - adults
    properties:
      cityKeyword:
        type: string
        description: Free-text keyword for the city (e.g. Nice).
      checkInDate:
        type: string
        description: Check-in date in YYYY-MM-DD format.
      checkOutDate:
        type: string
        description: Check-out date in YYYY-MM-DD format.
      adults:
        type: integer
        description: Number of adult guests per room (1-9).
  steps:
  - stepId: resolveCity
    description: >-
      Resolve the city keyword to coordinates via the locations reference data,
      matching on CITY subtype.
    operationId: getAirportCitySearch
    parameters:
    - name: subType
      in: query
      value: CITY
    - name: keyword
      in: query
      value: $inputs.cityKeyword
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      latitude: $response.body#/data/0/geoCode/latitude
      longitude: $response.body#/data/0/geoCode/longitude
  - stepId: hotelsByGeocode
    description: >-
      List hotels around the resolved coordinates, ordered by distance, to get
      property codes.
    operationId: get-shopping-hotels-geocodes
    parameters:
    - name: latitude
      in: query
      value: $steps.resolveCity.outputs.latitude
    - name: longitude
      in: query
      value: $steps.resolveCity.outputs.longitude
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      nearestHotelId: $response.body#/data/0/hotelId
      hotelCount: $response.body#/meta/count
  - stepId: getOffers
    description: >-
      Fetch live priced offers for the nearest hotel for the requested stay
      dates and occupancy.
    operationId: getMultiHotelOffers
    parameters:
    - name: hotelIds
      in: query
      value: $steps.hotelsByGeocode.outputs.nearestHotelId
    - name: checkInDate
      in: query
      value: $inputs.checkInDate
    - name: checkOutDate
      in: query
      value: $inputs.checkOutDate
    - name: adults
      in: query
      value: $inputs.adults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      offerId: $response.body#/data/0/offers/0/id
  outputs:
    hotelCount: $steps.hotelsByGeocode.outputs.hotelCount
    nearestHotelId: $steps.hotelsByGeocode.outputs.nearestHotelId
    offerId: $steps.getOffers.outputs.offerId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amadeus-geocode-hotels-and-offers-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.