Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

DataForSEO Labs Historical SERPs

API 文档
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/live

Past Google search results for a keyword within a date range.

价格
起价 $0.00024美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 5 个可选

Playground

输入
Keyword.
Location code, e.g. 2840 for the United States.
Language code, e.g. "en".
Optional start date, "yyyy-mm-dd".
Optional end date.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

DataForSEO Labs Historical SERPs API

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.

Use cases

  • Track how the top organic results for a keyword changed between two dates.
  • Check when a SERP feature such as people_also_ask or local_pack first appeared for a keyword.
  • Compare the estimated traffic value of ranking domains across snapshots.
  • Review the backlink profile of pages that held a ranking at a past date.

Request

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

Parameters

NameTypeRequiredDescription
date_fromstringNoOptional start date, "yyyy-mm-dd".
date_tostringNoOptional end date.
keywordstringNoKeyword.
language_codestringNoLanguage code, e.g. "en".
location_codeintegerNoLocation code, e.g. 2840 for the United States.

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

Response fields

FieldMeaning
tasks[].result[].items[]One SERP snapshot per entry. Each snapshot holds the results seen on that date.
tasks[].result[].items[].datetimeDate and time of the snapshot, for example 2026-06-17 02:01:42 +00:00.
tasks[].result[].items[].item_typesList of result types on that snapshot, such as organic, people_also_ask or local_pack.
tasks[].result[].items[].check_urlGoogle search URL that matches the keyword, language and location of the snapshot.
tasks[].result[].items[].items[].typeType of the result element, for example people_also_ask.
tasks[].result[].items[].items[].rank_absolute / rank_groupPosition of the element on the page (rank_absolute) and within its type group (rank_group).
tasks[].result[].items[].items[].domain / main_domainDomain 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_pagesBacklink 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_costetv 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[].titleQuestion text for each people_also_ask_element. The expanded_element list holds the answer source with its url and domain.

Notes

  • The response is nested: tasks[].result[].items[] lists snapshots, and each snapshot has its own items[] list of results.
  • Each snapshot has items_count, and the outer result has total_count for the number of snapshots returned.
  • Use location_code 2840 for the United States and language_code en for English. Dates use the yyyy-mm-dd format.

Pricing

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

探索更多

相关 APIs

全部 APIs
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

问题

常见问题

如何使用 DataForSEO Labs Historical SERPs API?

向 https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/historical_serps/live 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

DataForSEO Labs Historical SERPs API 的价格是多少?

起价每次调用 $0.00024,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

DataForSEO Labs Historical SERPs API 接受哪些参数?

无需参数。 可选:keyword (string), location_code (integer), language_code (string), date_from (string) 和 date_to (string)。 Parameters 表和本页的 Playground 列出了每个字段。

DataForSEO Labs Historical SERPs API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 DataForSEO 开发者账户或 API key 吗?

不需要。DataForSEO Labs Historical SERPs 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 DataForSEO API 访问权限。