Skip to navigation

๐Ÿ”ฅ Popular Search Terms

Get popular search terms based on actual restaurant data

๐Ÿ“Š Data Sources:

  • Popular cuisines - most common cuisine types (60% of results)
  • Popular features - most common restaurant features (20% of results)
  • Popular tags - most common tags and attributes (20% of results)

โšก Performance Features:

  • Aggregated data - pre-computed from actual restaurant database
  • Parallel queries - cuisines, features, and tags fetched simultaneously
  • Photo filtering - only includes data from restaurants with photos
  • Cached-friendly - results can be cached for extended periods

๐Ÿ“ Query Parameters:

  • limit: Total number of terms to return (default: 20)

๐Ÿ’ก Use Cases:

  • Search homepage - show popular search options
  • Search suggestions - trending terms
  • Category browsing - popular cuisines and features
  • Analytics - understand popular restaurant attributes

๐Ÿ“ Examples:

  • /restaurants/search/popular - Get 20 popular search terms
  • /restaurants/search/popular?limit=50 - Get 50 popular terms

๐Ÿ“Š Response Format:

{
"status": "success",
"cuisines": ["italian", "chinese", "american", ...],
"features": ["delivery", "takeout", "wifi", ...],
"tags": ["casual", "family-friendly", "romantic", ...],
"total": 20
}

Response

This endpoint returns an object.