Skip to main content
POST
/
api
/
yellowpages
/
businesses
/
search
/yellowpages/businesses/search
curl --request POST \
  --url https://api.anysite.io/api/yellowpages/businesses/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300,
  "location": "",
  "sort": "default"
}
'
[
  {
    "@type": "YellowpagesBusinessSearchResult",
    "id": "<string>",
    "name": "<string>",
    "rank": 123,
    "rating": 123,
    "review_count": 123,
    "category": "<string>",
    "categories": [],
    "phone": "<string>",
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip_code": "<string>",
    "web_url": "<string>",
    "image": "<string>",
    "is_open_24_hours": true,
    "has_coupon": true,
    "snippet": "<string>",
    "profile_url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Business name or category to search for

Minimum string length: 1
Example:

"plumber"

count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
location
string
default:""

City and state or ZIP code to search near

Example:

"Los Angeles, CA"

sort
enum<string>
default:default

Result ordering

Available options:
default,
distance,
average_rating,
name

Response

Successful Response

@type
string
default:YellowpagesBusinessSearchResult
id
string | null
name
string | null
rank
integer | null
rating
number | null
review_count
integer | null
category
string | null
categories
string[]
phone
string | null
address
string | null
city
string | null
state
string | null
zip_code
string | null
web_url
string | null
image
string | null
is_open_24_hours
boolean | null
has_coupon
boolean | null
snippet
string | null
profile_url
string | null