Skip to content
Navigation

Search tours and activities

POST
https://api.nicer.travel/tour-viator/products

Searches the the activities provider catalogue for tours and activities and returns them already shaped as itinerary activity segments, with paging and the currency the prices are quoted in.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • destinationId
    string
    required
  • currency
    optional
    string
    default: "USD"
  • dates
    optional
    object
    • endDate
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
    • startDate
      string
      required
      pattern: ^\d{4}-\d{2}-\d{2}$
  • filters
    optional
    object
    • duration
      optional
      object
      • maxMinutes
        optional
        number
      • minMinutes
        optional
        number
    • flags
      optional
      array of
      NEW_ON_VIATOR
      or
      FREE_CANCELLATION
      or
      SKIP_THE_LINE
      or
      PRIVATE_TOUR
      or
      SPECIAL_OFFER
      or
      LIKELY_TO_SELL_OUT
    • priceRange
      optional
      object
      • max
        optional
        number
      • min
        optional
        number
  • pagination
    optional
    object
    • page
      optional
      number
      minimum: 1 · default: 1
    • pageSize
      optional
      number
      maximum: 100 · minimum: 1 · default: 20
  • sort
    optional
    object
    • direction
      asc
      or
      desc
      required
    • field
      price
      or
      recommended
      required

Returns

200

OK

JSON
  • availability
    DATE_FILTERED
    or
    NOT_CHECKED
    required

    Whether the requested dates filtered the results.

  • currency
    string
    required
  • filters
    object
    required
    • available
      object
      required
      • duration
        required

        Any of the following:

        • array<object>
          • label
            string
            required
          • minMinutes
            number
            required
          • maxMinutes
            optional
            number
        • null
      • priceRange
        required

        Any of the following:

        • object
          • max
            number
            required
          • min
            number
            required
        • null
    • applied
      optional
      object

      The filters of the request, as it sent them.

      • duration
        optional
        object
        • maxMinutes
          optional
          number
        • minMinutes
          optional
          number
      • flags
        optional
        array of
        NEW_ON_VIATOR
        or
        FREE_CANCELLATION
        or
        SKIP_THE_LINE
        or
        PRIVATE_TOUR
        or
        SPECIAL_OFFER
        or
        LIKELY_TO_SELL_OUT
      • priceRange
        optional
        object
        • max
          optional
          number
        • min
          optional
          number
  • items
    array of
    object
    required

    The tours and activities of this page, as activity segments.

    • id
      string
      required
    • type
      string
      required
    • advisorInsights
      optional

      Any of the following:

      • string
      • null
    • amenities
      optional
      array of
      string
    • approvedAt
      optional

      Any of the following:

      • string
      • null
    • approvedBy
      optional

      Any of the following:

      • string
      • null
    • attachments
      optional

      Any of the following:

      • array<unknown>
        • key
          optional
          string
        • name
          optional
          string
        • source
          optional

          Any of the following:

          • string
          • string
        • url
          optional
          string
      • null
    • countTravelers
      optional
      number
    • createdAt
      optional
      string
    • createdBy
      optional
      string
    • currency
      optional
      string
    • details
      optional

      Any of the following:

      • string
      • null
    • endDateTime
      optional

      Any of the following:

      • string
      • null
    • groupId
      optional
      string
    • hash
      optional
      string
    • images
      optional

      Any of the following:

      • array<unknown>
        • key
          optional
          string
        • name
          optional
          string
        • source
          optional

          Any of the following:

          • string
          • string
        • url
          optional
          string
      • null
    • isOnSitePayment
      optional
      boolean
    • lastModifiedBy
      optional
      string
    • location
      optional
      object
      • address
        optional

        Any of the following:

        • string
        • null
      • amenities
        optional
        array of
        string
      • city
        optional

        Any of the following:

        • string
        • null
      • country
        optional
        string
      • countryCode
        optional
        string
      • description
        optional
        string
      • distanceFromSearch
        optional
        object
        • unit
          km
          or
          mi
          required
        • value
          number
          required
      • features
        optional
        array of
        string
      • fullAddress
        optional
        string
      • gate
        optional

        Any of the following:

        • string
        • null
      • iataCode
        optional

        Any of the following:

        • string
        • null
      • internovaId
        optional
        string
      • latitude
        optional
        number
      • longitude
        optional
        number
      • name
        optional
        string
      • photos
        optional
        array of
        object
        • name
          string
          required
        • key
          optional
          string
        • url
          optional
          string
      • placeId
        optional
        string
      • region
        optional
        string
      • source
        optional
        string
      • state
        optional

        Any of the following:

        • string
        • null
      • terminal
        optional

        Any of the following:

        • string
        • null
      • timeZone
        optional
        string
      • zipCode
        optional

        Any of the following:

        • string
        • null
    • metadata
      optional
      map of
      unknown

      Keys the writers share (the booking selection, the commerce order state). Its provider key, which provider the segment comes from, is answered to Nicer staff only.

    • price
      optional
      number
    • priceInUSD
      optional

      Any of the following:

      • number
      • null
    • rate
      optional

      Any of the following:

      • number
      • null
    • startDateTime
      optional
      string
    • title
      optional

      Any of the following:

      • string
      • null
    • updatedAt
      optional
      string
    • additionalInfo
      optional
      array of
      string
    • bookingQuestions
      optional
      array of
      string
    • cancellationPolicy
      optional
      object
      • isCancellable
        boolean
        required
      • cancelIfBadWeather
        optional
        boolean
      • freeDeadline
        optional
        string
    • dropoffInstructions
      optional
      string
    • dropoffLocation
      optional
      object
      • address
        optional

        Any of the following:

        • string
        • null
      • amenities
        optional
        array of
        string
      • city
        optional

        Any of the following:

        • string
        • null
      • country
        optional
        string
      • countryCode
        optional
        string
      • description
        optional
        string
      • distanceFromSearch
        optional
        object
        • unit
          km
          or
          mi
          required
        • value
          number
          required
      • features
        optional
        array of
        string
      • fullAddress
        optional
        string
      • gate
        optional

        Any of the following:

        • string
        • null
      • iataCode
        optional

        Any of the following:

        • string
        • null
      • internovaId
        optional
        string
      • latitude
        optional
        number
      • longitude
        optional
        number
      • name
        optional
        string
      • photos
        optional
        array of
        object
        • name
          string
          required
        • key
          optional
          string
        • url
          optional
          string
      • placeId
        optional
        string
      • region
        optional
        string
      • source
        optional
        string
      • state
        optional

        Any of the following:

        • string
        • null
      • terminal
        optional

        Any of the following:

        • string
        • null
      • timeZone
        optional
        string
      • zipCode
        optional

        Any of the following:

        • string
        • null
    • dropoffTime
      optional
      string
    • durationMinutes
      optional
      number
    • durationText
      optional
      string
    • exclusions
      optional
      array of
      string
    • freeCancellation
      optional
      boolean
    • inclusions
      optional
      array of
      string
    • instantConfirmation
      optional
      boolean
    • itinerarySteps
      optional
      array of
      object
      • title
        string
        required
      • admissionIncluded
        optional
        YES
        or
        NO
        or
        NOT_APPLICABLE
      • description
        optional
        string
      • durationMinutes
        optional
        number
      • durationText
        optional
        string
      • location
        optional
        object
        • address
          optional

          Any of the following:

          • string
          • null
        • amenities
          optional
          array of
          string
        • city
          optional

          Any of the following:

          • string
          • null
        • country
          optional
          string
        • countryCode
          optional
          string
        • description
          optional
          string
        • distanceFromSearch
          optional
          object
          • unit
            km
            or
            mi
            required
          • value
            number
            required
        • features
          optional
          array of
          string
        • fullAddress
          optional
          string
        • gate
          optional

          Any of the following:

          • string
          • null
        • iataCode
          optional

          Any of the following:

          • string
          • null
        • internovaId
          optional
          string
        • latitude
          optional
          number
        • longitude
          optional
          number
        • name
          optional
          string
        • photos
          optional
          array of
          object
          • name
            string
            required
          • key
            optional
            string
          • url
            optional
            string
        • placeId
          optional
          string
        • region
          optional
          string
        • source
          optional
          string
        • state
          optional

          Any of the following:

          • string
          • null
        • terminal
          optional

          Any of the following:

          • string
          • null
        • timeZone
          optional
          string
        • zipCode
          optional

          Any of the following:

          • string
          • null
      • passByWithoutStopping
        optional
        boolean
    • languages
      optional
      array of
      string
    • maxTravelersPerBooking
      optional
      number
    • minTravelersPerBooking
      optional
      number
    • mobileTicket
      optional
      boolean
    • pickupInstructions
      optional
      string
    • pickupLocation
      optional
      object
      • address
        optional

        Any of the following:

        • string
        • null
      • amenities
        optional
        array of
        string
      • city
        optional

        Any of the following:

        • string
        • null
      • country
        optional
        string
      • countryCode
        optional
        string
      • description
        optional
        string
      • distanceFromSearch
        optional
        object
        • unit
          km
          or
          mi
          required
        • value
          number
          required
      • features
        optional
        array of
        string
      • fullAddress
        optional
        string
      • gate
        optional

        Any of the following:

        • string
        • null
      • iataCode
        optional

        Any of the following:

        • string
        • null
      • internovaId
        optional
        string
      • latitude
        optional
        number
      • longitude
        optional
        number
      • name
        optional
        string
      • photos
        optional
        array of
        object
        • name
          string
          required
        • key
          optional
          string
        • url
          optional
          string
      • placeId
        optional
        string
      • region
        optional
        string
      • source
        optional
        string
      • state
        optional

        Any of the following:

        • string
        • null
      • terminal
        optional

        Any of the following:

        • string
        • null
      • timeZone
        optional
        string
      • zipCode
        optional

        Any of the following:

        • string
        • null
    • pickupTime
      optional
      string
    • privateTour
      optional
      boolean
    • provider
      optional
      string

      Which provider the activity comes from (viator, manual). Answered to Nicer staff only.

    • providerBookingRef
      optional
      string

      The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.

    • providerProductCode
      optional
      string

      The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.

    • providerProductUrl
      optional
      string

      The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.

    • reviews
      optional
      object
      • averageRating
        optional
        number
      • totalReviews
        optional
        number
    • skipTheLine
      optional
      boolean
    • status
      optional
      proposed
      or
      hold
      or
      booked
      or
      cancelled
    • supplierName
      optional
      string
    • supplierReference
      optional
      string
    • timeZone
      optional
      string
    • travelers
      optional
      array of
      string
  • page
    number
    required
  • pageSize
    number
    required
  • totalCount
    number
    required
  • totalPages
    number
    required
  • availabilityNotice
    optional
    string

    Present when the dates could not be checked: the results are catalogue suggestions, not confirmed availability.

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