---
title: "Search TripAdvisor places"
method: GET
path: "/tripadvisor/search"
tags: ["TripAdvisor"]
---

# Search TripAdvisor places

`GET /tripadvisor/search`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/tripadvisor/search`
- Auth: API key in header `x-api-key`

Searches TripAdvisor places in the area given by the required `geo_id`, for the required `type`: `hotel`, `restaurant`, `attraction`, `all`, or an attraction category type from `/tripadvisor/enums`. Hotel and restaurant filters, `offset`, `limit`, `locale`, `currency` and `sort` are optional. Each result has title, URL, rating, review count, rank, price and location. Unsupported entity-only types return a validation error.

## Query parameters

- `geo_id` integer, required
- `type` string, required
- `filter_id` string
- `class` integer
- `amenities` integer[]
- `price_min` integer
- `price_max` integer
- `pricing_mode` string
- `travelers_choice` boolean
- `travelers_choice_botb` boolean
- `restaurant_date` string
- `restaurant_time` string
- `restaurant_guests` integer
- `establishment_types` integer[]
- `online_options` integer[]
- `offset` integer
- `limit` integer
- `locale` string
- `currency` string
- `sort` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- TripadvisorTripadvisorSearchResponseDoc
  - `code` integer
  - `data` TripadvisorSearchResponse
    - `currency` string: Currency code the prices are shown in, for example `HKD`.
    - `geo_id` integer: TripAdvisor geo id of the location the places are listed for.
    - `limit` integer: Maximum number of places returned on this page.
    - `locale` string: Locale code the results were returned in, for example `en-HK`.
    - `offset` integer: Result offset of this page.
    - `results` TripadvisorPlaceItem[]: Places on this page, one entry per place.
      - `address` string: Street address of the place.
      - `booking_url` string: URL where TripAdvisor lets you book or reserve the place.
      - `categories` string[]: Categories TripAdvisor lists for the place.
      - `cuisines` string[]: Cuisines a restaurant serves.
      - `currency` string: Currency code of the listed price, for example `HKD`.
      - `id` string: TripAdvisor location id of the place. Use it with the place and reviews endpoints.
      - `image` string: URL of the place's main image.
      - `latitude` number: Latitude of the place in decimal degrees.
      - `longitude` number: Longitude of the place in decimal degrees.
      - `parent` string: Name of the city or area the place is in.
      - `phone` string: Phone number of the place.
      - `price` string: Price shown on the listing, formatted with the currency symbol, for example `HK$7,793`.
      - `price_level` string: Price band as TripAdvisor shows it, for example `$$ - $$$`.
      - `provider` string: Booking or reservation provider shown on the listing, for example `Agoda`.
      - `rank` integer: Place's position in TripAdvisor's ranking for the location.
      - `rank_label` string: Ranking text as TripAdvisor shows it, for example `#12 of 12000 restaurants in Hong Kong`.
      - `rating` number: Average traveller rating out of 5.
      - `review_count` integer: Number of traveller reviews the place has.
      - `review_rating` number: Rating given in the review shown on the listing.
      - `review_snippet` string: Excerpt of a review shown on the listing.
      - `review_title` string: Title of the review shown on the listing.
      - `star_rating` number: Official star class of the place, for example `5`. Shown for hotels.
      - `tags` string[]: Short labels TripAdvisor shows on the listing.
      - `title` string: Place name as shown on the listing.
      - `type` string: Listing type, for example `restaurant`.
      - `url` string: TripAdvisor page URL of the place.
    - `sort` string: Sort order that was applied, for example `POPULARITY`.
    - `source` string: Label for the kind of TripAdvisor listing the results came from.
    - `type` string: Listing type that was searched, for example `restaurant`.
    - `unsupported_types` string[]: Entity types that this search does not cover, for example `airline`. Omitted when none.
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
