DataForSEO Keywords Data API icon

DataForSEO Keywords Data API

DataForSEO Keywords Data API

Google Trends → Get Google Trends Explore

AI-generated

Summary

Retrieves keyword popularity data from Google Trends Explore for up to five keywords with customizable time ranges, location, and type.

Inputs

  • keywords (required) — Maximum of 5 keywords to analyze.
  • location_name — Full name of the search engine location (e.g., London,England,United Kingdom).
  • language_name — Full name of the search engine language (e.g., English).
  • type — Type of Google Trends (web, news, images, youtube, froogle). Default is 'web'.
  • category_code — Search category code for filtering results.
  • date_from — Starting date of the time range (Web: 2004-01-01; others: 2008-01-01).
  • date_to — Ending date of the time range; defaults to today if not specified.
  • time_range — Preset time ranges (e.g., past_day, past_7_days, 2004_present).
  • item_types — Types of items to return (graph, map, topics_list, queries_list).

Output shape

A list of items, each containing JSON data from the DataForSEO API response.

Returns the raw JSON response from the DataForSEO API. The specific fields depend on the 'item_types' selected (e.g., google_trends_graph, google_trends_map).

Examples

Example 1: Get current week search volume for 'coffee' and 'tea' in the US.

Keywords: coffee, tea; Location: United States; Time Range: past_week

Example 2: Compare news interest for 'climate change' over the past 30 days globally.

Keywords: climate change; Type: news; Time Range: past_30_days

Example 3: Retrieve historical search interest data for 'electric vehicles' from 2020 to present.

Keywords: electric vehicles; Type: web; Time Range: 2004_present

Links

Discussion