categoriesarray
Array of business category ids, e.g. ["pizza_restaurant"].
https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/liveSearch Google Maps business listings by category, name or location radius, with ratings, contact details and work hours.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns Google Maps business listings that match a category, a business name, or a location radius. You send category ids such as pizza_restaurant and a location_coordinate string in the form latitude,longitude,radius_km.
total_count.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"categories": ["pizza_restaurant"], "location_coordinate": "40.7128,-74.0060,10", "limit": 10}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
categories | array | No | Array of business category ids, e.g. ["pizza_restaurant"]. |
limit | integer | No | Maximum number of listings to return. |
location_coordinate | string | No | "latitude,longitude,radius_km". |
title | string | No | Optional business name to match. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"data": {
"api": "business_data",
"categories": [
"pizza_restaurant"
],
"function": "search",
"limit": 10,
"location_coordinate": "40.7128,-74.0060,10"
},
"id": "11030828-2190-0544-0000-95f7a3fdbe54",
"path": [
"v3"
],
"result": [
{
"count": 10,
"items": [
{
"additional_categories": [
"Bar"
],
"address": "70 Hudson St, Hoboken, NJ 07030",
"address_info": {
"address": "70 Hudson St",
"borough": null,
"city": "Hoboken",
"country_code": "US",
"region": "New Jersey",
"zip": "07030"
},
"attributes": {
"available_attributes": {
"accessibility": [
"has_wheelchair_accessible_entrance"
],
"amenities": [
"has_restroom_unisex"
],
"atmosphere": [
"feels_casual"
],
"children": [
"has_childrens_menu"
],
"crowd": [
"popular_with_students"
],
"dining_options": [
"serves_breakfast"
],
"highlights": [
"has_fast_service"
],
"offerings": [
"serves_alcohol"
]
},
"unavailable_attributes": {
"accessibility": [
"has_wheelchair_accessible_parking"
],
"planning": [
"accepts_reservations"
],
"service_options": [
"has_delivery"
]
}
},
"category": "Bar & grill",
"category_ids": [
"bar_and_grill"
],
"check_url": "https://www.google.com/maps?cid=10011767498971649037&hl=en&gl=US",
"cid": "10011767498971649037"
}
],
"offset": 0,
"offset_token": "eyJDdXJy…",
"total_count": 1627
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.7087 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.7481 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].total_count | Number of listings that match the search. This can be larger than the number of items returned. |
tasks[].result[].count | Number of items returned in this response. |
tasks[].result[].items[].category / additional_categories | Main category name of the listing and a list of extra category names. |
tasks[].result[].items[].category_ids | Category ids for the listing. You can reuse them in the categories request parameter. |
tasks[].result[].items[].address | Full address as one string. |
tasks[].result[].items[].address_info | Address split into address, borough, city, region, zip and country_code. borough can be null. |
tasks[].result[].items[].attributes.available_attributes | Features the business has, grouped by topic such as accessibility, dining_options, offerings and service_options. |
tasks[].result[].items[].attributes.unavailable_attributes | Features the business does not have, grouped the same way. The value is null when none are listed. |
tasks[].result[].items[].cid | Google Maps customer id of the listing, as a string. |
tasks[].result[].items[].check_url | Google Maps link that opens the listing. |
tasks[].result[].offset_token | Token for the next page of results. |
limit to control how many listings come back. The example request used 10.offset set to 0 and an offset_token. Use the token to continue a long result list.category_ids values in the response. DataForSEO Business Listings Categories Aggregation shows how categories are grouped.cid or check_url to DataForSEO Google Business Listing Info for more detail on one business.Billed at the actual cost of each call, about $0.0156 for the request above. Failed calls are not charged.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 10,
"categories": [
"pizza_restaurant"
],
"location_coordinate": "40.7128,-74.0060,10"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
categoriesarrayArray of business category ids, e.g. ["pizza_restaurant"].
location_coordinatestring"latitude,longitude,radius_km".
limitintegerMaximum number of listings to return.
titlestringOptional business name to match.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
DataForSEO | 호출당 $0.0156부터 | JSON |
DataForSEO | 호출당 $0.0102부터 | JSON |
DataForSEO | 호출당 $0.000724부터 | JSON |
DataForSEO | $0.004 / 호출 | JSON |
DataForSEO | 호출당 $0.00162부터 | JSON |
DataForSEO | 호출당 $0.001105부터 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/live에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.0156부터, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수 매개변수는 없습니다. 선택: categories (array), location_coordinate (string), limit (integer) 및 title (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. DataForSEO Business Listings Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. DataForSEO API 액세스를 별도로 신청할 필요는 없습니다.