Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

DataForSEO Business Listings Search

Tài liệu API
https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/live

Search Google Maps business listings by category, name or location radius, with ratings, contact details and work hours.

Giá
Từ $0.0156USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 4 tùy chọn

Phòng thử nghiệm

Đầu vào
Array of business category ids, e.g. ["pizza_restaurant"].
"latitude,longitude,radius_km".
Maximum number of listings to return.
Optional business name to match.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

DataForSEO Business Listings Search API

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.

Use cases

  • Build a lead list of every pizza restaurant within 10 km of a point in New York.
  • Map competitors in a category around a planned store location.
  • Filter venues by attributes such as wheelchair access, delivery or takeout.
  • Count how many businesses of one category exist in an area using total_count.

Request

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].

Parameters

NameTypeRequiredDescription
categoriesarrayNoArray of business category ids, e.g. ["pizza_restaurant"].
limitintegerNoMaximum number of listings to return.
location_coordinatestringNo"latitude,longitude,radius_km".
titlestringNoOptional business name to match.

Example response

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"
}

Response fields

FieldMeaning
tasks[].result[].total_countNumber of listings that match the search. This can be larger than the number of items returned.
tasks[].result[].countNumber of items returned in this response.
tasks[].result[].items[].category / additional_categoriesMain category name of the listing and a list of extra category names.
tasks[].result[].items[].category_idsCategory ids for the listing. You can reuse them in the categories request parameter.
tasks[].result[].items[].addressFull address as one string.
tasks[].result[].items[].address_infoAddress split into address, borough, city, region, zip and country_code. borough can be null.
tasks[].result[].items[].attributes.available_attributesFeatures the business has, grouped by topic such as accessibility, dining_options, offerings and service_options.
tasks[].result[].items[].attributes.unavailable_attributesFeatures the business does not have, grouped the same way. The value is null when none are listed.
tasks[].result[].items[].cidGoogle Maps customer id of the listing, as a string.
tasks[].result[].items[].check_urlGoogle Maps link that opens the listing.
tasks[].result[].offset_tokenToken for the next page of results.

Notes

Pricing

Billed at the actual cost of each call, about $0.0156 for the request above. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
DataForSEOTừ $0.0156 mỗi lần gọiJSON
DataForSEOTừ $0.0102 mỗi lần gọiJSON
DataForSEOTừ $0.000724 mỗi lần gọiJSON
DataForSEO$0.004 mỗi lần gọiJSON
DataForSEOTừ $0.00162 mỗi lần gọiJSON
DataForSEOTừ $0.001105 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API DataForSEO Business Listings Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/business_listings/search/live với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API DataForSEO Business Listings Search có giá bao nhiêu?

Từ $0.0156 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API DataForSEO Business Listings Search chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: categories (array), location_coordinate (string), limit (integer) và title (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API DataForSEO Business Listings Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của DataForSEO không?

Không. DataForSEO Business Listings Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của DataForSEO.