HasData icon

HasData

Scrape data from various websites

Yellow Page → Get YellowPages Search Results

AI-generated

Summary

Fetch Yellow Pages search results for a keyword in a given location.

Inputs

  • keyword (required) — The search term for which to get the search results.
  • location (required) — The location where to search for businesses with the given keyword.
  • additionalFields — Additional fields to include in the response.
  • page — The page number of the results to retrieve.
  • domain — YellowPages domain to use. Default is www.yellowpages.com.
  • sort — The sorting option for the search results.

Output shape

list of business records

Paginated results; optional additional fields can be requested; errors return an error object.

Examples

Example 1: Search for coffee shops in New York, requesting name and rating fields on page 1 sorted by rating.

keyword=coffee shops; location=New York; additionalFields={name,rating}; page=1; sort=averageRating

Example 2: Retrieve the second page of results for "bookstores" in "Los Angeles" using the Canadian domain.

keyword=bookstores; location=Los Angeles; page=2; domain=www.yellowpages.ca

Example 3: Get default search results for "hardware store" in "Chicago" sorted by distance.

keyword=hardware store; location=Chicago; sort=distance

Links

Discussion