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
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.
access-token string requiredtimeout 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)@type string (default: "TripadvisorSearchRestaurant")id string requiredname string requiredurl string nullableposition integer requiredrating number nullablereview_count integer nullableprice_level string nullablecuisines array (default: [])categories array (default: [])phone string nullableaddress object nullable@type string (default: "TripadvisorAddress")street string nullablecity string nullableregion string nullablepostal_code string nullablecountry string nullablefull_address string nullablelatitude number nullablelongitude number nullablegeo_id string nullablegeo_name string nullableimage string nullablemenu_url string nullablehas_delivery boolean nullablehas_reservation boolean nullablebooking_offers array (default: [])@type string (default: "TripadvisorBookingOffer")provider string requiredprovider_id string nullableaction string nullablehours array (default: [])@type string (default: "TripadvisorOpeningHours")day string requiredopens string nullablecloses string nullableawards array (default: [])@type string (default: "TripadvisorAward")name string requiredyear integer nullabledescription string nullablereview_snippets array (default: [])@type string (default: "TripadvisorReviewSnippet")text string requiredreview_id string nullableurl string nullable422 — A filter value does not exist for this city, or Tripadvisor does not apply these filters together. Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit 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. 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 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 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 Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-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.