---
title: "Yellow Pages API: US local business search as JSON"
description: "Yellow Pages API for US local business search, business profiles with hours, categories and contacts, and customer reviews as JSON, from 9 credits a call."
url: https://perceptlayer.com/apis/yellowpages
---

[APIs](https://perceptlayer.com/apis) / [Reviews](https://perceptlayer.com/verticals/reviews) / Yellow Pages

from 9 credits per call 3 endpoints 3 datapoints 

# Yellow Pages API

Yellow Pages API for US local business search, business profiles with hours, categories and contacts, and customer reviews as JSON, from 9 credits a call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Yellow Pages

GET /v1/yellowpages/business?id=%2Faustin-tx%2Fmip%2Fclarke-kent-plumbing-10674347 

```
{
  "success": true,
  "data": {
    "business": {
      "id": "/austin-tx/mip/clarke-kent-plumbing-10674347",
      "ypid": "10674347",
      "name": "Clarke Kent Plumbing",
      "url": "https://www.yellowpages.com/austin-tx/mip/clarke-kent-plumbing-10674347",
      "claimed": true,
      "description": "Regardless of when you call us, you will always get a real person. We sell service as well as plumbing. What's important to us is building trust- one customer at a time. And we've been doing that since 1986.",
      "categories": [
        "Plumbers",
        "Plumbing-Drain & Sewer Cleaning"
      ],
      "rating": 3,
      "review_count": 15,
      "address": {
        "street": "1408 W Ben White Blvd",
        "city": "Austin",
        "region": "TX",
        "postal_code": "78704",
        "formatted": "1408 W Ben White Blvd, Austin, TX 78704"
      },
      "coordinates": {
        "lat": 30.228342,
        "lon": -97.78136
      },
      "phone": "(512) 766-0970",
      "email": "admin@clarkekentplumbing.com",
      "website": "http://www.clarkekentplumbing.com",
      "hours": [
        {
          "day": "monday",
          "opens": "09:00",
          "closes": "17:00"
        },
        {
          "day": "tuesday",
          "opens": "09:00",
          "closes": "17:00"
        },
        {
          "day": "wednesday",
          "opens": "09:00",
          "closes": "17:00"
        }
      ],
      "open_status": "closed now",
      "years_in_business": 40,
      "founded": "1986",
      "payment_methods": [
        "cash",
        "master card",
        "amex"
      ],
      "services": [
        "backflow prevention devices installation, repaint and testing",
        "emergency service for water heaters",
        "water main repairs"
      ],
      "amenities": [
        "FAST & SAME DAY EMERGENCY SERVICE"
      ],
      "languages": [
        "Spanish"
      ],
      "social_links": [
        "https://www.facebook.com/Clarke-Kent-Plumbing-Inc-140942559358301/",
        "https://twitter.com/CKPlumingInc",
        "https://www.linkedin.com/company/clarke-kent-plumbing"
      ],
      "images": [
        "https://i3.ypcdn.com/blob/f4836299151475e05471929ce4083a3802453e39",
        "https://i4.ypcdn.com/blob/f0ea11c1b3d934453f0c27aa8469eaedaae7e8ce",
        "https://i3.ypcdn.com/blob/e8dfc4e3ca7b166a83ed531269226f9fe3c2c31b"
      ]
    }
  },
  "meta": {
    "endpoint_family": "business_detail",
    "request_id": "req_784ca0d36aea499e97613fc59760c2bf",
    "credits_charged": 9,
    "credits_remaining": 1752
  }
}
```

200 OK JSON X-Credits-Used: 9

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `business`: the fields and shapes you will get, shortened to 3 items.

| # | day string | opens string | closes string |
| --- | --- | --- | --- |
| 1 | monday | 09:00 | 17:00 |
| 2 | tuesday | 09:00 | 17:00 |
| 3 | wednesday | 09:00 | 17:00 |

Recorded from our API · 3 items shown · 3 datapoints per item GET /v1/yellowpages/business?id=%2Faustin-tx%2Fmip%2Fclarke-kent-plumbing-10674347

3 datapoints

### Other

-   day string
-   opens string
-   closes string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/yellowpages/business?id=%2Faustin-tx%2Fmip%2Fclarke-kent-plumbing-10674347" \
  -H "X-API-Key: $API_KEY"
```

Yellow Pages · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/yellowpages/business`](https://perceptlayer.com/apis/yellowpages/business) | `id` | `business` | 9 credits |
| [GET `/v1/yellowpages/reviews`](https://perceptlayer.com/apis/yellowpages/reviews) | `id` +1 optional | JSON | 9 credits |
| [GET `/v1/yellowpages/search`](https://perceptlayer.com/apis/yellowpages/search) | `query` `location` +1 optional | JSON | 12 credits |

Overview

## About the Yellow Pages API

## What you can get

The Yellow Pages API returns US local business data from Yellow Pages as JSON through 3 endpoints.

-   **Search:** `search` takes a `query` and a `location` (for example `Austin, TX`), with `page`.
-   **Businesses:** `business` takes an `id`, the listing path that search results carry.
-   **Reviews:** `reviews` takes the same `id`, with `page`.

The recorded `business` call for a plumber in Austin returns a `business` with `id`, `ypid`, `name`, `url`, `claimed`, `description`, `categories`, `rating`, `review_count`, `address` (street, city, region, postal code and a formatted line), `coordinates`, `phone`, `email`, `website`, `hours` by day, `open_status`, `years_in_business`, `founded`, `payment_methods`, `services`, `amenities`, `languages`, `social_links` and `images`.

## How a call works

Search a category in a city: `GET /v1/yellowpages/search?query=plumbers&location=Austin, TX` with your key in the `X-API-Key` header. Each result carries an `id` such as `/austin-tx/mip/clarke-kent-plumbing-10674347`; pass it to `business` for the full profile or to `reviews` for what customers wrote. `search` costs 12 credits and `business` and `reviews` 9 credits each per successful call; failed calls cost nothing.

Reviews JSON REST MCP

### More reviews APIs

[11880.com](https://perceptlayer.com/apis/11880) [Bazaarvoice](https://perceptlayer.com/apis/bazaarvoice) [Capterra](https://perceptlayer.com/apis/capterra) [Clutch](https://perceptlayer.com/apis/clutch) [ConsumerAffairs](https://perceptlayer.com/apis/consumeraffairs) [Das Örtliche](https://perceptlayer.com/apis/dasoertliche) [Doctolib](https://perceptlayer.com/apis/doctolib) [Feefo](https://perceptlayer.com/apis/feefo) [Fresha](https://perceptlayer.com/apis/fresha) [G2](https://perceptlayer.com/apis/g2) [Gelbe Seiten](https://perceptlayer.com/apis/gelbeseiten) [GoodFirms](https://perceptlayer.com/apis/goodfirms)

Use cases

### Build a list of local businesses for a category and city

`Use the Yellow Pages API to build a list of local businesses for a category and city` 

### Enrich a business record with hours, phone, website and categories

`Use the Yellow Pages API to enrich a business record with hours, phone, website and categories` 

### Track ratings and review counts for businesses you follow

`Use the Yellow Pages API to track ratings and review counts for businesses you follow` 

### Read customer reviews for a business before a call or visit

`Use the Yellow Pages API to read customer reviews for a business before a call or visit` 

FAQ

## Questions

**How much does the Yellow Pages API cost?**

\`search\` costs 12 credits per successful call, and \`business\` and \`reviews\` cost 9 each. Failed calls cost nothing. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Do I need a Yellow Pages account?**

No. You call this Yellow Pages API with your Perceptlayer key in the \`X-API-Key\` header, with no Yellow Pages login.

**Which locations does it cover?**

The \`location\` is a US city and state, such as \`Austin, TX\`, as on Yellow Pages itself.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official Yellow Pages API?**

No. Perceptlayer is an independent service and is not affiliated with Yellow Pages. It returns Yellow Pages data as JSON with a Perceptlayer key, so there is no Yellow Pages developer account, app review or partner approval to get first. It only reads data: if Yellow Pages has an official API and you need to act on your own Yellow Pages account, such as posting, managing orders or reading private data, use that one.

**Should I build a Yellow Pages scraper instead?**

You can, but a Yellow Pages scraper is code you maintain: page changes break it, requests get blocked, and Yellow Pages's terms govern how you collect data. The Yellow Pages API gives you 3 endpoints of named JSON fields for 9 credits per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Yellow Pages API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
