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 |
|---|---|---|---|
query | string | Yes | Business type or name to search for |
location | string | Yes | City, state, or ZIP code |
page | integer | No | Page number for pagination (default 1) |
max_pages | integer | No | Maximum number of pages to scrape |
cache | boolean | No | Use cached data if available |
Response fields
| Field | Type | Description |
|---|---|---|
results | array | List of matched business listings |
results[].name | string | Business name |
results[].phone | string | Phone number |
results[].address | string | Street address |
results[].website | string | Business website URL |
results[].categories | array | Business category tags |
results[].rating | number | Average rating (if available) |
Code
curl -X POST https://api.richapi.ai/api/v1/directory_yellowpages \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "plumber",
"location": "Austin, TX"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to try