Google Trends Related Topics API

When a Google Trends search contains related topics, they are parsed and exist within the related_topics object in the JSON output. Related topics can contain rising and top array results. From these results, can extract value, extracted_value, link, and topic object which contains value, title, and type.

Related topics chart accepts only single query per search.

API Parameters

data_type

Required

Parameter must be set to RELATED_TOPICS. (I.e., data_type=RELATED_TOPICS)

API Examples

Example with q: coffee

Example with q: coffee

JSON Example

{
  "related_topics": {
    "rising": [
      {
        "topic": {
          "value": "/g/11qrhc4zy2",
          "title": "Coffee and lemon",
          "type": "Food"
        },
        "value": "+2,300%",
        "extracted_value": 2300,
        "link": "https://trends.google.com/trends/explore?q=/g/11qrhc4zy2&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/g/11qrhc4zy2&tz=420"
      },
      {
        "topic": {
          "value": "/m/09k_b",
          "title": "Lemon",
          "type": "Fruit"
        },
        "value": "+450%",
        "extracted_value": 450,
        "link": "https://trends.google.com/trends/explore?q=/m/09k_b&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/m/09k_b&tz=420"
      },
      {
        "topic": {
          "value": "/m/0cp66xy",
          "title": "Tata Coffee",
          "type": "Company"
        },
        "value": "+80%",
        "extracted_value": 80,
        "link": "https://trends.google.com/trends/explore?q=/m/0cp66xy&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/m/0cp66xy&tz=420"
      },
      ...
    ],
    "top": [
      {
        "topic": {
          "value": "/m/02vqfm",
          "title": "Coffee",
          "type": "Drink"
        },
        "value": "100",
        "extracted_value": 100,
        "link": "https://trends.google.com/trends/explore?q=/m/02vqfm&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/m/02vqfm&tz=420"
      },
      {
        "topic": {
          "value": "/m/020fb2",
          "title": "Cafe",
          "type": "Topic"
        },
        "value": "12",
        "extracted_value": 12,
        "link": "https://trends.google.com/trends/explore?q=/m/020fb2&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/m/020fb2&tz=420"
      },
      {
        "topic": {
          "value": "/m/07xyvk",
          "title": "Coffeemaker",
          "type": "Topic"
        },
        "value": "10",
        "extracted_value": 10,
        "link": "https://trends.google.com/trends/explore?q=/m/07xyvk&date=today+12-m",
        "serpapi_link": "https://serpapi.com/search.json?data_type=RELATED_TOPICS&date=today+12-m&engine=google_trends&q=/m/07xyvk&tz=420"
      },
      ...
    ]
  }
}