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
}'
import requests
import json
url = "https://v3-api.texau.com/api/v1/directory_yellowpages"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
data = {
"query": "plumber",
"location": "New York, NY",
"page": 25,
"max_pages": 25,
"cache": true
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://v3-api.texau.com/api/v1/directory_yellowpages", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
},
body: JSON.stringify({
"query": "plumber",
"location": "New York, NY",
"page": 25,
"max_pages": 25,
"cache": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"query": "plumber",
"location": "New York, NY",
"page": 25,
"max_pages": 25,
"cache": true
}`)
req, err := http.NewRequest("POST", "https://v3-api.texau.com/api/v1/directory_yellowpages", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://v3-api.texau.com/api/v1/directory_yellowpages')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
request.body = '{
"query": "plumber",
"location": "New York, NY",
"page": 25,
"max_pages": 25,
"cache": true
}'
response = http.request(request)
puts response.body
{
"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
}
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
POST
/directory_yellowpages
POST
API Key (header: x-api-key)
x-api-keystring
RequiredYour TexAu API key. Contact TexAu to obtain one.
Your TexAu API key. Contact TexAu to obtain one.
Content-Typestring
RequiredThe media type of the request body
Options: application/json
querystring
RequiredBusiness type or name to search
locationstring
RequiredCity, 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
RequiredAPI Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Body
application/json
querystring
RequiredBusiness type or name to search
locationstring
RequiredCity, state, or zip code
pageinteger
Page number
max_pagesinteger
Maximum number of pages to scrape
Responses
dataobject
businessesarray
namestring
phonestring
addressstring
websitestring
categoriesstring[]
ratingnumber
metaobject
cache_hitboolean
execution_time_msinteger
messagestring
errorstring
apistring
limitinteger
currentinteger
Was this page helpful?
Last updated 2 weeks ago
Built with Documentation.AI