Historical interest · Related searches

Google Trends API

Compare search interest over time, inspect rising related queries and investigate seasonality. Test a query here, then use the JSON in Python, Node.js or a connected MCP client.

Compare keywords over time · One region per request

3 research modesTime series, topics, queries
Up to 5 keywordsIn one time-series comparison
One region per requestShared by every keyword
Credits per keywordIncluding successful empty results
LOOKING FOR A GOOGLE TRENDS API?

Get from “is there an API?” to your first request.

Use GoAnyAPI to add trend research to an application, without building your integration around a scraping library.

ACCESS

Use your GoAnyAPI key.

Call the GoAnyAPI endpoint with your own API key. You do not need admission to Google’s separate API alpha to use this endpoint.

Manage API keys →
INTEGRATION

Python. Node.js. JSON.

Send a standard HTTP request and read a JSON response. You do not need pytrends in your application; the examples below use requests and fetch.

See request examples →
COST

Check the rate first.

Live requests use credits per keyword, including successful empty results. Check the current rate before testing or scheduling repeated requests.

Understand costs →
START WITH A QUESTION

What do you want to find out?

Move from a broad research question to the trend data that can help answer it.

01 / DEMAND RESEARCH

Which idea deserves a closer look?

Compare search interest for up to 5 product ideas, terms, or brands. Check the direction and persistence of interest before deciding what to investigate next.

“Compare standing desk and walking pad interest in the US over the past year.”
TIMESERIES
02 / CONTENT PLANNING

What should we write about next?

Start with a seed keyword, then explore its top and rising related queries. Turn relevant phrases into content ideas that you can validate with further research.

“Find rising searches related to home office, then suggest useful article angles.”
RELATED_QUERIES
03 / SEASONALITY

When does interest tend to peak?

Look for recurring patterns across a longer time range. Use historical interest to inform campaign timing and editorial calendars, alongside your own business data.

“Check historical interest in air purifiers and describe recurring seasonal peaks.”
TIMESERIES
THREE WAYS TO EXPLORE

Choose the data your question needs.

Every mode returns structured JSON. Select a mode to see the request and response shape.

See how interest changes.

Compare up to 5 comma-separated keywords over a selected time range, with one optional region shared by all keywords.

  • Timeline points with values for each keyword
  • Dates and timestamps for charting or analysis
  • Incomplete-point flags when available

Response shape excerpt. Arrays are empty placeholders, not a live query result.

TIMESERIES
GET /api/v1/google-trends?q=ai+video%2Cchatgpt&data_type=TIMESERIES&geo=US&date=today+12-m

// Response shape excerpt; empty arrays are placeholders.
{
  "interestOverTime": {
    "timeline_data": [],
    "averages": []
  }
}
FOR AI RESEARCH WORKFLOWS

Give your assistant data to reason with.

Use GoAnyAPI MCP with a compatible AI client, or pass API results into your own application. Your assistant can compare patterns, explain limitations, and draft a research brief from the returned data.

Explore GoAnyAPI MCP →

Requires a configured tool connection. These prompts are examples, not automatic features of an unconnected chat.

A PROMPT TO TRY

Compare “standing desk” and “walking pad” search interest in the US over the past 12 months. Describe sustained changes and one-off spikes. Then find rising related queries for “walking pad” and propose five content ideas. Keep observations separate from hypotheses, and do not treat interest scores as search volume or sales.

  1. Compare both keywords with TIMESERIES.
  2. Run RELATED_QUERIES for one seed keyword.
  3. Summarize evidence, caveats, and next checks.
This workflow makes separate requests. Billing applies to the keywords queried in each successful request.
A SMALL REQUEST. USEFUL CONTEXT.

Start with a keyword comparison.

Choose a region and a supported time range, then use the JSON in a chart, a report, or an AI workflow.

cURL
curl --get 'https://goanyapi.com/api/v1/google-trends' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --data-urlencode 'q=ai video,chatgpt' \
  --data-urlencode 'data_type=TIMESERIES' \
  --data-urlencode 'geo=US' \
  --data-urlencode 'date=today 12-m'
INTERPRET WITH CONTEXT

Useful signals. Clear boundaries.

Search interest is relative.

Trend values describe relative Google search interest. They are not exact search counts, website visits, sales, or ChatGPT conversation statistics. Keep the time range and region consistent when comparing terms.

A rise is a reason to investigate.

A short spike can have several explanations. Compare longer periods and related queries, and validate your interpretation with other evidence before making a business decision.

Data availability varies.

Some queries return no trend points or related results. Partial time-series points may be flagged. This endpoint does not provide forecasts, automatic alerts, or a global Trending Now feed.

KNOW WHAT A REQUEST COSTS

Billing follows the keywords you query.

View the current credit rate in the tester ↑

Per-keyword billing. A time-series request with three keywords uses three times the current configured per-keyword rate.

Successful empty results are charged. A completed query with no data still consumes credits.

Invalid or failed requests are not charged. Incomplete responses do not consume credits either.

Google Trends API FAQ

Answers for keyword research, AI workflows, and integration.

What can I do with this Google Trends API?

Compare keyword interest over time, explore top and rising related queries, and discover related topics. Use the results for content research, seasonality analysis, product idea comparisons, and reporting.

Is there an official Google Trends API?

Yes. Google has announced a separate Trends API alpha with its own access process. GoAnyAPI provides the endpoint documented on this page through a GoAnyAPI account and API key. You do not need admission to Google’s alpha to call this endpoint.

Is the GoAnyAPI Google Trends API free?

Live requests are billed in credits per keyword, including successful empty results. Check the current rate on the API page and any credits available in your account. This page does not promise a permanent free tier or unlimited free requests.

What should I compare when choosing a Google Trends API?

Compare the supported data types, keyword limit, date and region controls, response fields, integration options, and total cost for your workflow. GoAnyAPI supports three data modes, up to 5 keywords in a time-series request, one shared region, and REST plus MCP access. It does not offer a Trending Now feed, region-ranking maps, or built-in monitoring through this endpoint.

Is there a Google Trends MCP server for AI agents?

GoAnyAPI MCP includes the goanyapi_google_trends tool, with the same query modes and per-keyword billing as this REST endpoint. Configure GoAnyAPI MCP in a compatible client before asking the assistant to request or analyze trend data.

Can ChatGPT use this data for research?

An AI client with a configured GoAnyAPI MCP connection can request the data and help analyze it. You can also supply API results to your own AI application. Tool availability depends on the client and its configuration; an unconnected chat does not automatically call this API.

Can I compare multiple keywords?

Yes. TIMESERIES accepts up to 5 comma-separated keywords in q. RELATED_TOPICS and RELATED_QUERIES each accept exactly one keyword. Each keyword can contain up to 100 characters.

Can I compare several countries in one request?

No. geo accepts one region code, shared by every keyword in the request. Use separate requests to investigate different regions, and do not treat independently scaled scores as absolute market-size comparisons.

What time ranges are supported?

Choose from past 1 hour, past 4 hours, past day, past 7 days, past month, past 3 months, past 12 months, past 5 years, all available history. The default is past 12 months. The available data and time-point granularity depend on the query.

Does this return exact monthly search volume?

No. It returns relative search interest and related-search data. Use the separate Keyword Search Volume API when your workflow needs search-volume data; that endpoint has its own inputs and billing.

What is the difference between related topics and related queries?

Related queries are search phrases associated with your seed query. Related topics describe associated subjects or entities. Each mode provides top and rising arrays when results are available.

Does rising interest mean a product will sell?

No. Search interest alone does not establish purchase intent, revenue, or future demand. Use it to generate and test hypotheses, alongside search-volume research, customer feedback, and your own business data.

Why might a query return zero values or no data?

Low search interest can produce zero values, and some query, date, and region combinations return no results. Check the returned data rather than interpreting missing data as proof that nobody is interested.

Are successful requests with no data still billed?

Yes. A completed query with empty result arrays is successful and charged at the current per-keyword rate. Invalid parameters, failed requests, and incomplete responses do not consume credits.

Does the API send alerts or forecast future trends?

No. This endpoint returns data when requested. Scheduling, storing results, setting thresholds, or sending notifications would need to be implemented in your application or automation workflow.

Can I get real-time trending searches or a Trending Now feed?

You can request supported recent date ranges, including the past hour, for a keyword you supply. The endpoint does not provide a country-wide Trending Now feed. A request alone does not establish a fixed data freshness guarantee.

How can I find breakout or rising keywords?

Use RELATED_QUERIES with one seed keyword and inspect relatedQueries.rising. Investigate the returned terms with a time-series query before prioritizing them. Results depend on the seed, date, and region; the endpoint does not guarantee breakout terms or automatic alerts.

Can I monitor keyword trends automatically every day?

You can schedule requests in your own application or automation tool, store results, and apply your own alert rules. This API does not run the schedule or deliver alerts for you. Account for all queried keywords, including successful empty results, when estimating the recurring cost.

Can I get Google Trends data without pytrends?

Yes. Call the documented REST endpoint directly from your application using an HTTP client. The Python example uses requests, and the JavaScript example uses fetch. Your application does not need to maintain a pytrends integration.

Does this API provide unlimited requests or bypass rate limits?

No unlimited-request or no-blocking guarantee is offered on this page. Use the documented endpoint and your API key, handle request failures, and apply retry backoff rather than assuming unrestricted concurrency. A numeric throughput guarantee needs to be confirmed for your intended workload.

Can I use it from Python or Node.js and receive JSON?

Yes. Send a GET request with your GoAnyAPI key in the Authorization: Bearer header. The examples above show Python and JavaScript requests. The response includes a status, selected mode data, the charged credits, and the remaining balance.