keywordstring
Business name, or "cid:<id>" / "place_id:<id>".
https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/questions_and_answers/liveQuestions and answers posted on a Google Business Profile, found by business name or place id.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the questions and answers posted on a Google Business Profile. Send a business name, or a cid:<id> or place_id:<id> value, as keyword, together with a location_code and a language_code.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/questions_and_answers/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "Empire State Building", "location_code": 2840, "language_code": "en"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | No | Business name, or "cid:<id>" / "place_id:<id>". |
language_code | string | No | Language code, e.g. "en". |
location_code | integer | No | Location code, e.g. 2840 for the United States. |
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",
"device": "desktop",
"function": "questions_and_answers",
"keyword": "Empire State Building",
"language_code": "en",
"location_code": 2840,
"os": "windows",
"se": "google"
},
"id": "11030828-2190-0578-0000-e1057ac5c994",
"path": [
"v3"
],
"result": [
{
"check_url": "https://www.google.com/maps/place/data=!4m3!3m2!1s0x0:0xd134e199a405a163!10e4?hl…",
"cid": "15074921902713971043",
"datetime": "2026-11-03 08:29:06 +00:00",
"feature_id": "0x0:0xd134e199a405a163",
"item_types": [
"google_business_question_item"
],
"items": [
{
"items": [
{
"answer_id": "8@1:CAESGUNWX0J6VVpFX0lOOTBSaW9PRFNBQWZ1eGc|",
"answer_text": "Yes",
"original_answer_text": null,
"profile_image_url": "https://lh3.googleusercontent.com/a-/ALV-UjVUYetmCHBLqyjcXerRKBZ6Jmx95DLJ7V0AM-g…",
"profile_name": "Marcelo Quinde",
"profile_url": "https://www.google.com/maps/contrib/113388248075047475338?hl=en-GB",
"time_ago": "9 years ago",
"timestamp": "2017-11-03 08:29:05 +00:00"
}
],
"original_question_text": null,
"profile_image_url": "https://lh3.googleusercontent.com/a-/ALV-UjUXmLeUaeJFEuosq8vyRvyvIP6OUE0Kp7C2gYf…",
"profile_name": "Federico Picapietra",
"profile_url": "https://www.google.com/maps/contrib/103767993357197415632?hl=en-GB",
"question_id": "8@1:CAESGUNWX0FBVkJVVFFPTnhWaW4tOVRBQVZEa3c|",
"question_text": "Ir os open from 8 pm till 2 am?",
"rank_absolute": 1
}
],
"items_count": 20,
"items_without_answers": [
{
"items": null,
"original_question_text": null,
"profile_image_url": "https://lh3.googleusercontent.com/a-/ALV-UjXn_uHGmorOWySo9DPkswMH4pyisT4_FXWQZt5…",
"profile_name": "Pastel Milk",
"profile_url": "https://www.google.com/maps/contrib/102252461306156041986?hl=en-GB",
"question_id": "8@1:CAESGUNWX0NtUFJSVkVNYU9WaXBJMnFBQWVYWmc|",
"question_text": "How long did it take? 24 hours or more I’m pretty sure 😂",
"rank_absolute": 0
}
]
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "18.2704 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "18.2843 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].cid / feature_id | Identifiers of the matched Google business. cid is a numeric string and feature_id is a hex pair. |
tasks[].result[].items_count | Number of question items reported for the business. |
tasks[].result[].items[].question_text | Text of a question that has at least one answer. original_question_text holds the source-language text when the question was translated, and is null otherwise. |
tasks[].result[].items[].question_id | Identifier of the question. |
tasks[].result[].items[].profile_name / profile_url | Name and Google Maps profile link of the person who asked the question. |
tasks[].result[].items[].items[].answer_text | Text of one answer to the question. |
tasks[].result[].items[].items[].profile_name / profile_url | Name and profile link of the person who answered. profile_url is null for the business owner reply. |
tasks[].result[].items[].items[].timestamp / time_ago | Time of the answer as a UTC timestamp, and the same time in relative words such as a year ago. |
tasks[].result[].items_without_answers[].question_text | Text of a question that has no answers yet. The items field for these questions is null. |
tasks[].result[].check_url | Google Maps URL for the business, which you can open to check the result. |
place_id:<id> or cid:<id> as keyword instead of the business name.items[], and questions without answers are in items_without_answers[].YYYY-MM-DD HH:MM:SS +00:00.tasks[].result, and tasks[].id is the task ID.Billed at the actual cost of each call, about $0.0054 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/questions_and_answers/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "Empire State Building",
"language_code": "en",
"location_code": 2840
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
keywordstringBusiness name, or "cid:<id>" / "place_id:<id>".
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
DataForSEO | Từ $0.0054 mỗi lần gọi | JSON |
DataForSEO | Từ $0.0102 mỗi lần gọi | JSON |
DataForSEO | Từ $0.000724 mỗi lần gọi | JSON |
DataForSEO | $0.004 mỗi lần gọi | JSON |
DataForSEO | Từ $0.00162 mỗi lần gọi | JSON |
DataForSEO | Từ $0.001105 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/dataforseo/v3/business_data/google/questions_and_answers/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.
Từ $0.0054 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ý.
Không có tham số bắt buộc. Tùy chọn: keyword (string), location_code (integer) và language_code (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. DataForSEO Google Business Questions and Answers 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.