The Yellow Pages Scraper extracts business listings from public Yellow Pages directories — including name, phone number, address, website, and business category.

This scraper job is asynchronous. You’ll receive a jobId, and can fetch results via polling or webhook delivery.

Example Request

curl --request POST \
  --url 'https://api.hasdata.com/scrapers/yellow-pages/jobs' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <your-api-key>' \
  --data '{
    "keyword": "plumber",
    "location": "Dallas, TX"
  }'

Job Parameters

keyword
string
required

Search term such as a business type or service, e.g. "dentist", "coffee shop", "electrician"

location
string
required

City, state, or ZIP code to search in, e.g. "Los Angeles, CA" or "10001"

Getting Results

Webhooks

Receive real-time updates when your scraper job starts, completes, or collects data.

Results API

Use the Results API to fetch your data using the jobId, with support for polling and pagination.

Stopping a Job

Cancel an active scraper job early if it’s no longer needed or you want to save credits.