Yelp B2b Lead Extractor
Pricing
from $2.99 / 1,000 business leads
Yelp B2b Lead Extractor
Extract publicly visible Yelp business fields without bypassing access controls.
Pricing
from $2.99 / 1,000 business leads
Rating
0.0
(0)
Developer
w3crawler
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
23 days ago
Last modified
Categories
Features
Share
Yelp B2B Lead Extractor reads business information that a business has chosen to publish publicly on Yelp. It accepts Yelp search, city/location, and business-profile URLs, reads public structured data and stable page links, and can make a bounded second request for selected public profiles. It also supports an explicit yelpFusionApi mode with a user-supplied Yelp Places/Fusion API key. It does not log in, solve CAPTCHA or DataDome challenges, infer email addresses, bypass throttling, or access private content.
Get started
- Open the Actor Store page and select Try for free or open the Input tab.
- Set
queryandlocation, or supply public YelpstartUrls. ChoosesourceMode: "public"or"yelpFusionApi". - Keep
maxItems,maxPages, andmaxDetailItemssmall for the first run. - Start the Actor, open the dataset, and export any saved rows as JSON, CSV, or Excel. Open Run summary (
OUTPUT_SUMMARY) to check the outcome, blocked reasons, and request counts.
Input
All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
query | string | Optional | restaurants | Search keyword used with location when startUrls is omitted. Up to 300 characters. |
location | string | Optional | New York, NY | City, region, or locality used with query when startUrls is omitted. Up to 300 characters. |
sourceMode | string enum | Optional | public | public reads Yelp pages; yelpFusionApi uses the official Places/Fusion API. API mode never falls back to public pages. |
yelpApiKey | string | Optional | Not supplied | Secret Yelp Places/Fusion API key. Required when sourceMode is yelpFusionApi; sent only as an Authorization header and never written to output or logs. Fusion does not provide email addresses. |
startUrls | object array | Optional | Not supplied | Public Yelp search, city/location, or business-profile URLs. When supplied, these control the source pages; query and location remain search context. 1–20 entries. |
keyword | string | Optional | "" | Case-insensitive filter over business name, description, categories, and address. It does not change the Yelp query. Up to 300 characters. |
minRating | number | Optional | 0 | Keep records with an observed rating at or above this value. Missing ratings do not pass a positive minimum. 0–5. |
minReviewCount | integer | Optional | 0 | Keep records with an observed review count at or above this value. 0–1000000000. |
hasWebsite | boolean | Optional | false | Keep only businesses with an explicitly published non-Yelp website. |
hasPhone | boolean | Optional | false | Keep only businesses with an explicitly published phone number. |
hasEmail | boolean | Optional | false | Keep only businesses with an explicitly published email address. Emails are never inferred. |
sortBy | string enum | Optional | relevance | Sort the collected, filtered records before maxItems: relevance, name_asc, rating_desc, or reviews_desc. |
maxItems | integer | Optional | 20 | Maximum normal business rows emitted across all sources and pages. 1–100. |
maxPages | integer | Optional | 1 | Maximum source pages requested per start URL. 1–20. |
deduplicate | boolean | Optional | true | Deduplicate by Yelp business ID, alias, or canonical URL. |
includeDetails | boolean | Optional | true | Fetch bounded public business-profile pages for selected records and merge explicitly available fields. |
maxDetailItems | integer | Optional | 5 | Maximum selected profiles enriched. 0 disables detail requests. 0–20. |
includeDiagnostics | boolean | Optional | true | Emit a minimal {url,error,errorCode,scrapedAt} row when Yelp blocks, redirects, or returns no public data. |
requestDelayMs | integer | Optional | 250 | Delay before each public request. 0–5000 ms; use 0 only for fixture QA or tightly bounded testing. |
maxRequestRetries | integer | Optional | 1 | Retries for network failures only; access blocks are not retried indefinitely. 0–3. |
timeoutMs | integer | Optional | 30000 | Maximum duration of each public request. 5000–120000 ms. |
proxyConfiguration | object | Optional | {"useApifyProxy":false} | Apify Proxy routing for the public transport. It does not bypass access controls; direct access is the default. |
fixturePath | string | Optional | "" | Repository-relative HTML fixture for deterministic QA. Fixture mode makes no network request and must not be used as a silent live fallback. Up to 500 characters. |
Full default input:
{"query": "restaurants","location": "New York, NY","sourceMode": "public","keyword": "","minRating": 0,"minReviewCount": 0,"hasWebsite": false,"hasPhone": false,"hasEmail": false,"sortBy": "relevance","maxItems": 20,"maxPages": 1,"deduplicate": true,"includeDetails": true,"maxDetailItems": 5,"includeDiagnostics": true,"requestDelayMs": 250,"maxRequestRetries": 1,"timeoutMs": 30000,"proxyConfiguration": {"useApifyProxy": false},"fixturePath": ""}
The Actor reads public Yelp pages or the official Fusion API. fixturePath is for offline QA only; a fixture run is not a live collection run. Ordinary live runs leave it empty.
Output
The dataset normally contains one row per business, plus an optional minimal diagnostic row when includeDiagnostics is enabled and the run cannot produce a business row. Business fields are omitted when the source does not publish them; values are never guessed. In the checked 2026-10-25 run, Yelp returned HTTP 403, so the only saved row was a diagnostic and no business row exists to show.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordId | string | On business rows | Stable Yelp business identity used for deduplication. |
businessId | string | On business rows | Yelp business ID, alias, or URL-derived slug when publicly exposed. |
name | string | On business rows | Public business name. |
businessUrl | string | On business rows | Canonical public Yelp business-profile URL. |
canonicalUrl | string | On business rows | Canonical URL for the extracted business. |
listingStatus | string | On business rows | Business status only when explicitly present in public data. |
businessType | string | On business rows | Public schema/business type when exposed. |
categories | string array | On business rows | Public Yelp or schema categories. |
rating | number | On business rows | Observed public rating. |
reviewCount | integer | On business rows | Observed public review count. |
priceRange | string | On business rows | Public price range or price label. |
phone | string | On business rows | Phone number explicitly published on the public Yelp page. |
email | string | On business rows | Email explicitly published in public page data; never inferred. |
websiteUrls | string array | On business rows | Explicitly published external website URLs. |
address | string | On business rows | Public street and locality address text. |
city | string | On business rows | Public locality. |
state | string | On business rows | Public region or state. |
postalCode | string | On business rows | Public postal code. |
country | string | On business rows | Public country. |
latitude | number | On business rows | Public latitude when exposed. |
longitude | number | On business rows | Public longitude when exposed. |
hours | object | On business rows | Public opening-hours structure or source text. |
description | string | On business rows | Public business description or snippet. |
imageUrls | string array | On business rows | Entity-associated public business images, excluding page chrome and UI assets. |
logoUrl | string | On business rows | Public business logo URL when separately exposed. |
source | string | On business rows | Public source-site identifier. |
sourceUrl | string | On business rows | Public Yelp page in public mode or official Fusion endpoint in API mode. |
pageUrl | string | On business rows | Public Yelp page whose content produced the record. |
searchUrl | string | On business rows | Search source URL when the record came from a search/listing page. |
query | string | On business rows | Generated search keyword context. |
location | string | On business rows | Generated search location context. |
pageNumber | integer | On business rows | One-based page number or bounded offset-derived page number. |
itemPosition | integer | On business rows | One-based position on the producing page when observed. |
scrapedAt | string | Always | Time the row was saved, in ISO UTC. |
url | string | Diagnostic rows | Request URL for a minimal diagnostic row. |
error | string | Diagnostic rows | Bounded diagnostic explanation. |
errorCode | string | Diagnostic rows | Stable diagnostic code. |
The example below is the complete real saved row from the 2026-10-25 run. It is a diagnostic row, not a business record.
{"url": "https://www.yelp.com/search?find_desc=coffee&find_loc=New%20York%2C%20NY","error": "Public Yelp page returned HTTP 403; no access-control bypass was attempted.","errorCode": "BLOCKED_SOURCE_CHALLENGE","scrapedAt": "2026-10-25T20:45:47.141Z"}
Run summary
Run summary is stored separately from the dataset in the run's key-value store under OUTPUT_SUMMARY.
| Field | Meaning |
|---|---|
actor | Actor identifier recorded by the Actor. |
target | Target site, yelp.com. |
status | Run outcome or blocking code; see the status table below. |
normalRecordCount | Business rows emitted. |
diagnosticCount | Diagnostic rows emitted; diagnostics are not business records. |
dataAvailable | Whether at least one business row was saved. |
sourceCount | Source URLs processed. |
pagesVisited | Public pages requested. |
filteredOutCount | Candidates removed by the rating, review-count, keyword, or presence filters. |
duplicateCount | Duplicate businesses removed. |
detailRequestedCount | Business profiles selected for detail enrichment. |
detailEnrichedCount | Detail requests that produced additional fields. |
detailFailureCount | Detail requests that failed. |
failedRequestCount | Search or detail requests that failed after retries. |
blockedReasons | Blocking codes observed during the run. |
fixtureUsed | Whether the run read a local fixture instead of live Yelp pages. |
sourceTransport | Transport used, such as got_scraping_apify_proxy. |
sourceMode | public or yelpFusionApi. |
apiCredentialConfigured | Whether a Fusion API key was supplied. |
apiRequestCount | Fusion API requests attempted. |
unsupportedFields | Input fields that were not supported by the selected source route. |
completedAt | Time the summary was written, in ISO UTC. |
| Status | Meaning |
|---|---|
SUCCEEDED | Business rows were saved without diagnostics. |
SUCCEEDED_WITH_LIMITATIONS | Business rows were saved, but some enrichment or filtering step was incomplete. |
SUCCEEDED_WITH_BLOCKS | Business rows were saved, but at least one source page was blocked. |
BLOCKED_SOURCE_CHALLENGE, BLOCKED_SOURCE_THROTTLED, BLOCKED_SOURCE_UNAVAILABLE, BLOCKED_REDIRECT_OUT_OF_SCOPE | No usable business row was obtained from the affected source; a diagnostic row may be saved when diagnostics are enabled. |
NO_PUBLIC_DATA, NO_YELP_API_RESULTS, NO_YELP_API_DATA | The source completed without returning usable business data. |
YELP_API_KEY_REQUIRED, YELP_API_UNAUTHORIZED, YELP_API_RATE_LIMITED, YELP_API_REQUEST_REJECTED, YELP_API_UNAVAILABLE, YELP_FUSION_EMAIL_UNSUPPORTED | The Fusion route could not return usable business data, or hasEmail was used with Fusion, which does not provide email. |
FAILED | A fatal error occurred before any usable row was saved. |
Example OUTPUT_SUMMARY from the 2026-10-25 run:
{"actor": "b2b_leads/yelp-b2b-lead-extractor","target": "yelp.com","status": "BLOCKED_SOURCE_CHALLENGE","normalRecordCount": 0,"diagnosticCount": 1,"dataAvailable": false,"sourceCount": 1,"pagesVisited": 1,"filteredOutCount": 0,"duplicateCount": 0,"detailRequestedCount": 0,"detailEnrichedCount": 0,"detailFailureCount": 0,"failedRequestCount": 1,"blockedReasons": ["BLOCKED_SOURCE_CHALLENGE"],"fixtureUsed": false,"sourceTransport": "got_scraping_apify_proxy","sourceMode": "public","apiCredentialConfigured": false,"apiRequestCount": 0,"unsupportedFields": [],"completedAt": "2026-10-25T20:45:47.222Z"}
Coverage and limitations
The public route reads only what Yelp renders publicly: search and listing cards, profile pages, structured data, and stable page links. The Fusion route uses the official API and a user-supplied key; it never falls back to public pages. Email is emitted only when an address is explicitly published, and Fusion does not return email addresses. hasEmail: true can therefore produce no rows even when a business is present.
Yelp actively challenges some automated requests. When that happens, the Actor does not solve the challenge, switch to an unrelated reader service, or invent a business record. With includeDiagnostics enabled, it may write one minimal diagnostic row and records the blocking code in OUTPUT_SUMMARY; otherwise the summary is the only evidence of the outcome. fixturePath is for offline QA and is not a live fallback. maxItems, maxPages, and maxDetailItems bound output and requests; requestDelayMs and maxRequestRetries control pacing but do not guarantee access. Ratings, review counts, hours, and prices are point-in-time values.
Usage and support
Cost depends on Apify compute, the public or Fusion route, proxy use, page and detail requests, and retries. Start with maxItems small and includeDetails enabled only for fields that search cards do not expose. See the Actor's Pricing tab for current account rates.
Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT_SUMMARY; do not include tokens, cookies, API keys, or private data. This Actor is not affiliated with, endorsed by, or sponsored by Yelp. Use it only for public data and in accordance with Yelp's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful business contact purposes.