yelp-search
Original:🇺🇸 English
Translated
5 scriptsChecked / no sensitive code detected
Search Yelp for local businesses, get contact info, ratings, and hours. Use when finding services (cleaners, groomers, restaurants, etc.), looking up business phone numbers to text, or checking ratings before booking. Triggers on queries about finding businesses, restaurants, services, or "look up on Yelp".
7installs
Sourceletta-ai/skills
Added on
NPX Install
npx skill4agent add letta-ai/skills yelp-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Yelp Search Integration
Search for local businesses on Yelp to find services, get contact information, check ratings, and retrieve hours of operation.
Setup
1. Yelp API Key (Required)
- Go to https://www.yelp.com/developers
- Create an account or sign in
- Click "Create App" and fill out the form
- Copy your API Key
Add to your file:
.envYELP_API_KEY=your_api_key_here2. Browser-Use for Reviews (Optional)
Only needed if you want to extract review text (slow, ~30-60s per request).
Install dependencies:
bash
uv add browser-use playwright langchain-openai
uv run playwright install chromiumAdd to :
.envOPENAI_API_KEY=your_openai_key_hereNote: Review extraction uses browser-use to search DuckDuckGo (since Yelp blocks direct scraping). For most use cases, the rating + review_count from the API is sufficient.
Scripts
All scripts are in and should be run with .
tools/yelp-search/scripts/uv run pythonsearch.py - Find Businesses (Primary Tool)
bash
uv run python tools/yelp-search/scripts/search.py "search term" --location "City, State"Options:
| Flag | Description | Example |
|---|---|---|
| City, address, or zip | |
| GPS coordinates | |
| Number of results (default: 5) | |
| Sort order | |
| Price filter (1-4) | |
| Output raw JSON |
Examples:
bash
# Find top-rated dog groomers
uv run python tools/yelp-search/scripts/search.py "dog groomer" -l "San Francisco" --sort-by rating
# Find cheap restaurants nearby
uv run python tools/yelp-search/scripts/search.py "restaurants" -l "94123" --price 1,2 --sort-by distance
# Search near a specific address
uv run python tools/yelp-search/scripts/search.py "laundry pickup" -l "123 Main St, San Francisco"details.py - Get Business Hours & Info
bash
uv run python tools/yelp-search/scripts/details.py "business-alias"The business alias is in the Yelp URL (e.g., ).
the-laundry-corner-san-franciscophone_search.py - Reverse Lookup
bash
uv run python tools/yelp-search/scripts/phone_search.py "+14155551234"get_reviews.py - Extract Review Text (Slow)
bash
uv run python tools/yelp-search/scripts/get_reviews.py "Business Name" -l "City" -n 3Note: Uses browser-use which is slow (~30-60s). Yelp blocks direct scraping, so it searches DuckDuckGo for cached reviews as a workaround.
scrape_reviews.py - Direct Yelp Scraping (Alternative)
bash
uv run python tools/yelp-search/scripts/scrape_reviews.py "https://www.yelp.com/biz/business-alias" -n 5Requires Browserbase credentials:
BROWSERBASE_API_KEY=your_key_here
BROWSERBASE_PROJECT_ID=your_project_idNote: Uses Browserbase with proxies to bypass Yelp's CAPTCHA. More reliable than but requires a Browserbase account.
get_reviews.pyBest Practices
Evaluating Quality Without Review Text
The API provides rating + review_count which is usually sufficient:
| Rating | Review Count | Interpretation |
|---|---|---|
| 4.5+ | 50+ | Excellent, reliable data |
| 4.5+ | <20 | Promising but limited data |
| 4.0-4.4 | 100+ | Good, well-established |
| <4.0 | any | Proceed with caution |
Finding Services with Specific Needs
When looking for services with specific requirements (weekend hours, pickup/delivery, etc.):
- Search with to get best options
--sort-by rating - Get details on top candidates to check hours
- Filter for businesses open when you need them
- Contact directly to confirm specific services (pickup, delivery, etc.) since Yelp doesn't always have this info
Search Tips
- Use specific terms: not just
"laundry pickup""laundry" - Search near an address for accurate distance:
-l "123 Main St, City" - Sort by first, then check
ratingon resultsdistance - Check - high ratings with few reviews may be unreliable
review_count
Response Data
Each business result includes:
- name - Business name
- phone - Phone number (use for texting/calling)
- rating - Yelp rating (1-5 stars)
- review_count - Number of reviews
- price - Price level ($ to $$$$)
- location - Full address
- hours - Operating hours by day (in details)
- distance - Distance from search location
- categories - Business categories
- is_open_now - Current open/closed status
Limitations
| Feature | Status | Notes |
|---|---|---|
| Business search | ✅ Works | Fast, reliable |
| Business details | ✅ Works | Includes hours |
| Phone lookup | ✅ Works | Reverse search |
| Review text (API) | ❌ Paid only | Requires enterprise tier |
| Review text (scraping) | ⚠️ Slow | browser-use workaround via DuckDuckGo |
- Free API tier: 500 calls/day
- Results limited to 50 per request
- Some business info (pickup/delivery) not in API - contact directly