# /tripadvisor/locations/search

`POST /api/tripadvisor/locations/search`

Price: 20 credits

List the restaurants of a Tripadvisor city in the site's own order, filterable by cuisine, establishment type, price, diet, meal, occasion, feature, dish, MICHELIN distinction, ownership, online options and neighborhood: name, rating, review count, price level, cuisines, phone, address, coordinates, hours, delivery and reservation flags and review snippets

## How to use it

List restaurants in one Tripadvisor city by its geo id (the g number in a Tripadvisor URL). Each result's id goes to tripadvisor/locations for the full profile and to tripadvisor/locations/reviews for reviews.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `location` (string, required) — Tripadvisor city geo id or the city's restaurants page URL (examples: "60763", "https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html"; minLength: 1)
- `count` (integer, required) — Max number of results (min: 1; max: 9000)
- `cuisine` (string, nullable) — Cuisine (one of: "american", "bar", "italian", "asian", "pub", "pizza", "japanese", "chinese", "mexican", "seafood", "sushi", "cafe", "contemporary", "fast_food", "mediterranean", "french", "deli", "spanish", "latin", "wine_bar", "healthy", "steakhouse", "european", "indian", "thai", "korean", "middle_eastern", "irish", "gastropub", "south_american", "caribbean", "fusion", "diner", "greek", "international", "dining_bars", "barbecue", "soups", "vietnamese", "cantonese", "turkish", "grill", "israeli", "lebanese", "peruvian", "african", "shanghai", "central_american", "japanese_fusion", "szechuan", "hong_kong", "taiwanese", "cuban", "beer_restaurants", "jamaican", "cajun_creole", "eastern_european", "street_food", "brazilian", "argentinean", "colombian", "georgian", "british", "hawaiian", "southern_italian", "filipino", "malaysian", "neapolitan", "brew_pub", "southwestern", "central_european", "german", "ethiopian", "australian", "russian", "sicilian", "pakistani", "central_italian", "scandinavian", "tuscan", "beijing_cuisine", "belgian", "moroccan", "venezuelan", "basque", "austrian", "singaporean", "persian", "nepali", "ukrainian", "puerto_rican", "campania", "egyptian", "central_asian", "portuguese", "canadian", "swedish", "afghan", "romana", "kaiseki")
- `establishment_type` (string, nullable) — Establishment type (one of: "restaurants", "coffee_tea", "quick_bites", "dessert", "bakeries", "bars_pubs", "delivery_only", "specialty_food_market", "dine_with_a_local_chef")
- `price` (string, nullable) — Price category (one of: "cheap_eats", "mid_range", "fine_dining")
- `diet` (string, nullable) — Dietary option (one of: "vegetarian_friendly", "vegan_options", "gluten_free_options", "kosher", "halal")
- `meal_type` (string, nullable) — Meal served (one of: "breakfast", "brunch", "lunch", "dinner")
- `great_for` (string, nullable) — Occasion or audience (one of: "families_with_children", "kids", "bar_scene", "special_occasions", "romantic", "large_groups", "local_cuisine", "business_meetings", "hidden_gems", "hot_new_restaurants", "scenic_view")
- `feature` (string, nullable) — Restaurant feature (one of: "seating", "table_service", "reservations", "serves_alcohol", "takeout", "wheelchair_accessible", "accepts_credit_cards", "full_bar", "delivery", "mastercard", "visa", "american_express", "free_wifi", "wine_and_beer", "discover", "highchairs_available", "outdoor_seating", "television", "gift_cards_available", "private_dining", "street_parking", "non_smoking_restaurants", "digital_payments", "family_style", "live_music", "dog_friendly", "parking_available", "sports_bars", "byob", "free_off_street_parking", "jazz_bar", "buffet", "cash_only", "valet_parking", "waterfront", "validated_parking", "drive_thru", "beach", "playgrounds")
- `dish` (string, nullable) — Dish served (one of: "salad", "chicken_dishes", "desserts", "fish", "breads_and_pastries", "soup", "fried", "burger", "burger_and_fries", "cake", "steak_frites", "pasta", "shrimp", "sandwiches", "hoagie", "fresh_pasta", "pesto", "jumbo_shrimp", "cocido", "rice_dishes", "beef", "salmon", "pork", "lamb", "potato_wedges", "potato_chips", "mixed_seafood", "crispy", "crisp", "lobster", "cakes", "tuna", "calamari", "duck_dish", "duck", "crab", "smoked_bacon", "noodle", "toasts", "toasties", "crawfish", "pancakes", "sausage", "dumplings", "risotto", "milanese_risotto", "octopus", "italian_meatballs", "sushi_rolls", "meatballs", "tacos", "eggplant", "omelette", "veal", "oyster", "ribs", "scallops", "homemade_pies", "dauphin_raviolis", "beef_tacos", "truffle", "wings", "cheesecake", "sea_bass", "truffade", "beef_ribs", "chicken_wings", "tiramisu", "steak_tartare", "ham_sandwich", "cecina", "bolognese", "moules_frites", "mussels", "tartare", "gnocchi_alla_sorrentina", "vegetable_curry", "curry", "foie_gras", "hamburgers", "clams", "lasagne", "caesar_salad", "guacamole", "prosciutto", "antipasti", "mashed_potatoes", "bagels", "french_fries", "linguine", "filet_mignon", "mac_and_cheese", "french_toast", "waffles", "fried_rice", "paninis", "garlic", "bass", "bread_rolls", "rack_of_lamb")
- `michelin` (string, nullable) — MICHELIN Guide distinction (one of: "michelin_guide", "michelin_3_stars", "michelin_2_stars", "michelin_1_star", "michelin_bib_gourmand")
- `owner_type` (string, nullable) — Ownership attribute (one of: "women_owned", "asian_owned", "hispanic_latinx_owned", "black_owned", "lgbtqia_owned", "veteran_owned", "disability_owned", "indigenous_owned")
- `online_option` (string, nullable) — Online ordering or booking (one of: "online_delivery", "online_reservations", "special_offers")
- `neighborhood_id` (string, nullable) — Tripadvisor neighborhood id inside the city (examples: "7102352"; minLength: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "TripadvisorSearchRestaurant")
- `id` (string, required)
- `name` (string, required)
- `url` (string, nullable)
- `position` (integer, required)
- `rating` (number, nullable)
- `review_count` (integer, nullable)
- `price_level` (string, nullable)
- `cuisines` (array) (default: [])
- `categories` (array) (default: [])
- `phone` (string, nullable)
- `address` (object, nullable)
  - `@type` (string) (default: "TripadvisorAddress")
  - `street` (string, nullable)
  - `city` (string, nullable)
  - `region` (string, nullable)
  - `postal_code` (string, nullable)
  - `country` (string, nullable)
  - `full_address` (string, nullable)
- `latitude` (number, nullable)
- `longitude` (number, nullable)
- `geo_id` (string, nullable)
- `geo_name` (string, nullable)
- `image` (string, nullable)
- `menu_url` (string, nullable)
- `has_delivery` (boolean, nullable)
- `has_reservation` (boolean, nullable)
- `booking_offers` (array) (default: [])
  - `@type` (string) (default: "TripadvisorBookingOffer")
  - `provider` (string, required)
  - `provider_id` (string, nullable)
  - `action` (string, nullable)
- `hours` (array) (default: [])
  - `@type` (string) (default: "TripadvisorOpeningHours")
  - `day` (string, required)
  - `opens` (string, nullable)
  - `closes` (string, nullable)
- `awards` (array) (default: [])
  - `@type` (string) (default: "TripadvisorAward")
  - `name` (string, required)
  - `year` (integer, nullable)
  - `description` (string, nullable)
- `review_snippets` (array) (default: [])
  - `@type` (string) (default: "TripadvisorReviewSnippet")
  - `text` (string, required)
  - `review_id` (string, nullable)
  - `url` (string, nullable)

## Errors

### 422 — Validation Error

A filter value does not exist for this city, or Tripadvisor does not apply these filters together.

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No Tripadvisor restaurant listing exists for this location.

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

