← Back to marketplace

Tripadvisor Hotels Restaurants and Attractions Data

Tripadvisor hotel rates, restaurants, things to do and location lookups across global Tripadvisor domains, one row per entity.

travel
by kaneliu101 endpoint100% uptime197ms avg

Endpoints

POST/v1/search
$0.0500/req

Search Tripadvisor hotels, dining and attractions

Request schema

destinationstring

Destination. One city or region, such as Bangkok or London. Each run searches one destination; use regionId instead for a known geographic ID.

regionIdstring

Geographic ID. Tripadvisor geographic ID, such as 293916 or g293916. Takes priority for listing searches and location lookups; use destination for sitemap searches.

servicestring

Service. Choose hotels, restaurants, attractions, sitemap inventory entries, or location details. Each delivered row is billed at the same result price.

checkinstring

Check-in Date. Hotel check-in in YYYY-MM-DD format. If omitted, the search uses a date 21 days ahead.

checkoutstring

Check-out Date. Hotel check-out in YYYY-MM-DD format. If omitted, the search uses a date 23 days ahead; set both dates for a specific trip.

adultsinteger

Adults. Number of adult guests, from 1 to 10.

childreninteger

Children. Number of children, from 0 to 10.

childrenAgesarray

Children Ages. Ages of children, each from 0 to 17, such as [4, 9]. Omitted ages remain an empty list rather than being guessed.

roomsinteger

Rooms. Number of hotel rooms, from 1 to 10.

maxResultsinteger

Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).

quotePollboolean

Wait for Hotel Quotes. Hotels only: wait for more complete price quotes within the available run time. Default off; enabling this does not guarantee a price.

includeSponsoredboolean

Include Sponsored Ads. Leave at the default. Sponsored listings remain excluded even when this option is enabled.

sortstring

Sort. Sorting preference where supported. Leave RECOMMENDED unless you need a different supported order.

domainstring

Tripadvisor Domain. Regional Tripadvisor domain, such as www.tripadvisor.com or www.tripadvisor.co.uk. Coverage and available fields can vary by domain.

localestring

Locale. Language and region tag, such as en_US or en_GB. Set this with domain and currency for regional searches.

currencystring

Currency. Three-letter currency code, such as USD or GBP. Returned prices include a currency only when the source provides one.

originstring

Origin. Not available: flights are not supported. Leave empty.

departureDatestring

Departure Date. Not available: flights are not supported. Leave empty.

returnDatestring

Return Date. Not available: flights are not supported. Leave empty.

tripTypestring

Trip Type. Not available: flights are not supported. Leave at the default.

fieldsarray

Field Selection (not available)

formatstring

Response Format. Leave as json.

requestIdstring

Optional. Your id for this request: repeating it while the job runs returns the same job.

Response schema

{
  "allOf": [
    {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "succeeded",
            "partial",
            "failed",
            "cancelled"
          ]
        },
        "done": {
          "type": "boolean"
        },
        "rowsAvailable": {
          "type": "integer"
        },
        "rowsDelivered": {
          "type": "integer",
          "description": "Rows already delivered (and billed) to you for this job."
        },
        "rowsLimit": {
          "type": "integer",
          "description": "Most rows this job can deliver."
        },
        "estimatedFinishSec": {
          "type": "integer",
          "description": "While running: estimated seconds until done."
        },
        "statusUrl": {
          "type": "string"
        },
        "resultsUrl": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "retentionHours": {
          "type": "integer"
        },
        "error": {
          "$ref": "#/components/schemas/ErrorDetail"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "offset": {
          "type": "integer"
        },
        "nextOffset": {
          "type": "integer"
        },
        "hasMore": {
          "type": "boolean"
        },
        "rowCount": {
          "type": "integer"
        },
        "rowsBilled": {
          "type": "integer",
          "description": "Rows delivered by this response."
        },
        "rows": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Row"
          }
        },
        "meta": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  ]
}

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/tripadvisor-com/v1/search" \
  -d '{"destination":"Bangkok","regionId":"example regionId","service":"hotels","checkin":"example checkin","checkout":"example checkout","adults":2,"children":0,"childrenAges":[0],"rooms":1,"maxResults":3,"quotePoll":false,"includeSponsored":false,"sort":"RECOMMENDED","domain":"www.tripadvisor.com","locale":"en_US","currency":"USD","origin":"example origin","departureDate":"example departureDate","returnDate":"example returnDate","tripType":"oneway","fields":[],"format":"json","requestId":"example requestId"}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/tripadvisor-com/v1/search \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"destination":"Bangkok","regionId":"example regionId","service":"hotels","checkin":"example checkin","checkout":"example checkout","adults":2,"children":0,"childrenAges":[0],"rooms":1,"maxResults":3,"quotePoll":false,"includeSponsored":false,"sort":"RECOMMENDED","domain":"www.tripadvisor.com","locale":"en_US","currency":"USD","origin":"example origin","departureDate":"example departureDate","returnDate":"example returnDate","tripType":"oneway","fields":[],"format":"json","requestId":"example requestId"}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Tripadvisor Hotels Restaurants and Attractions Data.

POST /v1/search$0.0500/req
-