Everything you need to integrate the RichAPI API into your product.
Search Yellow Pages for businesses with name, phone, address, website, and categories.
/api/v1/directory_yellowpagesParameters
| Field | Type | Required | Description |
|---|---|---|---|
search_query | string | Yes | Business type or name to search for. |
location | string | Yes | City, state, or ZIP code. |
page | int | No | Page number for pagination (default 1). |
max_pages | int | No | Maximum number of pages to scrape. |
Example response
{
"data": {
"businesses": [
{
"name": "ABC Plumbing",
"phone": "(512) 555-0123",
"rating": 4.8,
"address": "123 Main St, Austin, TX 78701",
"website": "https://abcplumbing.example.com",
"categories": [
"Plumbers",
"Water Heaters"
]
}
]
}
}Code
curl -X POST https://dev-api.richapi.ai/api/v1/directory_yellowpages \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"search_query": "plumber",
"location": "Austin, TX",
"page": 1,
"max_pages": 1
}'Try it
Sign in to test this endpoint with your API key.
Sign in to try