hasdata business APIs

Local business directory data from Yelp and YellowPages — search, full place profiles, ratings, reviews, contact info. Use this skill when the user wants Yelp listings, YellowPages results, restaurant reviews on Yelp, plumbers / contractors / professionals near a city, business phone numbers and addresses, or full Yelp/YellowPages place profiles. Triggers on "Yelp search for", "Yelp reviews for", "find CATEGORY on Yelp", "YellowPages for", "plumbers in CITY", "lawyers near", "lead list of CATEGORY", "phone number for". Returns structured JSON. Use this when the user names Yelp or YellowPages specifically; for Google Maps data use hasdata-maps.

When to use it. - User explicitly mentions Yelp or YellowPages - User wants a non-Google directory (Google Maps → use [hasdata-maps](../hasdata-maps/SKILL.md)) - User wants lead lists of a service category in a city (plumbers, lawyers, dentists, etc.) - User wants Yelp reviews / ratings for a known place

This is a skill for AI agents. Install for Cursor, Claude, Codex, and other agents with npx oli-skills install hasdata-business.

  • Cursor reads .cursor/skills/ and the rule created by npx oli-skills init.
  • Claude Code reads .claude/skills/.
  • Codex reads .codex/skills/ and .agents/skills/.

Source: hasdata

/hasdata-business@hasdata-business

How to fetch

  1. If a HasData tool is connected, call the one in the table. Read its schema. Do not run a shell command, and skip the CLI fallback, while that tool exists.
  2. If no HasData tool is connected, ask the user to press Connect. In Claude Code, authenticate with /mcp. Do not install a binary and do not ask for an API key.
  3. The CLI fallback is only when the connector cannot be connected and hasdata is already on PATH.
AskTool name containsPass
Yelp searchyelp_searchkeyword and location
One Yelp placeyelp_placeplaceId from the search
Yelp reviewsyelp_reviewsplaceId
YellowPages searchyellowpages_searchkeyword and location
One YellowPages placeyellowpages_placeurl

A Google Maps phone or address is hasdata-maps. A lead list from both Maps and YellowPages is the leads command. Do not invent a phone.

Search and place profiles for Yelp and YellowPages.

When to use

  • User explicitly mentions Yelp or YellowPages
  • User wants a non-Google directory (Google Maps → use hasdata-maps)
  • User wants lead lists of a service category in a city (plumbers, lawyers, dentists, etc.)
  • User wants Yelp reviews / ratings for a known place

APIs in this group

CommandPurposeCost
yelp-searchYelp search by keyword + location5
yelp-placeFull Yelp place profile (by Yelp ID or alias)5
yellowpages-searchYellowPages search by keyword + location5
yellowpages-placeFull YellowPages place profile (by URL)5

CLI fallback

Only when the connector cannot be connected and hasdata is already on PATH. Otherwise ignore this section.

Yelp

# Search
hasdata yelp-search --keyword "ramen" --location "Brooklyn, NY" --pretty -o .hasdata/yelp-ramen.json

# Different country
hasdata yelp-search --keyword "fish and chips" --location "London" --domain www.yelp.co.uk --pretty -o .hasdata/yelp-uk.json

# Map area filter (lat/lng bounding box)
hasdata yelp-search --keyword "tacos" --location "Houston, TX" \
  --l "g:-95.2486,29.8496,-95.4277,29.6324" --pretty -o .hasdata/yelp-tacos.json

# Full place profile (use Yelp alias or Yelp ID)
hasdata yelp-place --place-id "mcdonalds-new-york-386" --pretty -o .hasdata/yelp-place.json
hasdata yelp-place --place-id "jPIZ3FR5LNcwPuUHi2Fe4g" --pretty -o .hasdata/yelp-place-by-id.json

YellowPages

# Search
hasdata yellowpages-search --keyword "Plumbers" --location "New York, NY" --pretty -o .hasdata/yp-plumbers.json

# Sort by rating
hasdata yellowpages-search --keyword "Lawyers" --location "Austin, TX" --sort averageRating --pretty -o .hasdata/yp-lawyers.json

# Canada
hasdata yellowpages-search --keyword "Dentists" --location "Toronto, ON" --domain www.yellowpages.ca --pretty -o .hasdata/yp-dentists-ca.json

# Full place profile by URL
hasdata yellowpages-place --url "https://www.yellowpages.com/kings-county-ny/mip/aladdin-plumbing-corp-548289617" --pretty -o .hasdata/yp-place.json

Common flags

Yelp

FlagPurpose
--keywordRequired — query (e.g., "sushi")
--locationRequired — "City, ST"
--start <n>Pagination offset (multiples of 10)
--l <bbox>Map area: g:lng1,lat1,lng2,lat2
--domainYelp domain (40+ supported)

YellowPages

FlagPurpose
--keywordRequired — category (e.g., "Electricians")
--locationRequired — "City, ST"
--sortdefault, distance, averageRating, name
--page <n>Pagination
--domainwww.yellowpages.com or www.yellowpages.ca

Tips

  • Lead lists — search → place fan-out gets you full contact info per business:
    hasdata yellowpages-search --keyword "Plumbers" --location "Brooklyn, NY" --pretty -o .hasdata/plumbers.json
    for url in $(jq -r '.places[].url' .hasdata/plumbers.json | head -20); do
      hasdata yellowpages-place --url "$url" --pretty -o ".hasdata/plumber-$(basename $url).json" &
    done
    wait
    
  • Yelp aliases (e.g. mcdonalds-new-york-386) are stable and human-readable; Yelp IDs are opaque. Either works in --place-id.
  • For Google's local business data, use hasdata-maps — it's typically more comprehensive than Yelp for large markets.
  • YellowPages is best for service trades (plumbers, electricians, contractors) — it has stronger contact-info coverage.

Working with results

# Yelp search → name, rating, phone, address
jq -r '.places[] | "\(.title)\t\(.rating)★\t\(.phone // "n/a")\t\(.address // "n/a")"' .hasdata/yelp.json

# YellowPages → name, phone, address, rating
jq -r '.places[] | "\(.title)\t\(.phone // "n/a")\t\(.address // "n/a")\t\(.rating // "n/a")"' .hasdata/yp.json

# Filter for high-rated only
jq '.places[] | select((.rating // 0) >= 4.5)' .hasdata/yp.json

See also

  • hasdata-maps — Google Maps for the same kind of local data, often more comprehensive
  • hasdata-search — google-serp for general business research
Skills Mixer