Lodol Docs

Yelp

API actions for the Yelp integration.

Yelp

Discover businesses, reviews, and events on Yelp.


Get business details

Look up detailed information about a specific Yelp business.

Parameters

ParameterTypeRequiredDescription
business_idstringYesThe ID of the Yelp business to look up.

Response

{
  "categories": [
    "French",
    "Fine Dining"
  ],
  "id": "the-french-laundry-yountville",
  "name": "The French Laundry",
  "phone": "+17079442380",
  "price": "$$$$",
  "rating": 4.5,
  "review_count": 3200,
  "url": "https://www.yelp.com/biz/the-french-laundry-yountville"
}

Get business reviews

List reviews for a Yelp business.

Parameters

ParameterTypeRequiredDescription
business_idstringYesThe ID of the Yelp business to get reviews for.
limitnumberNoMaximum number of reviews to return. Defaults to 3.

Response

{
  "count": 1,
  "reviews": [
    {
      "id": "xAG4O7l-t1ubbwVAlPnDKg",
      "rating": 5,
      "text": "Amazing meal from start to finish.",
      "time_created": "2024-05-01 12:00:00",
      "url": "https://www.yelp.com/biz/the-french-laundry-yountville",
      "user": "Alex M."
    }
  ]
}

Search businesses

Search for businesses on Yelp by keyword and location.

Parameters

ParameterTypeRequiredDescription
termstringYesWhat to search for, such as a cuisine, business name, or keyword.
locationstringYesCity, neighborhood, or address to search in.
limitnumberNoMaximum number of results to return. Defaults to 5.
categoriesstringNoFilter results by a Yelp category, for example restaurants.
pricestringNoOnly show businesses at this price level.
sort_bystringNoHow to order the businesses. Defaults to best match.
open_nowbooleanNoSet to true to only include businesses that are open right now.

Response

{
  "businesses": [
    {
      "id": "the-french-laundry-yountville",
      "location": "6640 Washington St",
      "name": "The French Laundry",
      "phone": "+17079442380",
      "rating": 4.5,
      "review_count": 3200,
      "url": "https://www.yelp.com/biz/the-french-laundry-yountville"
    }
  ],
  "count": 1
}

Search events

Find events on Yelp by location.

Parameters

ParameterTypeRequiredDescription
locationstringYesCity, neighborhood, or address to find events in.
limitnumberNoMaximum number of events to return. Defaults to 5.
sort_onstringNoHow to order the events. Defaults to most popular.

Response

{
  "count": 1,
  "events": [
    {
      "category": "food-and-drink",
      "description": "Weekly farmers market by the waterfront.",
      "id": "oakland-jack-london-square-farmers-market",
      "is_free": true,
      "name": "Jack London Square Farmers Market",
      "time_start": "2024-06-02 10:00:00",
      "url": "https://www.yelp.com/events/oakland-jack-london-square-farmers-market"
    }
  ]
}

On this page