keywordstring
Keyword.
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/livePast Google search results for a keyword within a date range.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns saved snapshots of the Google search results page for one keyword, in one location and language. Each snapshot has a date and the result items that ranked at that time. Send keyword, location_code and language_code, and optionally date_from and date_to.
people_also_ask or local_pack first appeared for a keyword.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "coffee", "location_code": 2840, "language_code": "en", "date_from": "2026-06-01"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
date_from | string | No | Optional start date, "yyyy-mm-dd". |
date_to | string | No | Optional end date. |
keyword | string | No | Keyword. |
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": "dataforseo_labs",
"date_from": "2026-06-01",
"function": "historical_serps",
"keyword": "coffee",
"language_code": "en",
"location_code": 2840,
"se_type": "google"
},
"id": "11030828-2190-0408-0000-f2c2f49c435f",
"path": [
"v3"
],
"result": [
{
"items": [
{
"check_url": "https://www.google.com/search?q=coffee&hl=en&gl=US&ie=UTF-8&uule=w+CAIQIFISCQs2M…",
"datetime": "2026-06-17 02:01:42 +00:00",
"item_types": [
"organic"
],
"items": [
{
"about_this_result": null,
"amp_version": false,
"backlinks_info": {
"backlinks": 30045,
"dofollow": 25839,
"referring_domains": 3735,
"referring_main_domains": 3247,
"referring_pages": 27700,
"time_update": "2026-06-11 06:43:29 +00:00"
},
"breadcrumb": "https://en.wikipedia.org › wiki › Coffee",
"checks": [
"is_image"
],
"clickstream_etv": null,
"description": "Coffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, b…",
"domain": "en.wikipedia.org"
}
],
"items_count": 42,
"keyword": "coffee",
"language_code": "en",
"location_code": 2840
}
],
"items_count": 3,
"keyword": "coffee",
"language_code": "en",
"location_code": 2840,
"se_type": "google",
"total_count": 3
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.1083 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.1142 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].items[] | One SERP snapshot per entry. Each snapshot holds the results seen on that date. |
tasks[].result[].items[].datetime | Date and time of the snapshot, for example 2026-06-17 02:01:42 +00:00. |
tasks[].result[].items[].item_types | List of result types on that snapshot, such as organic, people_also_ask or local_pack. |
tasks[].result[].items[].check_url | Google search URL that matches the keyword, language and location of the snapshot. |
tasks[].result[].items[].items[].type | Type of the result element, for example people_also_ask. |
tasks[].result[].items[].items[].rank_absolute / rank_group | Position of the element on the page (rank_absolute) and within its type group (rank_group). |
tasks[].result[].items[].items[].domain / main_domain | Domain of the result, and its main domain. Both can be null for items without a site, such as some local results. |
tasks[].result[].items[].items[].backlinks_info.backlinks / referring_domains / referring_pages | Backlink counts for the ranking page. backlinks_info.time_update shows when these counts were taken. The whole object can be null. |
tasks[].result[].items[].items[].etv / estimated_paid_traffic_cost | etv is the estimated traffic value of the item. estimated_paid_traffic_cost is the estimated cost of buying that traffic with ads. |
tasks[].result[].items[].items[].items[].title | Question text for each people_also_ask_element. The expanded_element list holds the answer source with its url and domain. |
tasks[].result[].items[] lists snapshots, and each snapshot has its own items[] list of results.items_count, and the outer result has total_count for the number of snapshots returned.location_code 2840 for the United States and language_code en for English. Dates use the yyyy-mm-dd format.Billed at the actual cost of each call, about $0.00024 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "coffee",
"date_from": "2026-06-01",
"language_code": "en",
"location_code": 2840
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringKeyword.
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
date_fromstringOptional start date, "yyyy-mm-dd".
date_tostringOptional end date.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
DataForSEO | เริ่มต้นที่ $0.00024 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.0102 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.000724 ต่อครั้ง | JSON |
DataForSEO | $0.004 ต่อการเรียก | JSON |
DataForSEO | เริ่มต้นที่ $0.00162 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.001105 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.00024 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: keyword (string), location_code (integer), language_code (string), date_from (string) และ date_to (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น DataForSEO Labs Historical SERPs ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก