  [Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/**Yellow Pages**

Search results · business pages · hours · ratings

# // Yellow Pages Scraper API

Turn a Yellow Pages search or business page into clean JSON: business name, category, street address, phone, website, opening hours, star rating and review count for US businesses. Scrapfly's Unblocker handles the Cloudflare check on yellowpages.com, so you send the URL and read the listing.

- **Clone it and run it.** An open-source scraper that pages through Yellow Pages search results and scrapes each business page, tested against live Yellow Pages every night.
- **Any category, any city.** Search plumbers in Chicago or dentists in Houston and get each listing's address, phone, rating and hours straight from the results page.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/yellowpages-scraper) [Read the API docs](https://scrapfly.io/docs/scrape-api/getting-started) 

**$2.50 to $8.00 per 1,000 pages** on the Pro plan: 25 to 80 credits a page, depending on whether Yellow Pages asks for a Cloudflare check, at $0.10 per 1,000 credits.

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

 

 

 Yellow Pages · illustration

  

 

 Business JSON**Output**

```
{
  <span class="c-str">"name"</span>: <span class="c-str">"Baethke Plumbing"</span>,
  <span class="c-str">"category"</span>: <span class="c-str">"Plumbers"</span>,
  <span class="c-str">"street"</span>: <span class="c-str">"3511 N Cicero Ave"</span>,
  <span class="c-str">"city"</span>: <span class="c-str">"Chicago"</span>,
  <span class="c-str">"state"</span>: <span class="c-str">"IL"</span>,
  <span class="c-str">"zip"</span>: <span class="c-str">"60641"</span>,
  <span class="c-str">"phone"</span>: <span class="c-str">"(312) 697-1550"</span>,
  <span class="c-str">"website"</span>: <span class="c-str">"baethkeplumbing.com"</span>,
  <span class="c-str">"rating"</span>: <span class="c-num">5</span>,
  <span class="c-str">"reviews"</span>: <span class="c-num">64</span>,
  <span class="c-str">"hours"</span>: [
    <span class="c-str">"Mo-Su 06:00-19:00"</span>
  ]
}
```

Printed by the Python request below[See the request ↓](#implementation)

   

  

What you can scrape from Yellow Pages

Four kinds of Yellow Pages data you can scrape with Scrapfly, from public search and business pages on yellowpages.com.

 

## // Scrape Yellow Pages search results

Send a search such as `search_terms=plumbers` with `geo_location_terms=Chicago, IL` and read every listing on the page from its JSON-LD: business name, business page URL, street address and phone, plus star rating, review count and opening hours where the listing has them. Add `page=2` and up for the next pages; the result count at the top of page one tells you how many there are.

- name
- url
- address
- telephone
- rating
- review\_count
- opening\_hours

  

## // Scrape Yellow Pages business pages

Each business page carries the full listing: name, categories, street address, phone number, website, opening hours and, where the business lists it, the year it was founded. It is all in the page's LocalBusiness JSON-LD, so there is little HTML to parse.

- name
- categories
- address
- phone
- website
- hours
- founded

  

## // Scrape Yellow Pages ratings and reviews

Get the average star rating and the review count of each business, from the search results or the business page. Business pages also publish their most recent reviews, each with a star rating, a date and the review text.

- rating
- review\_count
- review\_rating
- review\_date
- review\_text

  

## // Get opening hours in a standard format

Listings publish opening hours in schema.org form, such as `Mo-Su 06:00-19:00`, so you can tell which businesses are open on a given day without parsing free text. The open-source scraper expands them into one entry per weekday.

- Mo
- Tu
- We
- Th
- Fr
- Sa
- Su

  

 

  

Reliability

## // Reach Yellow Pages listings behind Cloudflare

yellowpages.com sits behind Cloudflare. A plain request from a datacenter IP gets a 403 "Just a moment..." page instead of the listings. Scrapfly's Unblocker handles the check and returns the page itself.

 `unblocker=true`

Turn on Unblocker. It routes the request through residential IPs and clears the Cloudflare check when Yellow Pages asks for one.

 

 `country=US`

Yellow Pages is a US directory. Send your requests from US IPs, as the open-source scraper does.

 

 `LocalBusiness`

Check for the LocalBusiness JSON-LD before you parse, so a challenge page or a redirect to the home page never ends up in your data.

 

 

 

  

Choose your tools

## // Scrapfly products for Yellow Pages scraping

Start with the Web Scraping API and Unblocker. Add the extraction model, screenshots or a browser session as your workflow needs them, or start from the open-source scraper. One API key covers all four products.

 

### Web Scraping API for Yellow Pages listings

Send a Yellow Pages search or business URL with Unblocker on and get the page HTML back, LocalBusiness JSON-LD included.

Parse the listings from a results page or the full profile from a business page. One request per page, in the city and category you choose.

```
GET /scrape?url=https://www.yellowpages.com/search?search_terms=plumbers%26geo_location_terms=Chicago%2C+IL&unblocker=true&country=US
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for Yellow Pages businesses

Set `extraction_model` to `organization` to get a business page as structured JSON, with no parser to write.

Get the business name, street address, city, postal code, phone, website, average rating, review count, founding year and description.

```
GET /scrape?url=https://www.yellowpages.com/chicago-il/mip/baethke-plumbing-15128363&unblocker=true&country=US&extraction_model=organization
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for Yellow Pages results

Capture a full Yellow Pages results page as an image: every listing with its categories, phone number and address.

Keep a dated visual record of which businesses show up for a category in a city.

```
GET /screenshot?url=https://www.yellowpages.com/search?search_terms=plumbers%26geo_location_terms=Chicago%2C+IL&country=us&capture=fullpage
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for Yellow Pages sessions

Call the Cloud Browser Unblock API with a Yellow Pages URL and connect Playwright or Puppeteer to the browser it returns.

Open search and business pages as a visitor sees them, and read the page after the Cloudflare check.

```
POST https://browser.scrapfly.io/unblock?key=KEY {"url": "https://www.yellowpages.com/chicago-il/mip/baethke-plumbing-15128363", "country": "us"}
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Open-source Yellow Pages scraper on GitHub

Clone the maintained Python scraper that pages through Yellow Pages search results and scrapes each business page.

It sends every request through the Web Scraping API with Unblocker on, returns each listing's name, address, phone, rating and hours from search pages, and each business's categories, phone, website, rating and weekday hours from business pages. It is tested against live Yellow Pages every night.

- scrape\_search
- scrape\_pages

 [View the scraper on GitHub →](https://github.com/scrapfly/scrapfly-scrapers/tree/main/yellowpages-scraper)  

 

  

One request

## // Scrape a Yellow Pages business page in Python

The JSON at the top is sample output from November 25, 2026, for Baethke Plumbing in Chicago: one request through a US residential IP with Unblocker on, the details read from the page's LocalBusiness JSON-LD.

Install `scrapfly-sdk` and `parsel`, then replace the key below. Swap `URL` for any business page link from a Yellow Pages search.

**Prefer the full scraper?** The open-source [Yellow Pages scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/yellowpages-scraper) pages through the results for a search and a city and scrapes each business page, in Python 3.12. It runs against live Yellow Pages every night. Clone it, set `SCRAPFLY_KEY`, and point it at your own search.

 

 Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

URL = (<span class="c-str">"https://www.yellowpages.com/chicago-il/mip/"</span>
       <span class="c-str">"baethke-plumbing-15128363"</span>)
LD = <span class="c-str">"//script[@type='application/ld+json']/text()"</span>
client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
result = client.scrape(ScrapeConfig(
    URL, unblocker=<span class="c-key">True</span>, country=<span class="c-str">"US"</span>,
))

<span class="c-com"># Business pages publish their details as JSON-LD</span>
sel = result.selector
business = <span class="c-key">None</span>
<span class="c-key">for</span> raw <span class="c-key">in</span> sel.xpath(LD).getall():
    item = json.loads(raw)
    <span class="c-key">if</span> <span class="c-str">"LocalBusiness"</span> <span class="c-key">in</span> str(item.get(<span class="c-str">"@type"</span>)):
        business = item
<span class="c-key">if</span> <span class="c-key">not</span> business:
    <span class="c-key">raise</span> RuntimeError(<span class="c-str">"No business data in the response"</span>)
address = business[<span class="c-str">"address"</span>]
rating = business.get(<span class="c-str">"aggregateRating"</span>, {})
site = business.get(<span class="c-str">"url"</span>, <span class="c-str">""</span>)
output = {
    <span class="c-str">"name"</span>: business[<span class="c-str">"name"</span>],
    <span class="c-str">"category"</span>: sel.css(<span class="c-str">".categories a::text"</span>).get(),
    <span class="c-str">"street"</span>: address.get(<span class="c-str">"streetAddress"</span>),
    <span class="c-str">"city"</span>: address[<span class="c-str">"addressLocality"</span>],
    <span class="c-str">"state"</span>: address[<span class="c-str">"addressRegion"</span>],
    <span class="c-str">"zip"</span>: address[<span class="c-str">"postalCode"</span>],
    <span class="c-str">"phone"</span>: business.get(<span class="c-str">"telephone"</span>),
    <span class="c-str">"website"</span>: site.split(<span class="c-str">"//"</span>)[-<span class="c-num">1</span>].removeprefix(<span class="c-str">"www."</span>),
    <span class="c-str">"rating"</span>: rating.get(<span class="c-str">"ratingValue"</span>),
    <span class="c-str">"reviews"</span>: rating.get(<span class="c-str">"reviewCount"</span>),
    <span class="c-str">"hours"</span>: business.get(<span class="c-str">"openingHours"</span>),
}
print(json.dumps(output, indent=<span class="c-num">2</span>))
```

 

 

 

  

What the data is used for

## // Common Yellow Pages scraping use cases

### Market mapping

Count the businesses of one category in each city, and see how many list a website, hours or ratings.

 

### Directory enrichment

Fill in missing phones, websites, street addresses and opening hours for the businesses you already track.

 

### Listing accuracy checks

Compare a business's name, address and phone on Yellow Pages with its other listings and fix the ones that differ.

 

### Competitor monitoring

Track the ratings and review counts of the businesses in your category and area over time.

 

### Multi-location research

Find every listed location of a chain or franchise in a city, with its address, phone and hours.

 

### Business data for AI agents

Give an agent current hours, phone numbers and addresses of US businesses when it answers local questions.

 

 

 

  

Common questions

## // Yellow Pages scraping FAQ

 Is scraping Yellow Pages legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public search and business pages, stay signed out, and review Yellow Pages' terms of use. Some listings belong to sole traders, so a business name or phone number can also identify a person, and privacy laws such as the CCPA can apply to how you store and use it. Get legal advice for commercial use.

 Do I need a Yellow Pages API key?

No. These requests read the public search and business pages a visitor sees on yellowpages.com, so a Scrapfly API key is all you need. You get the fields the page publishes, as JSON.

 Which fields come from search results and which from business pages?

Search results give each listing's name, business page URL, street address and phone, plus its star rating, review count and opening hours when it has them. The business page adds the website, every category the business is listed under, the founding year when it is listed, and recent reviews.

 How do I scrape every page of a Yellow Pages search?

Add `page=2`, `page=3` and so on to the search URL. Page one shows the total, as in "Showing 1-30 of 952", so you can work out the page count before you start. The open-source scraper does this for you.

 Can I scrape Yellow Pages reviews?

Yes. You get the average rating and review count of each business, and each business page publishes its most recent reviews with a star rating, a date and the review text in its JSON-LD.

 Why do my Yellow Pages requests return 403?

yellowpages.com runs behind Cloudflare, which answers plain datacenter requests with a 403 "Just a moment..." page. Turn on Unblocker with `unblocker=true` and keep `country=US`.

 How much does scraping Yellow Pages cost?

A Yellow Pages page costs 25 credits on residential proxies with Unblocker on. When Yellow Pages asks for a Cloudflare check, clearing it adds 50 credits, and browser rendering 5 more, so that request costs 75 or 80. The organization extraction model adds 5 credits, and a full-page Screenshot API capture costs 60. The free plan includes 1,000 credits a month.

 What are the rate limits when scraping Yellow Pages?

Scrapfly sets no Yellow Pages-specific limit. Your maximum parallelism is the concurrency quota on your plan, or a lower cap configured for the project. Each in-flight request uses one slot until it finishes.

 

 

  

Start with one request

## Send the URL. Read the listing.

Web Scraping API with Unblocker, one call per Yellow Pages search or business page.

Proxies across 75+ countries

[Yellow Pages scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/yellowpages-scraper)[How to scrape Yellow Pages](https://scrapfly.io/blog/posts/how-to-scrape-yellowpages)[All scraper pages](https://scrapfly.io/scrapers)

 

[Get free API key](https://scrapfly.io/register)[Read the docs](https://scrapfly.io/docs/scrape-api/getting-started)