Business & Trends
Google Business Data
Get Google My Business listings — name, address, ratings, reviews, hours.
POST
$0.03/call/v1/seo/business/infoUsage
const res = await fetch('https://api.yepapi.com/v1/seo/business/info', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ keyword: 'pizza near times square', location: 'us' }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/business/info \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "pizza near times square", "location": "us"}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
keyword | string | Yes | Search query for business listings | — |
location | string | No | Country code | "us" |
Response
{
"ok": true,
"data": {
"keyword": "pizza near times square",
"results": [
{
"name": "Joe's Pizza",
"address": "7 Carmine St, New York, NY 10014",
"phone": "+1-212-366-1182",
"website": "https://joespizzanyc.com",
"rating": 4.5,
"reviewCount": 12400,
"category": "Pizza restaurant",
"workingHours": "Mon-Sun: 10am-4am"
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.keyword | string | The search query used to find businesses |
data.results | array | List of Google Business listings matching the query |
data.results[].name | string | Business name |
data.results[].address | string | Full street address of the business |
data.results[].phone | string | Business phone number |
data.results[].website | string | Business website URL |
data.results[].rating | number | Average Google rating (0-5) |
data.results[].reviewCount | number | Total number of Google reviews |
data.results[].category | string | Google Business category |
data.results[].workingHours | string | Business operating hours |
Under the Hood
Queries Google Business listings in real-time.