Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

DataForSEO Google Trends

API-Dokumentation
https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/live

Get Google Trends interest over time for up to 5 keywords by location, language and time range, with weekly values on a 0–100 scale.

Preis
Ab $0.011USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
0 erforderlich · 4 optional

Playground

Eingabe
Up to 5 keywords to compare.
DataForSEO location code, e.g. 2840 for the United States.
Language code, e.g. "en".
Preset range, e.g. past_hour, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years.
AusgabeBeispiel
Antwortoutputs · 725 B · 33 Zeilen
[
  {
    "cost": 0,
    "status_code": 20000,
    "status_message": "Ok.",
    "tasks": [
      {
        "cost": 0,
        "data": {
          "api": "keywords_data",
          "function": "explore",
          "se": "google_trends"
        },
        "id": "08200931-2190-0173-0000-a76c72bf7e00",
        "path": [
          "v3",
          "keywords_data",
          "google_trends",
          "… 2 more items in the full response"
        ],
        "result": null,
        "result_count": 0,
        "status_code": 40503,
        "status_message": "POST Data Is Invalid.",
        "time": "0 sec."
      }
    ],
    "tasks_count": 1,
    "tasks_error": 1,
    "time": "0.0089 sec.",
    "version": "0.1.20260806"
  }
]

Beispiele

Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.

API-README

Google Trends API

Returns Google Trends interest over time for up to 5 keywords. You send keywords, location_code and language_code, and optionally a time_range. The response lists weekly values on a 0 to 100 scale for each keyword.

Use cases

  • Compare weekly search interest in several product names in the United States.
  • Spot seasonal peaks for a keyword such as running shoes before planning a content calendar.
  • Check whether interest in a brand is rising or falling over the past year.
  • Open the check_url link to see the same chart on trends.google.com.

Request

curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/live" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["running shoes"], "location_code": 2840, "language_code": "en"}'

The result is returned in outputs[0].

Parameters

NameTypeRequiredDescription
keywordsarrayNoUp to 5 keywords to compare.
language_codestringNoLanguage code, e.g. "en".
location_codeintegerNoDataForSEO location code, e.g. 2840 for the United States.
time_rangestringNoPreset range, e.g. past_hour, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years.

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": "keywords_data",
        "function": "explore",
        "keywords": [
          "running shoes"
        ],
        "language_code": "en",
        "location_code": 2840,
        "se": "google_trends"
      },
      "id": "11030829-1614-0173-0000-6ef58a74867e",
      "path": [
        "v3"
      ],
      "result": [
        {
          "check_url": "https://trends.google.com/trends/explore?hl=en&geo=US&date=2025-11-03%202026-11-…",
          "datetime": "2026-11-03 08:29:26 +00:00",
          "items": [
            {
              "averages": [],
              "data": [
                {
                  "date_from": "2025-11-02",
                  "date_to": "2025-11-08",
                  "missing_data": false,
                  "timestamp": 1762041600,
                  "values": [
                    17
                  ]
                }
              ],
              "keywords": [
                "running shoes"
              ],
              "position": 1,
              "title": null,
              "type": "google_trends_graph"
            }
          ],
          "items_count": 1,
          "keywords": [
            "running shoes"
          ],
          "language_code": "en",
          "location_code": 2840,
          "type": "trends"
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "5.1526 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "5.1698 sec.",
  "version": "0.1.20261022"
}

Response fields

FieldMeaning
tasks[].result[].items[].data[].valuesInterest values for that week. The list holds one number per keyword, in the same order as the request keywords.
tasks[].result[].items[].data[].date_from / date_toFirst and last day of the weekly period, in YYYY-MM-DD format.
tasks[].result[].items[].data[].timestampUnix timestamp for the start of the period.
tasks[].result[].items[].data[].missing_datatrue when Google Trends has no value for that period.
tasks[].result[].items[].keywordsKeywords that the graph item covers.
tasks[].result[].items[].typeType of the item. The value google_trends_graph marks the interest-over-time chart.
tasks[].result[].check_urlLink to the same query on trends.google.com.
tasks[].result[].datetimeDate and time when the result was produced, in UTC.
tasks[].result[].items_countNumber of items in the result.

Notes

  • Pass time_range with a preset such as past_12_months or past_5_years to change the window. The sample request left it out.
  • location_code takes a numeric code, for example 2840 for the United States. language_code takes a code such as en.
  • Check tasks[].status_code and tasks[].status_message for the status of each task. 20000 with Ok. means success.

Pricing

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

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
DataForSEOAb $0.011 pro AufrufJSON
DataForSEOAb $0.0102 pro AufrufJSON
DataForSEOAb $0.000724 pro AufrufJSON
DataForSEO$0.004 pro AufrufJSON
DataForSEOAb $0.00162 pro AufrufJSON
DataForSEOAb $0.001105 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die DataForSEO Google Trends API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/live mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die DataForSEO Google Trends API?

Ab $0.011 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die DataForSEO Google Trends API?

Es sind keine Parameter erforderlich. Optional: keywords (array), location_code (integer), language_code (string) und time_range (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die DataForSEO Google Trends API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein DataForSEO-Entwicklerkonto oder einen API-Schlüssel?

Nein. DataForSEO Google Trends läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für DataForSEO API beantragen.