Skip to content
Navigation

DiscoverHotels

GET
https://api.nicer.travel/booking/hotels

Public hotel API. Send x-nicer-company when an optional verified Cognito token does not identify one company. No trip or company-registration lookup is required. Accept selects JSON or SSE on this resource; repeat the same criteria URL after partial results. Search and details run in separate Lambdas. Hotel path identifiers are hotelReference values.

Authorization

  • companyHeader
    optional
    API key in header

    x-nicer-company: <token>

  • discoveryBearer
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Query parameters

  • checkIn
    string
    required
    format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
  • checkOut
    string
    required
    format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
  • currency
    optional
    string
    maxLength: 3 · minLength: 3 · default: "USD"
  • rooms
    optional
    string

    Occupancy per room, not the room count. Format adults[:childAge,childAge];nextRoom. One room for 2 adults is '2'; two rooms for 2 adults each is '2;2'; 2 adults and a child age 7 is '2:7'. Sabre multi-room rates require the same adult and child counts per room. Search mixed occupancies separately; each result then covers only its requested room.

    pattern: ^[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?(?:;[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?){0,7}$ · default: "2"
  • lat
    optional
    number
    maximum: 90 · minimum: -90
  • lng
    optional
    number
    maximum: 180 · minimum: -180
  • radius
    optional
    number
    maximum: 200
  • placeId
    optional
    string
    minLength: 1
  • name
    optional
    string

    Focused property or landmark name. When supplied, type is required: use type='hotel' for a hotel or type='landmark' for a nearby landmark.

    maxLength: 200
  • type
    optional
    hotel
    or
    landmark

    Required together with name. Use 'hotel' for a named property and 'landmark' for proximity to a named landmark.

  • sort
    optional
    distance
    or
    price
    or
    -price
    or
    recommended
  • rateCodes
    optional
    string
  • amenities
    optional
    string
  • chainNames
    optional
    string
  • hotelReferences
    optional
    string

    Comma-separated hotelReference values returned by prior hotel searches. Use this filter to compare the same known property across dates or occupancies; never invent references.

  • maximumDistanceKm
    optional
    number
  • maximumPriceMinor
    optional
    number
  • minimumPriceMinor
    optional
    number
  • minimumStars
    optional
    number
  • maximumStars
    optional
    number
  • breakfastIncludedOnly
    optional
    true
    or
    false
  • refundableOnly
    optional
    true
    or
    false
  • commissionableOnly
    optional
    true
    or
    false
  • requireRateCodeMatch
    optional
    true
    or
    false
  • expand
    optional
    string
  • page
    optional
    integer
    maximum: 10000 · minimum: 1 · default: 1
  • waitMs
    optional
    integer
    maximum: 55000 · minimum: 0 · default: 55000
  • size
    optional
    integer
    maximum: 100 · minimum: 1
  • minResults
    optional
    integer
    maximum: 100 · minimum: 0

Header parameters

  • x-nicer-company
    optional
    string

    Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.

  • Accept
    optional
    application/json
    or
    text/event-stream

Returns

200

JSON snapshot or SSE frames (the schema describes each frame's JSON data).

JSON
  • page
    object
    required
    • hasMore
      boolean
      required
    • number
      integer
      required
      maximum: 9007199254740991
    • size
      integer
      required
      maximum: 100 · minimum: 1
    • total
      object
      required
      • exact
        boolean
        required
      • value
        integer
        required
        maximum: 9007199254740991 · minimum: 0
  • pollAfterMs
    required

    Any of the following:

    • integer
    • null
  • progress
    object
    required
    • failed
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • live
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • pending
      integer
      required
      maximum: 9007199254740991 · minimum: 0
  • status
    COMPLETE
    or
    FAILED
    or
    PARTIAL
    or
    PENDING
    required
  • filters
    object
    required
    • applied
      object
      required
      • amenities
        optional
        array of
        string
        minLength: 1
      • breakfastIncludedOnly
        optional
        boolean
      • chainNames
        optional
        array of
        string
        minLength: 1
      • commissionableOnly
        optional
        boolean
      • hotelReferences
        optional
        array of
        string
        minLength: 1
      • maximumDistanceKm
        optional
        number
        maximum: 500
      • maximumPriceMinor
        optional
        integer
        maximum: 9007199254740991
      • maximumStars
        optional
        number
        maximum: 5 · minimum: 0
      • minimumPriceMinor
        optional
        integer
        maximum: 9007199254740991 · minimum: 0
      • minimumStars
        optional
        number
        maximum: 5 · minimum: 0
      • requireRateCodeMatch
        optional
        boolean
      • rateCodes
        optional
        array of
        string
        minLength: 1
      • refundableOnly
        optional
        boolean
    • available
      object
      required
      • amenities
        array of
        string
        required
        minLength: 1
      • breakfastIncludedCount
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • chainNames
        array of
        string
        required
        minLength: 1
      • commission
        required

        Any of the following:

        • object
          • commissionableCount
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • grossAmountRanges
            array of
            object
            required
            • currency
              string
              required
              pattern: ^[A-Z]{3}$
            • maximumAmountMinor
              integer
              required
              maximum: 9007199254740991 · minimum: 0
            • minimumAmountMinor
              integer
              required
              maximum: 9007199254740991 · minimum: 0
        • null
      • priceRanges
        array of
        object
        required
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • maximumAmountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • minimumAmountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
      • rateCodes
        array of
        string
        required
        minLength: 1
      • ratings
        array of
        number
        required
        maximum: 5 · minimum: 0
      • refundableCount
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • distanceKm
        required

        Any of the following:

        • object
          • maximum
            number
            required
            minimum: 0
          • minimum
            number
            required
            minimum: 0
        • null
  • items
    array of
    object
    required
    • address
      required

      Any of the following:

      • string
      • null
    • amenities
      array of
      string
      required
      minLength: 1
    • chainName
      required

      Any of the following:

      • string
      • null
    • city
      required

      Any of the following:

      • string
      • null
    • commission
      required

      Any of the following:

      • EstimatedCommission
        • grossAmount
          required

          Any of the following:

          • Money
          • null
        • rateBasisPoints
          required

          Any of the following:

          • integer
          • null
        • source
          NICER_PRICE_ADJUSTMENT
          or
          PROVIDER_RATE
          required
      • null
    • hotelReference
      string
      required
      minLength: 1
    • countryCode
      required

      Any of the following:

      • CountryCode
      • null
    • distanceKm
      required

      Any of the following:

      • number
      • null
    • images
      array of
      object
      required
      • source
        string
        required
      • url
        string
        required
        format: uri
    • latitude
      number
      required
      maximum: 90 · minimum: -90
    • longitude
      number
      required
      maximum: 180 · minimum: -180
    • name
      string
      required
      minLength: 1
    • nightCount
      integer
      required
      maximum: 9007199254740991
    • price
      object
      required
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • averageNightlyMinor
        required

        Any of the following:

        • integer
        • null
      • nightly
        array of
        object
        required
        • breakdown
          object
          required
          • baseMinor
            required

            Any of the following:

            • integer
            • null
          • discountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • nicerAdjustmentMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • supplierFeesMinor
            required

            Any of the following:

            • integer
            • null
          • taxesMinor
            required

            Any of the following:

            • integer
            • null
        • date
          string
          required
          format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
    • starRating
      required

      Any of the following:

      • number
      • null
    • linkedHotelReferences
      optional
      array of
      string
      minLength: 1
    • displayPrice
      optional
      object
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • averageNightlyMinor
        required

        Any of the following:

        • integer
        • null
      • nightly
        array of
        object
        required
        • breakdown
          object
          required
          • baseMinor
            required

            Any of the following:

            • integer
            • null
          • discountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • nicerAdjustmentMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • supplierFeesMinor
            required

            Any of the following:

            • integer
            • null
          • taxesMinor
            required

            Any of the following:

            • integer
            • null
        • date
          string
          required
          format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
    • displayCommission
      optional
      object
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
    • programmeCodes
      optional
      array of
      string
      minLength: 1
    • rateCodes
      optional
      array of
      string
      minLength: 1
  • focus
    optional
    object
    • name
      string
      required
      maxLength: 200 · minLength: 1
    • type
      HOTEL
      or
      POINT_OF_INTEREST
      required
    • hotelReference
      required

      Any of the following:

      • string
      • null
    • status
      SEARCHING
      or
      AVAILABLE
      or
      UNAVAILABLE
      or
      INCOMPLETE
      required
  • pins
    optional
    array of
    object
    • hotelReference
      string
      required
      minLength: 1
    • imageUrl
      required

      Any of the following:

      • string
      • null
    • latitude
      number
      required
      maximum: 90 · minimum: -90
    • longitude
      number
      required
      maximum: 180 · minimum: -180
    • name
      string
      required
      minLength: 1
    • price
      object
      required
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • averageNightlyMinor
        required

        Any of the following:

        • integer
        • null
      • nightly
        array of
        object
        required
        • breakdown
          object
          required
          • baseMinor
            required

            Any of the following:

            • integer
            • null
          • discountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • nicerAdjustmentMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • supplierFeesMinor
            required

            Any of the following:

            • integer
            • null
          • taxesMinor
            required

            Any of the following:

            • integer
            • null
        • date
          string
          required
          format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
    • selected
      boolean
      required
    • starRating
      required

      Any of the following:

      • number
      • null
    • displayPrice
      optional
      object
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • averageNightlyMinor
        required

        Any of the following:

        • integer
        • null
      • nightly
        array of
        object
        required
        • breakdown
          object
          required
          • baseMinor
            required

            Any of the following:

            • integer
            • null
          • discountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • nicerAdjustmentMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • supplierFeesMinor
            required

            Any of the following:

            • integer
            • null
          • taxesMinor
            required

            Any of the following:

            • integer
            • null
        • date
          string
          required
          format: date · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
    • displayCommission
      optional
      object
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
text/event-stream

Type:string

string

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close