The Piloterr Yellowpages Scraper API lets you extract public data from Yellowpages as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- Yellowpages Business API — Extract a full Yellow Pages business profile from a listing URL, including phone, website, categories, and ratings via browser rendering.
- Yellowpages Search API — Search Yellow Pages businesses from a full search URL and retrieve names, phones, addresses, ratings, opening hours, and pagination via browser rendering.
Use it for lead generation, CRM enrichment, market mapping, investment research or job market analytics.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| Yellowpages Business API | /v2/yellowpages/business |
2 | Extract a full Yellow Pages business profile from a listing URL, including phone, website, categories, and ratings via browser rendering. |
| Yellowpages Search API | /v2/yellowpages/search |
2 | Search Yellow Pages businesses from a full search URL and retrieve names, phones, addresses, ratings, opening hours, and pagination via browser rendering. |
- How it works
- Yellowpages Business API
- Yellowpages Search API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Extract a full Yellow Pages business profile from a listing URL, including phone, website, categories, and ratings via browser rendering.
GET | POST https://api.piloterr.com/v2/yellowpages/business · 2 credits per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Full Yellow Pages business listing URL. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/yellowpages/business",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "https://www.yellowpages.com/los-angeles-ca/mip/anawalt-lumber-13945594?lid=1002108313121",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type YellowpagesBusiness = {
name?: string;
phone?: string;
rating?: string;
address?: string;
website?: string;
categories?: string[];
rating_count?: number;
};
const params = new URLSearchParams({
"query": "https://www.yellowpages.com/los-angeles-ca/mip/anawalt-lumber-13945594?lid=1002108313121",
});
const response = await fetch(`https://api.piloterr.com/v2/yellowpages/business?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as YellowpagesBusiness;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/yellowpages/business
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "https://www.yellowpages.com/los-angeles-ca/mip/anawalt-lumber-13945594?lid=1002108313121"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"name": "Ritz Plumbing Heating, Air & Electrical",
"phone": "example",
"rating": "five",
"address": "1355 S La Brea Ave, Los Angeles, CA 90019",
"website": "http://www.ritzplumbinginc.org",
"categories": [
"Plumbers",
"Air Conditioning Contractors & Systems"
],
"rating_count": 3
}| Field | Type | Description |
|---|---|---|
name |
string | |
phone |
string | |
rating |
string | |
address |
string | |
website |
string | |
categories |
string[] | |
rating_count |
integer |
Search Yellow Pages businesses from a full search URL and retrieve names, phones, addresses, ratings, opening hours, and pagination via browser rendering.
GET | POST https://api.piloterr.com/v2/yellowpages/search · 2 credits per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Full Yellow Pages search URL. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/yellowpages/search",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "https://www.yellowpages.com/los-angeles-ca/plumbers",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type YellowpagesSearch = {
results?: {
url?: string;
name?: string;
phone?: string;
postal_code?: string;
rating_value?: number;
review_count?: number;
opening_hours?: string[];
address_region?: string;
street_address?: string;
address_country?: string;
address_locality?: string;
}[];
pagination?: {
next?: number;
current?: number;
next_url?: string;
per_page?: number;
other_pages?: number[];
total_count?: number;
total_pages?: number;
has_next_page?: boolean;
};
};
const params = new URLSearchParams({
"query": "https://www.yellowpages.com/los-angeles-ca/plumbers",
});
const response = await fetch(`https://api.piloterr.com/v2/yellowpages/search?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as YellowpagesSearch;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/yellowpages/search
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "https://www.yellowpages.com/los-angeles-ca/plumbers"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"results": [
{
"url": "https://www.yellowpages.com/los-angeles-ca/mip/anawalt-lumber-13945594?lid=1002108313121",
"name": "Anawalt Lumber",
"phone": "example",
"postal_code": "90064",
"rating_value": 4.8,
"review_count": 5,
"opening_hours": [
"Mo-Fr 06:00-20:00",
"Sa 08:00-20:00"
],
"address_region": "CA",
"street_address": "11060 W Pico Blvd",
"address_country": "US",
"address_locality": "Los Angeles"
},
{
"url": "https://www.yellowpages.com/los-angeles-ca/mip/emergency-rooter-542379108?lid=1002116238752",
"name": "Emergency Rooter",
"phone": "example",
"postal_code": "90019",
"rating_value": 4.5,
"review_count": 2,
"opening_hours": [
"Mo-Su"
],
"address_region": "CA",
"street_address": "1319 S La Brea Ave",
"address_country": "US",
"address_locality": "Los Angeles"
}
],
"pagination": {
"next": 2,
"current": 1,
"next_url": "https://www.yellowpages.com/los-angeles-ca/plumbers?page=2",
"per_page": 30,
"other_pages": [
2,
3
],
"total_count": 1401,
"total_pages": 47,
"has_next_page": true
}
}| Field | Type | Description |
|---|---|---|
results[] |
object[] | |
results[].url |
string | |
results[].name |
string | |
results[].phone |
string | |
results[].postal_code |
string | |
results[].rating_value |
number | |
results[].review_count |
integer | |
results[].opening_hours |
string[] | |
results[].address_region |
string | |
results[].street_address |
string | |
results[].address_country |
string | |
results[].address_locality |
string | |
pagination |
object | |
pagination.next |
integer | |
pagination.current |
integer | |
pagination.next_url |
string | |
pagination.per_page |
integer | |
pagination.other_pages |
integer[] | |
pagination.total_count |
integer | |
pagination.total_pages |
integer | |
pagination.has_next_page |
boolean |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Business | Search |
|---|---|---|
| cURL (Bash) | business |
search |
| PHP | business |
search |
| C# | business |
search |
| Go | business |
search |
| Java | business |
search |
| Ruby | business |
search |
| Node.js | business |
search |
- Lead generation — Build target account lists from public company data.
- CRM enrichment — Keep firmographics, websites and descriptions up to date.
- Market mapping — Map competitors and segments across countries and industries.
- Investment research — Screen companies, funding and signals for deal flow.
- Job market analytics — Track hiring, roles and salaries where available.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — Yellowpages plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/yellowpages/business 2, /v2/yellowpages/search 2. See the Piloterr website for plans.
Each endpoint returns structured JSON: Yellowpages Business — name, phone, rating, address, website, categories; Yellowpages Search — results[], results[].url, results[].name, results[].phone, results[].postal_code, results[].rating_value.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
- Company Database Scraper API
- Crunchbase Scraper API
- Europages Scraper API
- Fiverr Scraper API
- G2 Scraper API
- GitHub Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
Yellowpages is a trademark of its respective owner. This repository is not affiliated with or endorsed by Yellowpages. Examples are released under the MIT license.
