Google API: Get related searches
Returns top and rising related searches and topics for a term on Google Trends, for a country or US state and time range.
Unofficial. Not affiliated with or endorsed by Google.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Term, required
term Search term, for example electric bikes.
coffee
- Region optional
region Country name or US state name, for example California. Defaults to Worldwide.
United States
Default
Worldwide.- Time Range optional
time_range Period, for example past_12_months.
past_7_days
One of
past_7_days,past_30_days,past_90_days,past_12_months,past_5_years. Defaultpast_12_months.
Input as JSON
{ "term": "coffee", "region": "United States", "time_range": "past_7_days"}Output
{ "top_topics": [], "top_searches": [ { "value": 100, "search": "coffee near me", "page_url": "https://trends.google.com/trends/explore?q=coffee+near+me&date=now+7-d&geo=US" }, { "value": 83, "search": "coffee shop", "page_url": "https://trends.google.com/trends/explore?q=coffee+shop&date=now+7-d&geo=US" }, { "value": 73, "search": "coffee shops", "page_url": "https://trends.google.com/trends/explore?q=coffee+shops&date=now+7-d&geo=US" } ], "rising_topics": [], "rising_searches": [ { "growth": "Breakout", "search": "coffee gear coffeedeets.com", "page_url": "https://trends.google.com/trends/explore?q=coffee+gear+coffeedeets.com&date=now+7-d&geo=US" , "growth_percent": null }, { "growth": "+4,850%", "search": "geekzilla.io swimming headphones", "page_url": "https://trends.google.com/trends/explore?q=geekzilla.io+swimming+headphones&date=now+7-d&geo=US" , "growth_percent": 4850 }, { "growth": "+3,100%", "search": "little debbie christmas tree cakes coffee creamer", "page_url": "https://trends.google.com/trends/explore?q=little+debbie+christmas+tree+cakes+coffee+creamer&date=now+7-d&geo=US" , "growth_percent": 3100 } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"trends.google.com/get_related_searches","input":{"term":"coffee","region":"United States","time_range":"past_7_days"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "trends.google.com/get_related_searches" , "input": { "term": "coffee", "region": "United States", "time_range": "past_7_days" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "trends.google.com/get_related_searches" , "input": { "term": "coffee", "region": "United States", "time_range": "past_7_days" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run trends.google.com/get_related_searches# with {"term":"coffee","region":"United States","time_range":"past_7_days"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "term" ], "properties": { "term": { "type": "string", "minLength": 1, "description": "Search term, for example electric bikes." }, "region": { "type": "string", "default": "Worldwide", "description": "Country name or US state name, for example California. Defaults to Worldwide." }, "time_range": { "enum": [ "past_7_days", "past_30_days", "past_90_days", "past_12_months", "past_5_years" ], "type": "string", "default": "past_12_months", "description": "Period, for example past_12_months." } }, "additionalProperties": false}Output schema
{ "type": "object", "required": [ "top_searches", "rising_searches", "top_topics", "rising_topics" ], "properties": { "top_topics": { "type": "array", "items": { "type": "object", "required": [ "topic", "type", "value", "page_url" ], "properties": { "type": { "type": [ "string", "null" ] }, "topic": { "type": "string" }, "value": { "type": [ "integer", "null" ] }, "page_url": { "type": "string", "description": "Google Trends page for this search or topic." } }, "additionalProperties": false } }, "top_searches": { "type": "array", "items": { "type": "object", "required": [ "search", "value", "page_url" ], "properties": { "value": { "type": [ "integer", "null" ] }, "search": { "type": "string" }, "page_url": { "type": "string", "description": "Google Trends page for this search or topic." } }, "additionalProperties": false } }, "rising_topics": { "type": "array", "items": { "type": "object", "required": [ "topic", "type", "growth", "growth_percent", "page_url" ], "properties": { "type": { "type": [ "string", "null" ] }, "topic": { "type": "string" }, "growth": { "type": [ "string", "null" ] }, "page_url": { "type": "string", "description": "Google Trends page for this search or topic." }, "growth_percent": { "type": [ "number", "null" ] } }, "additionalProperties": false } }, "rising_searches": { "type": "array", "items": { "type": "object", "required": [ "search", "growth", "growth_percent", "page_url" ], "properties": { "growth": { "type": [ "string", "null" ] }, "search": { "type": "string" }, "page_url": { "type": "string", "description": "Google Trends page for this search or topic." }, "growth_percent": { "type": [ "number", "null" ] } }, "additionalProperties": false } } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
trends.google.com/get_related_searches- Returns
- top searches, rising searches, top topics, rising topics
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method trends.google.com/get_related_searches with the inputs above.
Ask your agent
- What are the top and rising related searches for electric bikes in California over the past 30 days?
- Show me rising related topics for solar panels in Germany over the past 12 months on Google Trends.
- I need the top related searches for plant-based protein worldwide for the last 90 days.
- Which related topics are rising for home espresso machines in Texas over the past 5 years?
- Find related searches and topics for remote work tools in Canada for the past 7 days.
See more
All Google methodsShows where a search term has the highest relative Google Trends interest, by country worldwide or by region within a country. Scores run from 0 to 100.
trends.google.com/get_interest_by_regionLists Google Trends 'Trending now' searches for a country, time window and category, in Google's order. Each search comes with its volume, activity, related searches and news headlines.
trends.google.com/list_trending_searchesCompares Google Trends search interest for one to five terms over a time range, with average scores and a dated timeline. Scores are relative within the comparison.
trends.google.com/get_interest_over_timeLists the current top Google News stories, overall or for one topic, in a chosen country and language edition.
news.google.com/list_top_storiesGets Google Search autocomplete suggestions for words typed so far, in Google's order, for a chosen country and language.
google.com/get_search_suggestionsLists major stock market indexes on Google Finance with their current levels, changes and quote times. Quotes may be delayed, and indexes Google does not show are left out.
google.com/list_market_indexesLists ranked Android apps or games from the Google Play top free, top paid or top grossing chart for a country and category.
play.google.com/list_top_chartsSummarizes a company's public patents on Google Patents within filing dates (optionally narrowed by topic words): total found, filings per year, top technology areas and inventors across the 50 most recent records, and the most recent patents.
patents.google.com/list_company_patents