Yellow Pages Search API
The Yellow Pages Search API returns the US businesses Yellow Pages lists for a search term and location as JSON: each business's name, categories, phone, address with its street, city, state and ZIP code, website, whether it is open now, opening hours, Yellow Pages and Tripadvisor ratings, years in business, price level and amenities, a review excerpt or the business's own description, and the coupons and special offers it shows. The response also has the ads shown with the results, the filters of the search, related categories and the next page.
Each page holds 30 results, and Yellow Pages shows up to 100 pages. Fields a business does not list are left out, and is_paid_listing appears only on businesses that pay for higher placement in the default order.
Pass a result's place_id to the Yellow Pages Place API to get its full business page and reviews.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
This parameter defines the search term, such as a business type (
plumber), a cuisine (mexican restaurants) or a business name (starbucks). HTML tags are not accepted.
Geographic Location
-
- Name
-
location - Required
- Required
- Description
-
This parameter defines where to search. It accepts a US city and state (
Chicago, IL), a ZIP code (60625), a neighborhood (East Williamsburg, Brooklyn, NY) or a state (TX).search_information.locationshows the place Yellow Pages searched in. A location Yellow Pages cannot place returnserrorwith HTTP 200 and counts as a search.
Sorting
-
- Name
-
sort_by - Required
- Optional
- Description
-
This parameter defines how results are ordered.
Supported values arerelevance(default),distance,highest_ratingandname(A to Z).
Filters
-
- Name
-
category - Required
- Optional
- Description
-
This parameter narrows results to one category, as a
titlefrom the Category filter infilters, e.g.PizzaorBreakfast, Brunch & Lunch Restaurants.
-
- Name
-
price - Required
- Optional
- Description
-
This parameter narrows restaurant results by price level, from
1($) to4($$$$). Combine levels with commas, e.g.1,2, to get results at any of them.
-
- Name
-
neighborhood - Required
- Optional
- Description
-
This parameter narrows results to one neighborhood, as a
titlefrom the Neighborhoods filter infilters, e.g.East LA.
-
- Name
-
filters - Required
- Optional
- Description
-
This parameter applies filter options by their
valuefromfilters, such asfeatures:GOOD_FOR_KIDS,insurance:Delta Dentalorpractice_area:Bankruptcy Law. Combine options with commas. Options of the same filter match any of them, and options of different filters must all match.
-
- Name
-
is_open_24_hours - Required
- Optional
- Description
-
Set this parameter to
trueto return only businesses open 24 hours.
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
This parameter defines the page of results to return, with 30 results per page. Yellow Pages shows up to 100 pages, so
pagegoes up to100. A page past the last results returnserrorwith HTTP 200 and counts as a search.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
yellowpages_search.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
Plumbers in Chicago, with the ads above the results and in the right rail, the filters, related categories and the next page.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&location=Chicago%2C+IL&q=plumber
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "plumber",
"location": "Chicago, IL"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_xJWHWmyXogEJfwfQIl9Z60NY",
"status": "Success",
"created_at": "2026-11-20T16:25:09Z",
"request_time_taken": 1.26,
"parsing_time_taken": 0.02,
"total_time_taken": 1.28,
"request_url": "https://www.yellowpages.com/search?search_terms=plumber&geo_location_terms=Chicago%2C+IL",
"html_url": "https://www.searchapi.io/api/v1/searches/search_xJWHWmyXogEJfwfQIl9Z60NY.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_xJWHWmyXogEJfwfQIl9Z60NY"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "plumber",
"location": "Chicago, IL"
},
"search_information": {
"query_displayed": "plumber",
"location_displayed": "Chicago, IL",
"total_results": 946,
"location": {
"type": "city",
"city": "Chicago",
"state": "IL",
"gps_coordinates": {
"latitude": 41.850033,
"longitude": -87.6500523
}
}
},
"ads": [
{
"position": 1,
"block": "top",
"place_id": "11404362",
"title": "Four Seasons Heating and Air",
"link": "https://www.yellowpages.com/chicago-il/mip/four-seasons-heating-and-air-11404362",
"categories": [
{
"title": "Plumbers",
"link": "https://www.yellowpages.com/chicago-il/plumbers"
},
"..."
],
"phone": "(855) 486-4686",
"address": "5701 W 73rd St, Chicago, IL 60638",
"street_address": "5701 W 73rd St",
"city": "Chicago",
"state": "IL",
"postal_code": "60638",
"opening_hours": [
"Mo-Fr 09:00-17:00"
],
"thumbnail": "https://i2.ypcdn.com/blob/603f170fbcd6ebfa63f343ade1c475d1c3d6c819_130x130_crop.jpg?6b024a6a60a13721..."
},
"..."
],
"local_results": [
{
"position": 1,
"place_id": "579608019",
"title": "ALL ED ELECTRIC",
"link": "https://www.yellowpages.com/chicago-il/mip/all-ed-electric-579608019",
"categories": [
{
"title": "Plumbers",
"link": "https://www.yellowpages.com/chicago-il/plumbers"
},
"..."
],
"phone": "(312) 549-9745",
"address": "3035 W Leland Av, Chicago, IL 60625",
"street_address": "3035 W Leland Av",
"city": "Chicago",
"state": "IL",
"postal_code": "60625",
"website": "https://alledelectricil.com",
"open_state": "open now",
"opening_hours": [
"Mo-Sa 08:00-18:00"
],
"years_with_yp": 1,
"description": "At All Ed Electric, we power homes and businesses with high-quality electrical solutions designed for today’s needs. From EV charging station installations and…",
"thumbnail": "https://i4.ypcdn.com/blob/80336869bdf546959760223cc7649315f569b1c7_130x130_crop.jpg?fbfdc6472",
"is_paid_listing": true
},
"..."
],
"filters": [
{
"title": "Category",
"options": [
{
"title": "Plumbers",
"value": "headingtext:Plumbers",
"count": 957
},
"..."
]
},
"..."
],
"related_categories": [
{
"title": "Sewer Cleaners & Repairers",
"link": "https://www.yellowpages.com/chicago-il/sewer-cleaners-repairers"
},
"..."
],
"pagination": {
"current": 1,
"next": "https://www.yellowpages.com/search?search_terms=plumber&geo_location_terms=Chicago%2C%20IL&page=2"
}
}
Local Results
Each result has its place_id, contact details, the address split into street, city, state and ZIP code, opening hours in schema.org format, and the Yellow Pages and Tripadvisor ratings when the business has them.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&location=New+York%2C+NY&q=pizza
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "pizza",
"location": "New York, NY"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_ZQ0YrYXIkjhMuu3pVIR5pWCT",
"status": "Success",
"created_at": "2026-11-20T16:26:02Z",
"request_time_taken": 1.3,
"parsing_time_taken": 0.01,
"total_time_taken": 1.31,
"request_url": "https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=New+York%2C+NY",
"html_url": "https://www.searchapi.io/api/v1/searches/search_ZQ0YrYXIkjhMuu3pVIR5pWCT.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_ZQ0YrYXIkjhMuu3pVIR5pWCT"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "pizza",
"location": "New York, NY"
},
"search_information": {
"query_displayed": "pizza",
"location_displayed": "New York, NY",
"total_results": 1693,
"location": {
"type": "city",
"city": "New York",
"state": "NY",
"gps_coordinates": {
"latitude": 40.7142691,
"longitude": -74.0059729
}
}
},
"local_results": [
{
"position": 1,
"place_id": "459218516",
"title": "Famous Original Ray's Pizza",
"link": "https://www.yellowpages.com/new-york-ny/mip/famous-original-rays-pizza-459218516",
"categories": [
{
"title": "Pizza",
"link": "https://www.yellowpages.com/new-york-ny/pizza"
},
"..."
],
"rating": 3.75,
"reviews": 4,
"web_reviews": [
{
"title": "Tripadvisor",
"rating": 3.5,
"reviews": 185
},
"..."
],
"phone": "(212) 956-7297",
"address": "736 7th Ave, New York, NY 10019",
"street_address": "736 7th Ave",
"city": "New York",
"state": "NY",
"postal_code": "10019",
"website": "http://www.rayspizza.com",
"open_state": "open now",
"opening_hours": [
"Mo-Su 09:00-04:00"
],
"years_in_business": 23,
"review_snippet": "Dining at Famous Original Ray's Pizza was an absolute delight and a true testament to the artistry of pizza making. From the moment I walked in, the aroma of freshly baked…",
"thumbnail": "https://i4.ypcdn.com/blob/130c80297994a5442323b662240e86e63faca689_130x130_crop.jpg?fbfdc6472"
},
"..."
]
}
Filters
Each filter option has the value to pass in filters, and is_selected marks the options the search applied. The count of an option is Yellow Pages' estimate of its results.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&filters=headingtext%3AItalian+Restaurants&location=New+York%2C+NY&q=restaurants
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "restaurants",
"location": "New York, NY",
"filters": "headingtext:Italian Restaurants"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_Swx531DWbMHt4VDhpZQMbJFk",
"status": "Success",
"created_at": "2026-11-20T16:26:12Z",
"request_time_taken": 4.09,
"parsing_time_taken": 0.01,
"total_time_taken": 4.1,
"request_url": "https://www.yellowpages.com/search?search_terms=restaurants&geo_location_terms=New+York%2C+NY&refine...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_Swx531DWbMHt4VDhpZQMbJFk.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_Swx531DWbMHt4VDhpZQMbJFk"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "restaurants",
"location": "New York, NY",
"filters": "headingtext:Italian Restaurants"
},
"search_information": {
"query_displayed": "restaurants",
"location_displayed": "New York, NY",
"total_results": 1603,
"location": {
"type": "city",
"city": "New York",
"state": "NY",
"gps_coordinates": {
"latitude": 40.7142691,
"longitude": -74.0059729
}
}
},
"filters": [
{
"title": "Category",
"options": [
{
"title": "Italian Restaurants",
"value": "headingtext:Italian Restaurants",
"count": 1646,
"is_selected": true
},
"..."
]
},
"..."
]
}
Ads
Ads are numbered within their block: top above the results, bottom below them and right in the right rail.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&location=Austin%2C+TX&q=dentist
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "dentist",
"location": "Austin, TX"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_f5LEJ7HLqqvKSw714RkM00iK",
"status": "Success",
"created_at": "2026-11-20T16:26:34Z",
"request_time_taken": 1.17,
"parsing_time_taken": 0.02,
"total_time_taken": 1.19,
"request_url": "https://www.yellowpages.com/search?search_terms=dentist&geo_location_terms=Austin%2C+TX",
"html_url": "https://www.searchapi.io/api/v1/searches/search_f5LEJ7HLqqvKSw714RkM00iK.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_f5LEJ7HLqqvKSw714RkM00iK"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "dentist",
"location": "Austin, TX"
},
"search_information": {
"query_displayed": "dentist",
"location_displayed": "Austin, TX",
"total_results": 1942,
"location": {
"type": "city",
"city": "Austin",
"state": "TX",
"gps_coordinates": {
"latitude": 30.267153,
"longitude": -97.7430608
}
}
},
"ads": [
{
"position": 1,
"block": "top",
"place_id": "557404093",
"title": "Aspen Dental",
"link": "https://www.yellowpages.com/austin-tx/mip/aspen-dental-557404093",
"categories": [
{
"title": "Dentists",
"link": "https://www.yellowpages.com/austin-tx/dentists"
},
"..."
],
"phone": "(512) 501-1890",
"address": "12901 N Interstate 35, Austin, TX 78753",
"street_address": "12901 N Interstate 35",
"city": "Austin",
"state": "TX",
"postal_code": "78753",
"website": "https://www.aspendental.com/dentist/tx/austin/12901-n-interstate-hwy-35/?utm_source=YP&utm_medium=IY...",
"opening_hours": [
"Mo-Th 08:00-17:30",
"Fr 08:00-13:00"
],
"years_in_business": 6,
"links": [
{
"title": "Special Offers",
"link": "http://www.aspendental.com/?utm_source=yp&utm_medium=PlatinumListing&utm_term=AllCategories&utm_camp..."
},
"..."
],
"thumbnail": "https://i1.ypcdn.com/videos/IY3000077450/IY3000077450.png?6b024a6a60a13721165a2690c9bdd5e8"
},
"..."
]
}
Sort by Distance
A neighborhood search sorted by distance. Results show their distance from the searched location when Yellow Pages lists one.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&location=East+Williamsburg%2C+Brooklyn%2C+NY&q=pizza&sort_by=distance
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "pizza",
"location": "East Williamsburg, Brooklyn, NY",
"sort_by": "distance"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_BbVt80sE7AtLO20Uww64B6yO",
"status": "Success",
"created_at": "2026-11-20T16:26:49Z",
"request_time_taken": 1.57,
"parsing_time_taken": 0.01,
"total_time_taken": 1.58,
"request_url": "https://www.yellowpages.com/search?search_terms=pizza&geo_location_terms=East+Williamsburg%2C+Brookl...",
"html_url": "https://www.searchapi.io/api/v1/searches/search_BbVt80sE7AtLO20Uww64B6yO.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_BbVt80sE7AtLO20Uww64B6yO"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "pizza",
"location": "East Williamsburg, Brooklyn, NY",
"sort_by": "distance"
},
"search_information": {
"query_displayed": "pizza",
"location_displayed": "East Williamsburg, Brooklyn, NY",
"total_results": 1835,
"location": {
"type": "neighborhood",
"neighborhood": "East Williamsburg",
"city": "Brooklyn",
"state": "NY",
"gps_coordinates": {
"latitude": 40.7077395,
"longitude": -73.9364555
}
}
},
"local_results": [
{
"position": 1,
"place_id": "10970149",
"title": "Danny's Pizzeria",
"link": "https://www.yellowpages.com/brooklyn-ny/mip/dannys-pizzeria-10970149",
"categories": [
{
"title": "Pizza",
"link": "https://www.yellowpages.com/brooklyn-ny/pizza"
},
"..."
],
"rating": 4.5,
"reviews": 2,
"web_reviews": [
{
"title": "Tripadvisor",
"rating": 4.0,
"reviews": 14
},
"..."
],
"phone": "(718) 381-1669",
"address": "241 Bushwick Ave, Brooklyn, NY 11206",
"street_address": "241 Bushwick Ave",
"city": "Brooklyn",
"state": "NY",
"postal_code": "11206",
"website": "http://www.dannysbrooklyn.com",
"open_state": "opening soon",
"opening_hours": [
"Mo-Su 11:30-23:00"
],
"years_in_business": 35,
"review_snippet": "For the past 30 years I have been eating Danny's pizza. Its one of the best. The food is wonderful,the service is great, and Danny is very friendly. Its a family place for…",
"distance": "0.2 miles",
"extracted_distance": 0.2
},
"..."
]
}
Pagination
The second page of lawyers in Miami. pagination.next is left out on the last page, and search_information.total_results when Yellow Pages shows no total, as for a search that finds one business.
https://www.searchapi.io/api/v1/search?engine=yellowpages_search&location=Miami%2C+FL&page=2&q=lawyer
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "yellowpages_search",
"q": "lawyer",
"location": "Miami, FL",
"page": "2"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_TWoQmn5cSArBPXvyN4XklMXd",
"status": "Success",
"created_at": "2026-11-20T16:26:55Z",
"request_time_taken": 2.63,
"parsing_time_taken": 0.01,
"total_time_taken": 2.64,
"request_url": "https://www.yellowpages.com/search?search_terms=lawyer&geo_location_terms=Miami%2C+FL&page=2",
"html_url": "https://www.searchapi.io/api/v1/searches/search_TWoQmn5cSArBPXvyN4XklMXd.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_TWoQmn5cSArBPXvyN4XklMXd"
},
"search_parameters": {
"engine": "yellowpages_search",
"q": "lawyer",
"location": "Miami, FL",
"page": 2
},
"search_information": {
"query_displayed": "lawyer",
"location_displayed": "Miami, FL",
"total_results": 3000,
"location": {
"type": "city",
"city": "Miami",
"state": "FL",
"gps_coordinates": {
"latitude": 25.789031,
"longitude": -80.226443
}
}
},
"pagination": {
"current": 2,
"next": "https://www.yellowpages.com/search?search_terms=lawyer&geo_location_terms=Miami%2C%20FL&page=3"
}
}