Yelp B2b Lead Extractor avatar

Yelp B2b Lead Extractor

Pricing

from $2.99 / 1,000 business leads

Go to Apify Store
Yelp B2b Lead Extractor

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

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

23 days ago

Last modified

Categories

Features

Limited permissions

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

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Set query and location, or supply public Yelp startUrls. Choose sourceMode: "public" or "yelpFusionApi".
  3. Keep maxItems, maxPages, and maxDetailItems small for the first run.
  4. 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.

FieldTypeRequired?DefaultMeaning
querystringOptionalrestaurantsSearch keyword used with location when startUrls is omitted. Up to 300 characters.
locationstringOptionalNew York, NYCity, region, or locality used with query when startUrls is omitted. Up to 300 characters.
sourceModestring enumOptionalpublicpublic reads Yelp pages; yelpFusionApi uses the official Places/Fusion API. API mode never falls back to public pages.
yelpApiKeystringOptionalNot suppliedSecret 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.
startUrlsobject arrayOptionalNot suppliedPublic Yelp search, city/location, or business-profile URLs. When supplied, these control the source pages; query and location remain search context. 1–20 entries.
keywordstringOptional""Case-insensitive filter over business name, description, categories, and address. It does not change the Yelp query. Up to 300 characters.
minRatingnumberOptional0Keep records with an observed rating at or above this value. Missing ratings do not pass a positive minimum. 0–5.
minReviewCountintegerOptional0Keep records with an observed review count at or above this value. 0–1000000000.
hasWebsitebooleanOptionalfalseKeep only businesses with an explicitly published non-Yelp website.
hasPhonebooleanOptionalfalseKeep only businesses with an explicitly published phone number.
hasEmailbooleanOptionalfalseKeep only businesses with an explicitly published email address. Emails are never inferred.
sortBystring enumOptionalrelevanceSort the collected, filtered records before maxItems: relevance, name_asc, rating_desc, or reviews_desc.
maxItemsintegerOptional20Maximum normal business rows emitted across all sources and pages. 1–100.
maxPagesintegerOptional1Maximum source pages requested per start URL. 1–20.
deduplicatebooleanOptionaltrueDeduplicate by Yelp business ID, alias, or canonical URL.
includeDetailsbooleanOptionaltrueFetch bounded public business-profile pages for selected records and merge explicitly available fields.
maxDetailItemsintegerOptional5Maximum selected profiles enriched. 0 disables detail requests. 0–20.
includeDiagnosticsbooleanOptionaltrueEmit a minimal {url,error,errorCode,scrapedAt} row when Yelp blocks, redirects, or returns no public data.
requestDelayMsintegerOptional250Delay before each public request. 0–5000 ms; use 0 only for fixture QA or tightly bounded testing.
maxRequestRetriesintegerOptional1Retries for network failures only; access blocks are not retried indefinitely. 0–3.
timeoutMsintegerOptional30000Maximum duration of each public request. 5000–120000 ms.
proxyConfigurationobjectOptional{"useApifyProxy":false}Apify Proxy routing for the public transport. It does not bypass access controls; direct access is the default.
fixturePathstringOptional""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.

FieldTypeAvailabilityMeaning
recordIdstringOn business rowsStable Yelp business identity used for deduplication.
businessIdstringOn business rowsYelp business ID, alias, or URL-derived slug when publicly exposed.
namestringOn business rowsPublic business name.
businessUrlstringOn business rowsCanonical public Yelp business-profile URL.
canonicalUrlstringOn business rowsCanonical URL for the extracted business.
listingStatusstringOn business rowsBusiness status only when explicitly present in public data.
businessTypestringOn business rowsPublic schema/business type when exposed.
categoriesstring arrayOn business rowsPublic Yelp or schema categories.
ratingnumberOn business rowsObserved public rating.
reviewCountintegerOn business rowsObserved public review count.
priceRangestringOn business rowsPublic price range or price label.
phonestringOn business rowsPhone number explicitly published on the public Yelp page.
emailstringOn business rowsEmail explicitly published in public page data; never inferred.
websiteUrlsstring arrayOn business rowsExplicitly published external website URLs.
addressstringOn business rowsPublic street and locality address text.
citystringOn business rowsPublic locality.
statestringOn business rowsPublic region or state.
postalCodestringOn business rowsPublic postal code.
countrystringOn business rowsPublic country.
latitudenumberOn business rowsPublic latitude when exposed.
longitudenumberOn business rowsPublic longitude when exposed.
hoursobjectOn business rowsPublic opening-hours structure or source text.
descriptionstringOn business rowsPublic business description or snippet.
imageUrlsstring arrayOn business rowsEntity-associated public business images, excluding page chrome and UI assets.
logoUrlstringOn business rowsPublic business logo URL when separately exposed.
sourcestringOn business rowsPublic source-site identifier.
sourceUrlstringOn business rowsPublic Yelp page in public mode or official Fusion endpoint in API mode.
pageUrlstringOn business rowsPublic Yelp page whose content produced the record.
searchUrlstringOn business rowsSearch source URL when the record came from a search/listing page.
querystringOn business rowsGenerated search keyword context.
locationstringOn business rowsGenerated search location context.
pageNumberintegerOn business rowsOne-based page number or bounded offset-derived page number.
itemPositionintegerOn business rowsOne-based position on the producing page when observed.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.
urlstringDiagnostic rowsRequest URL for a minimal diagnostic row.
errorstringDiagnostic rowsBounded diagnostic explanation.
errorCodestringDiagnostic rowsStable 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.

FieldMeaning
actorActor identifier recorded by the Actor.
targetTarget site, yelp.com.
statusRun outcome or blocking code; see the status table below.
normalRecordCountBusiness rows emitted.
diagnosticCountDiagnostic rows emitted; diagnostics are not business records.
dataAvailableWhether at least one business row was saved.
sourceCountSource URLs processed.
pagesVisitedPublic pages requested.
filteredOutCountCandidates removed by the rating, review-count, keyword, or presence filters.
duplicateCountDuplicate businesses removed.
detailRequestedCountBusiness profiles selected for detail enrichment.
detailEnrichedCountDetail requests that produced additional fields.
detailFailureCountDetail requests that failed.
failedRequestCountSearch or detail requests that failed after retries.
blockedReasonsBlocking codes observed during the run.
fixtureUsedWhether the run read a local fixture instead of live Yelp pages.
sourceTransportTransport used, such as got_scraping_apify_proxy.
sourceModepublic or yelpFusionApi.
apiCredentialConfiguredWhether a Fusion API key was supplied.
apiRequestCountFusion API requests attempted.
unsupportedFieldsInput fields that were not supported by the selected source route.
completedAtTime the summary was written, in ISO UTC.
StatusMeaning
SUCCEEDEDBusiness rows were saved without diagnostics.
SUCCEEDED_WITH_LIMITATIONSBusiness rows were saved, but some enrichment or filtering step was incomplete.
SUCCEEDED_WITH_BLOCKSBusiness rows were saved, but at least one source page was blocked.
BLOCKED_SOURCE_CHALLENGE, BLOCKED_SOURCE_THROTTLED, BLOCKED_SOURCE_UNAVAILABLE, BLOCKED_REDIRECT_OUT_OF_SCOPENo 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_DATAThe 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_UNSUPPORTEDThe Fusion route could not return usable business data, or hasEmail was used with Fusion, which does not provide email.
FAILEDA 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.