Yelp Scraping Parameters

Web Scraper API Yelp Scraping Parameters

Configure Yelp Scraping Parameters using Thordata's Web Scraper API, including Search URL, Business URL, Category, Location, and other parameters.

Unique Identifier:

chevron-righttokenAccess token(required)hashtag

This parameter is used as the API access token to ensure the legitimacy of the scraping request.

Request examples:

Authorization: Bearer ********************

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=yelp.com" ^
  -d "spider_id=yelp_business-overview_by-search-filters" ^
  -d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"

Product - Scrape business information:

1. Yelp - Scrape business information by Search Filters

chevron-rightspider_idScraper tool (required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-overview_by-search-filters

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=yelp.com" ^
  -d "spider_id=yelp_business-overview_by-search-filters" ^
  -d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
chevron-rightcategory Category (required)hashtag

This parameter specifies the category to be scraped.

Request examples:

"category": "cafe"

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=yelp.com" ^
  -d "spider_id=yelp_business-overview_by-search-filters" ^
  -d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
chevron-rightlocation Location (required)hashtag

This parameter specifies the location to be scraped.

Request examples:

"location": "new york"

curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=yelp.com" ^
  -d "spider_id=yelp_business-overview_by-search-filters" ^
  -d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
chevron-rightbusiness_page_turningMax business pages (optional)hashtag

This parameter specifies the pages to collect.

Request examples:

"business_page_turning": "1"

2. Yelp - Scrape business information by Search URL

chevron-rightspider_idScraper tool (required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-overview_by-search-url

chevron-rightsearch_urlSearch URL (required)hashtag

This parameter specifies the Search URL to be scraped.

Request examples:

"search_url": "https://www.yelp.com/search?find_desc=Cafes%26find_loc=Stowe%2C%2BVT"

chevron-rightbusiness_page_turningMax business pages (optional)hashtag

This parameter specifies the pages to collect.

Request examples:

"business_page_turning": "1"

3. Yelp - Scrape business information by Business URL

chevron-rightspider_idScraper tool (required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-overview_by-business-url

chevron-rightbusiness_url Business URL (required)hashtag

This parameter specifies the Business URL to search.

Request examples:

"business_url": "https://www.yelp.com/biz/the-round-hearth-caf%C3%A9-and-marketplace-stowe?osq=Sandwiches"

Product - Scrape business reviews information:

1. Yelp - Scrape business reviews information by Search Filters

chevron-rightspider_idScraper tool(required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-reviews_by-search-filters

chevron-right category Category(required)hashtag

This parameter specifies the business category for crawling.

Request examples:

"category": "cafe"

chevron-right locationLocation(required)hashtag

This parameter specifies the business location for crawling.

Request examples:

"location": "Stowe, VT"

chevron-right business_page_turningMax business pages(optional)hashtag

This parameter specifies the max business pages for crawling.

Request examples:

"business_page_turning": "1"

chevron-right review_page_turningMax review pages(optional)hashtag

This parameter specifies the max review pages for crawling.

Request examples:

"max review pages": "1"

2. Yelp - Scrape business reviews information by Search URL

chevron-rightspider_idScraper tool (required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-overview_by-search-url

chevron-rightsearch_urlSearch URL (required)hashtag

This parameter specifies the Search URL for crawling.

Request examples:

"search_url": "https://www.yelp.com/search?find_desc=Cafes%26find_loc=Stowe%2C%2BVT"

3. Yelp - Scrape business reviews information by Business URL

chevron-rightspider_idScraper tool (required)hashtag

Defines which scraper tool to use.

Request examples:

spider_id=yelp_business-overview_by-business-url

chevron-rightbusiness_urlBusiness URL(required)hashtag

This parameter specifies the Business URL for crawling.

Request examples:

"business_url": "https://www.yelp.com/biz/the-round-hearth-caf%C3%A9-and-marketplace-stowe?osq=Sandwiches"

chevron-rightunrecommended_reviewsUnrecommended Reviews(required)hashtag

This parameter is used to specify whether to capture unrecommended comments.

Request examples:

"unrecommended_reviews": "yes"

chevron-rightsort_bySort by(optional)hashtag

This parameter is used to specify the sorting method for capturing comments.

Request examples:

"sort_by": "DATE_DESC"

chevron-rightreview_page_turningMax review pages(optional)hashtag

This parameter is used to specify the max review pages to collect.

Request examples:

"review_page_turning": "1"

If you need further assistance, please contact us via email at [email protected].

Last updated

Was this helpful?