Yellow Pages Scraper

  • petr_cermak/yellow-pages-scraper
  • Modified
  • Users 2.2k
  • Runs 67.2k
  • Created by Author's avatarPetr Cermak

Scrape addresses, phone numbers, categories, and names from Yellow Page listings. Customizable Yellow Pages API to crawl and download all contact data.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

# Set API token

# Prepare Actor input
cat > input.json <<'EOF'
  "search": "Dentist",
  "location": "Los Angeles",
  "maxItems": 200,
  "extendOutputFunction": "($, record) => {\n    return {};\n}",
  "proxyConfiguration": {
    "useApifyProxy": false

# Run the Actor
curl "$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'