DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
即時 Bing 自然搜尋 SERP 進階版
同步傳回 Bing 上某個關鍵字的排名結果。傳回 keyword、type、se_domain、location_code、language_code、check_url、datetime、spell、refinement_chips、item_types、items_count 與 items。預設選擇 advanced;若只在意排名清單,就用 regular;只有想檢查解析器丟棄了什麼時才用 html。採用 DataForSEO 的信封結構:資料位於 tasks[0].result,結果狀態位於 tasks[0].status_code——被拒絕的請求仍會回傳 HTTP 200。
計費參考
- 計量方式:依回報的回應成本計量。
- 參考請求估算:0.002 美元。
- 參考客戶倍率:1.0。不得對已結算的客戶金額再次套用。
僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。
- 類型: array (object | null)[]
- browser類型: integer | null
_screen _height 瀏覽器螢幕高度
選填欄位
你可以為特定裝置設定自訂瀏覽器螢幕高度,以計算像素排名;
可指定範圍:
240-9999;依預設,該參數設為:
1080(desktop);640(mobile,android);812(mobile,iOS);注意:要使用此參數,請將
calculate_rectangles設為true - browser類型: integer | null
_screen _resolution _ratio 瀏覽器螢幕解析度比例
選填欄位
你可以為特定裝置設定自訂瀏覽器螢幕解析度比例,以計算像素排名;
可指定範圍:
0.5-3;依預設,該參數設為:
1(desktop);3(mobile,android);3(mobile,iOS);注意:要使用此參數,請將
calculate_rectangles設為true - browser類型: integer | null 格式: int64
_screen _width 瀏覽器螢幕寬度
選填欄位
你可以為特定裝置設定自訂瀏覽器螢幕寬度,以計算像素排名;
可指定範圍:
240-9999;依預設,該參數設為:
1920(desktop);360(mobile,android);375(mobile,iOS);注意:要使用此參數,請將
calculate_rectangles設為true - calculate類型: boolean | null
_rectangles - depth類型: integer | null
解析深度
選填欄位
SERP 結果數量
預設值:
10最大值:
200
帳戶將按每個最多包含 10 條結果的 SERP 計費;將深度設為 10 以上可能會產生額外費用(如果搜尋引擎傳回超過 10 條結果);
費用可在定價頁計算。
- device類型: string | null
裝置類型
選填欄位
傳回特定裝置類型的結果
可取的值為:
desktop、mobile預設值:
desktop - keyword類型: string
關鍵字
必填欄位
在
keyword欄位中最多可指定 700 個字元所有 %## 都將被解碼(加號「+」將被解碼為空格字元)
如果需要為
keyword使用「%」字元,請將其指定為「%25」;如果需要為
keyword使用「+」字元,請將其指定為「%2B」;
有關 DataForSEO API 中
keyword和keywords欄位的規則與限制,請參閱這篇說明中心文章 - language類型: string
_code 搜尋引擎語言代碼
未指定
language_name時為必填欄位如果使用此欄位,則無需指定
language_name可個別向
https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages發出請求,取得搜尋引擎的可用語言及其language_code清單範例:
en - language類型: string
_name 搜尋引擎語言全名
未指定
language_code時為必填欄位如果使用此欄位,則無需指定
language_code可個別向
https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages發出請求,取得搜尋引擎的可用語言及其language_name清單範例:
English - location類型: integer
_code 搜尋引擎地點代碼
未指定
location_name或location_coordinate時為必填欄位如果使用此欄位,則無需指定
location_name或location_coordinate可個別向
https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations發出請求,取得搜尋引擎的可用地點及其location_code清單範例:
2840 - location類型: string
_coordinate 地點的 GPS 座標
未指定
location_name或location_code時為必填欄位如果使用此欄位,則無需指定
location_name或location_codelocation_coordinate參數應按 "latitude,longitude" 格式指定"latitude" 和 "longitude" 的最大小數位數為 7
範例:
53.476225,-2.243572 - location類型: string
_name 搜尋引擎地點全名
未指定
location_code或location_coordinate時為必填欄位如果使用此欄位,則無需指定
location_code或location_coordinate可個別向
https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations發出請求,取得搜尋引擎的可用地點及其location_name清單範例:
London,England,United Kingdom - match類型: string
_type 目標比對類型
指定
stop_crawl_on_match時為必填欄位match_value的比對類型可取的值:
domain– 特定網域或子網域with_subdomains– 主網域和子網域wildcard– 萬用字元模式 - match類型: string
_value 目標網域、子網域或萬用字元值
指定
stop_crawl_on_match時為必填欄位指定目標網域、子網域或萬用字元值;
注意:網域或子網域指定時不得包含請求通訊協定;
範例:
"match_value": "dataforseo.com","match_value": "/blog/post-*" - max類型: integer | null
_crawl _pages - os類型: string | null
裝置作業系統
選填欄位
如果在
device欄位中指定desktop,請從以下值中選擇:windows、macos預設值:
windows如果在
device欄位中指定mobile,請從以下值中選擇:android、ios預設值:
android - search類型: string | null
_param - stop類型: array (object | null)[] | null
_crawl _on _match 用於停止爬取的目標陣列 選填欄位 如果指定,回應將包含截至並包括指定 match_value 的 SERP 結果; 此陣列中最多可指定 10 個目標值 範例: "stop_crawl_on_match":[{"match_value":"dataforseo.com","match_type":"with_subdomains"}] 可在我們的說明中心瞭解此參數 - https://dataforseo.com/help-center/using-the-stop_crawl_on_match-parameter-in-serp-api 你的帳戶將按透過指定目標爬取的每個 SERP 計費
- match類型: string | null
_type 目標比對類型 指定 stop_crawl_on_match 時為必填欄位; match_value 的比對類型 可能的值:domain、with_subdomains、wildcard
- match類型: string | null
_value 目標網域或萬用字元值 指定 stop_crawl_on_match 時為必填欄位; 指定目標網域或萬用字元值; 注意:網域名稱必須不含請求協定; 範例:dataforseo.com
- tag類型: string | null
使用者自訂任務識別碼
選填欄位
字元數上限為 255
可使用此參數識別任務,並將其與結果對應
指定的
tag值可在回應的data物件中找到 - target類型: string | null
用於取得結果的目標網域、子網域或網頁
選填欄位
網域或子網域不應包含
https://和www.請注意,
target特定任務的結果僅包含含有url字串的 SERP 元素;你也可以使用萬用字元(“*”)在 SERP 中指定搜尋模式,以縮小結果範圍;
範例:
example.com- 傳回網站首頁的結果,URL 如https://example.com、https://www.example.com/或https://example.com/;example.com*- 傳回該網域的結果,包括其所有頁面;*example.com*- 傳回整個網域的結果,包括其所有頁面和子網域;*example.com- 無論子網域為何,傳回首頁的結果,例如https://en.example.com;example.com/example-page- 傳回確切 URL 的結果;example.com/example-page*- 傳回該網域下所有以指定字串開頭的 URL 結果 - url類型: string | null
搜尋查詢的直接 URL
選填欄位
你可以指定直接 URL,我們會將其解析到相應欄位。請注意,此方法對我們的 API 而言處理難度最高,而且需要你在 URL 中指定確切的語言和地點。多數情況下,我們不建議使用此方法。
範例:
https://www.bing.com/search?q=rank%20checker&count=50&first=1&setlang=en&cc=US&safesearch=Moderate&FORM=SEPAGE
- 類型: object | null · Response36Afe1097B20_SerpBingOrganicLiveAdvancedResponseInfo200
- 類型: number | null 格式: doublecost
任務總費用,美元
- 類型: integer | nullstatus
_code 一般狀態碼 完整回應碼清單請見此處
- 類型: string | nullstatus
_message 一般資訊訊息 完整的一般資訊訊息清單請見此處
- 類型: array (object | null)[] | nulltasks
任務陣列
- 類型: object | null · Response36Afe1097B20_SerpBingOrganicLiveAdvancedTaskInfo
- cost類型: number | null 格式: double
任務總費用,美元
- data類型: object | null
包含你在 POST 請求中指定的相同參數
- property類型: object | null
Name
- id類型: string | null
任務識別碼 我們系統中 UUID 格式的唯一任務識別碼
- path類型: array (string | null)[] | null
URL 路徑
- result類型: array (object | null)[] | null
結果陣列
- check類型: string | null
_url 搜尋引擎結果的直接 URL
可用來確認我們提供了準確的結果 - datetime類型: string | null
收到結果的日期與時間
採用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
範例:2019-11-15 12:57:46 +00:00 - item類型: array (string | null)[] | null
_types - items類型: array (object | null)[] | null
SERP 中找到的搜尋結果的元素
- page類型: integer | null
搜尋結果頁碼
表示該元素所在的 SERP 頁碼 - position類型: string | null
元素在 SERP 中的對齊方式
可取下列值:left、right - rank類型: integer | null
_absolute SERP 中的絕對排名
SERP 中所有元素中的絕對位置 - rank類型: integer | null
_group SERP 中的群組內排名
在具有相同type值的元素群組內的位置
具有不同type值的元素位置不會包含在rank_group中 - rectangle類型: object | null · Response36Afe1097B20_AiModeRectangleInfo
矩形參數
包含結果摘要片段在 SERP 中的笛卡兒座標與像素尺寸
若 POST 請求中的calculate_rectangles未設為true,則等於null- height類型: number | null 格式: double
元素的高度(像素)
- width類型: number | null 格式: double
元素的寬度(像素)
- x類型: number | null 格式: double
x 軸座標 結果摘要左上角的 x 軸座標,以螢幕左上角為原點
- y類型: number | null 格式: double
y 軸座標 結果摘要左上角的 y 軸座標,以螢幕左上角為原點
- type類型: string | null
元素類型
- xpath類型: string | null
元素的 XPath
- items類型: integer | null 格式: int64
_count items陣列中傳回的結果數 - keyword類型: string | null
POST 陣列中收到的關鍵字
傳回的關鍵字會解碼 %##(加號「+」將解碼為空格字元) - language類型: string | null
_code POST 陣列中的語言代碼
- location類型: integer | null
_code POST 陣列中的位置代碼
- pages類型: integer | null 格式: int64
_count 已擷取的總頁數
結果中已擷取的 SERP 總數 - refinement類型: object | null · Response36Afe1097B20_RefinementChipsInfo
_chips 搜尋精細化標籤
等於null- items類型: array (object | null)[] | null
元素的項目
- domain類型: string | null
SERP 中的網域
- options類型: array (object | null)[] | null
進一步的搜尋調整選項
- domain類型: string | null
SERP 中的網域
- title類型: string | null
元素的標題
- type類型: string | null
元素類型
- url類型: string | null
帶篩選參數的搜尋 URL
- title類型: string | null
元素的標題
- type類型: string | null
元素類型
- url類型: string | null
帶篩選參數的搜尋 URL
- type類型: string | null
元素類型
- xpath類型: string | null
元素的 XPath
- se類型: string | null
_domain POST 陣列中的搜尋引擎網域
- se類型: integer | null 格式: int64
_results _count SERP 中的結果總數
- spell類型: object | null · Response36Afe1097B20_SpellInfo
搜尋引擎的自動更正
如果搜尋引擎為經過更正的關鍵字提供結果,我們會指明搜尋引擎更正後的關鍵字以及自動更正的類型
等於null- keyword類型: string | null
搜尋引擎自動更正後取得的關鍵字 將為更正後的關鍵字提供結果
- type類型: string | null
自動更正的類型 可能的值: did_you_mean、showing_results_for、no_results_found_for、including_results_for 注意:Yahoo 與 Yandex 僅支援下列自動更正類型: including_results_for
- type類型: string | null
元素類型
- result類型: integer | null 格式: int64
_count result 陣列中的元素數
- status類型: integer | null
_code 任務的狀態碼 由 DataForSEO 產生,範圍如下:10000-60000 完整回應碼清單請見此處
- status類型: string | null
_message 任務的資訊訊息 完整的一般資訊訊息清單請見此處
- time類型: string | null
執行時間,秒
- 類型: integer | null 格式: int64tasks
_count tasks 陣列中的任務數
- 類型: integer | null 格式: int64tasks
_error tasks 陣列中傳回錯誤的任務數
- 類型: string | nulltime
總執行時間,秒
- 類型: string | nullversion
API 的目前版本
application/json - 400
無法處理該要求。請檢查請求參數。
- 401
需要有效的 Felo API 金鑰。
- 402
由於未符合計費要求,要求無法繼續。
- 403
該帳戶無權執行此操作。
- 429
已達到要求或支出上限。
- 502
服務無法完成該要求。
- 503
API 或計費服務暫時無法使用。
- 504
服務在處理要求時逾時。
- default
錯誤回應;上游透傳回應可能採用供應商格式
application/json
curl https://openapi.felo.ai/v1/beta/dataforseo/serp/bing/organic/live/advanced \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"language_code": "en",
"location_code": 2840,
"keyword": "flight ticket new york san francisco"
}
]'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"keyword": null,
"type": null,
"se_domain": null,
"location_code": null,
"language_code": null,
"check_url": null,
"datetime": null,
"spell": {
"keyword": null,
"type": null
},
"refinement_chips": {
"type": null,
"xpath": null,
"items": [
"[Max Depth Exceeded]"
]
},
"item_types": [
null
],
"se_results_count": null,
"pages_count": null,
"items_count": null,
"items": [
{
"type": null,
"rank_group": null,
"rank_absolute": null,
"page": null,
"position": null,
"xpath": null,
"rectangle": "[Max Depth Exceeded]"
}
]
}
]
}
]
}