location_codeinteger
Location code, e.g. 2840 for the United States.
https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/bing/audience_estimation/liveEstimate Microsoft Ads audience size for targeting criteria. Bing Ads audience estimate for a location plus optional age, gender, industry, and job_function targeting, bid, and daily budget.
Đầ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 estimated Microsoft Ads audience size, impressions, clicks and click-through rate for a set of targeting criteria. You send a location_code and language_code, plus optional targeting such as age, and a bid and daily_budget in USD.
bid and daily_budget values to plan a test budget.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/bing/audience_estimation/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location_code": 2840, "language_code": "en", "age": ["twenty_five_to_thirty_four"], "bid": 1, "daily_budget": 100}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
age | array | No | Audience age groups. |
bid | integer | No | Bid in USD. |
daily_budget | integer | No | Daily budget in USD. |
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": {
"age": [
"twenty_five_to_thirty_four"
],
"api": "keywords_data",
"bid": 1,
"daily_budget": 100,
"function": "audience_estimation",
"language_code": "en",
"location_code": 2840,
"se": "bing"
},
"id": "11030829-1614-0593-0000-3f2f80dfb5a8",
"path": [
"v3"
],
"result": [
{
"currency": "USDollar",
"est_audience_size": {
"high": 49570,
"low": 15970
},
"est_clicks": {
"high": 6190,
"low": 1550
},
"est_cost_per_event": {
"high": null,
"low": null
},
"est_ctr": {
"high": 0.02158363893284101,
"low": 0
},
"est_impressions": {
"high": 573950,
"low": 143490
},
"est_reach_audience_size": 7420000,
"est_reach_impressions": 2130000000
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.7798 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.7951 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].est_audience_size.low / est_audience_size.high | Lower and upper estimate of the audience size for the targeting and budget you sent. |
tasks[].result[].est_impressions.low / est_impressions.high | Lower and upper estimate of ad impressions. |
tasks[].result[].est_clicks.low / est_clicks.high | Lower and upper estimate of clicks. |
tasks[].result[].est_ctr.low / est_ctr.high | Lower and upper estimate of click-through rate, given as a fraction. A value of 0.0216 means about 2.16%. |
tasks[].result[].est_cost_per_event.low / est_cost_per_event.high | Lower and upper estimate of cost per event. Both values are null in this response. |
tasks[].result[].est_reach_audience_size | Estimated total reach audience size for the location and language, shown as a single number. |
tasks[].result[].est_reach_impressions | Estimated total reach impressions, shown as a single number. |
tasks[].result[].currency | Currency name for the cost values. This response shows USDollar. |
tasks[].data | Echo of the parameters the task ran with, such as location_code, age, bid and daily_budget. |
tasks[].id | Unique ID of the task. |
location_code 2840 for the United States. Pass age groups as an array of strings, for example ["twenty_five_to_thirty_four"].gender, industry and job_function as optional targeting parameters. This example request does not use them.tasks[].status_code and tasks_error to confirm the task succeeded. A successful task returns 20000.$0.09 per successful call. 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/keywords_data/bing/audience_estimation/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"age": [
"twenty_five_to_thirty_four"
],
"bid": 1,
"daily_budget": 100,
"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.
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
agearrayAudience age groups.
bidintegerBid in USD.
daily_budgetintegerDaily budget in USD.
Đâ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 | $0.09 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/keywords_data/bing/audience_estimation/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.
$0.09 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: location_code (integer), language_code (string), age (array), bid (integer) và daily_budget (integer). 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 Bing Audience Estimation 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.