Yellow Pages scraper API: search results as JSON
Send any Yellow Pages page URL with recipe=yellowpages and get name, title, address and 4 more fields as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 7 fields
- 5 credits a page · $0.50 per 1,000
- Intermittent · 25% in 7 days
5,000 free credits for 21 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=Los+Angeles%2C+CA' \
--data-urlencode 'recipe=yellowpages'
{
"result": {
"places": [
{
"name": "Casa Bianca Pizza Pie",
"title": "1. Casa Bianca Pizza Pie",
"address": "Los Angeles, CA 90041"
}
]
},
"success": true
}
What you get from Yellow Pages
The fields of each page type and a real sample from our last validation, shortened.
Search and listing pages recipe=yellowpages 5 credits a page
| Field | Type | Example |
|---|---|---|
places | list of 3+ items | |
places[].url | URL | https://www.yellowpages.com/los-angeles-ca/mip/griddle-cafe-1706556... |
places[].title | text | 1. Griddle Cafe |
places[].image | image URL | https://i2.ypcdn.com/blob/b994062df41edeeeccb67ceb1c560151e642056c_... |
places[].name | text | Griddle Cafe |
places[].category | text | Pizza |
places[].address | text | 7916 W Sunset BlvdLos Angeles, CA 90046 |
places[].neighborhood | text | Los Angeles, CA 90046 |
Sample answer, validated 2026-11-28
{
"places": [
{
"url": "https://www.yellowpages.com/los-angeles-ca/mip/casa-bianca-pizza-pie-13519?lid=13519#gallery",
"title": "1. Casa Bianca Pizza Pie",
"image": "https://i4.ypcdn.com/blob/0040941ca934c0ffed7e2d524aad338d37668e27_130x130_crop.jpg?fbfdc6472",
"name": "Casa Bianca Pizza Pie",
"category": "Pizza",
"address": "Los Angeles, CA 90041",
"neighborhood": "Los Angeles, CA 90041"
},
{
"url": "https://www.yellowpages.com/los-angeles-ca/mip/papa-johns-pizza-466226668?lid=466226668#gallery",
"title": "2. Papa John's Pizza",
"image": "https://i4.ypcdn.com/blob/4420f2baae1d9439042954212394b172e180c01b_130x130_crop.jpg?fbfdc6472",
"name": "Papa John's Pizza",
"category": "Pizza",
"address": "9844 National BlvdLos Angeles, CA 90034",
"neighborhood": "Los Angeles, CA 90034"
}
]
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on Yellow Pages (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=Los+Angeles%2C+CA' \
--data-urlencode 'recipe=yellowpages'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=Los+Angeles%2C+CA", "recipe": "yellowpages"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["places"][:3]:
print(item["name"], item["title"], item["address"])
# Example output:
# Casa Bianca Pizza Pie 1. Casa Bianca Pizza Pie Los Angeles, CA 90041
# Papa John's Pizza 2. Papa John's Pizza 9844 National BlvdLos Angeles, CA 90034
const params = new URLSearchParams({
url: "https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=Los+Angeles%2C+CA",
recipe: "yellowpages",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.places.slice(0, 3)) {
console.log(item.name, item.title, item.address);
}
// Example output:
// Casa Bianca Pizza Pie 1. Casa Bianca Pizza Pie Los Angeles, CA 90041
// Papa John's Pizza 2. Papa John's Pizza 9844 National BlvdLos Angeles, CA 90034
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
Search Yellow Pages with parameters
One call, no URL: send recipe=yellowpages/search with the parameters below. We build the Yellow Pages search URL and answer the listing JSON, at the same credits as the page call.
| Parameter | Type | Values |
|---|---|---|
query required | string | Search words, as typed in the Yellow Pages search box. |
location | string | Place as typed on Yellow Pages (default Los Angeles, CA). |
page | int | 1 to 10 |
One call (query=plumber)
curl -G 'https://api.ujeebu.com/scrape' \
-H 'ApiKey: YOUR_API_KEY' \
-d 'recipe=yellowpages/search' \
-d 'query=plumber'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"recipe": "yellowpages/search", "query": "plumber"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
for item in r.json()["result"]["places"][:3]:
print(item["name"], item["title"], item["address"])
# Example output:
# Casa Bianca Pizza Pie 1. Casa Bianca Pizza Pie Los Angeles, CA 90041
# Papa John's Pizza 2. Papa John's Pizza 9844 National BlvdLos Angeles, CA 90034
const params = new URLSearchParams({
recipe: "yellowpages/search",
query: "plumber",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
for (const item of result.places.slice(0, 3)) {
console.log(item.name, item.title, item.address);
}
// Example output:
// Casa Bianca Pizza Pie 1. Casa Bianca Pizza Pie Los Angeles, CA 90041
// Papa John's Pizza 2. Papa John's Pizza 9844 National BlvdLos Angeles, CA 90034
The answer carries the built URL in the Ujb-Url header; a missing or invalid parameter answers 400 naming it (free). Have the URL already? Send it with recipe=yellowpages/listing. Search with parameters in the docs
What people build with Yellow Pages data
Local market research
Map the businesses of a category in a city, with their ratings and price range.
Learn more
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Search results | 5 | $0.82 | $0.50 |
FAQ
What does the Yellow Pages recipe return?
JSON with 7 fields from search results (recipe=yellowpages), for example name, title, address, url, image. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Yellow Pages?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on Yellow Pages: JavaScript rendering. Send only the URL and recipe=yellowpages.
What happens when Yellow Pages changes its pages?
We check Yellow Pages every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I search Yellow Pages with parameters?
Yes, in one call: send recipe=yellowpages/search with query, location, page and no URL. We build the Yellow Pages search URL (returned in the Ujb-Url header), apply recipe=yellowpages/listing and answer its JSON, at the same credits as the page call. A missing or invalid parameter answers 400 naming it, and that call is free.
Related recipes
TripAdvisorSearch results · 25 credits
ZomatoSearch results · 25 credits
LinkedInSearch results, Detail page, Profile · 5 credits
AmazonSearch results · 5 credits
X (Twitter)Profile · 5 credits
InstagramProfile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Yellow Pages.
Get Yellow Pages data as JSON today.
5,000 free credits for 21 days. No card.