logo
DirectoryYellow Pages Business Search

Yellow Pages Business Search

Search for businesses on Yellow Pages by query and location.

Pricing: 1 credit per call

curl -X POST "https://v3-api.texau.com/api/v1/directory_yellowpages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "query": "plumber",
  "location": "New York, NY",
  "page": 25,
  "max_pages": 25,
  "cache": true
}'
{
  "data": {
    "businesses": [
      {
        "name": "John Doe",
        "phone": "+1-555-0123",
        "address": "123 Main St",
        "website": "example_string",
        "categories": [
          "example_string"
        ],
        "rating": 3.14
      }
    ]
  },
  "meta": {
    "cache_hit": true,
    "execution_time_ms": 42
  }
}
POST
/directory_yellowpages
POST
API Key (header: x-api-key)
x-api-keystring
Required

Your TexAu API key. Contact TexAu to obtain one.

Your TexAu API key. Contact TexAu to obtain one.
Content-Typestring
Required

The media type of the request body

Options: application/json
querystring
Required

Business type or name to search

locationstring
Required

City, state, or zip code

pageinteger

Page number

max_pagesinteger

Maximum number of pages to scrape

Request Preview
Response

Response will appear here after sending the request

Authentication

header
x-api-keystring
Required

API Key for authentication. Your TexAu API key. Contact TexAu to obtain one.

Body

application/json
querystring
Required

Business type or name to search

locationstring
Required

City, state, or zip code

pageinteger

Page number

max_pagesinteger

Maximum number of pages to scrape

Responses

dataobject
metaobject