Marketing
Google Trends logo

Google Trends API

trends.google.com

Google Trends - interest over time, regional breakdowns, related queries, and trending searches.

Actions
7
Category
Marketing
Login
Not required
Output
JSON

Call the Google Trends API

Submit a task, then poll the job until it settles. This example runs gt_categories.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "gt_categories",
    "params": {}
  }'

7 actions on trends.google.com

Read

  • Category List

    gt_categoriesread1 credit / call

    Returns the full Google Trends category tree with over 1000 categories and IDs.

  • Interest by Region

    gt_interest_by_regionread2 credits / call

    Returns regional search interest by country, state, DMA, or city.

    keyword
    string · required
    geo
    string
    timeframe
    string
    resolution
    string
  • Interest Over Time

    gt_interest_over_timeread3 credits / call

    Returns the search volume index from 0 to 100 for a keyword over time.

    keyword
    string · required
    geo
    string
    timeframe
    string
    category
    integer
    property
    string
  • Keyword Comparison

    gt_compareread3 credits / call

    Returns side-by-side search interest comparison for up to five keywords over time.

    keywords
    string · required
    geo
    string
    timeframe
    string
  • Keyword Suggestions

    gt_suggestionsread3 credits / call

    Returns keyword suggestions and autocomplete with topic entity IDs and types.

    keyword
    string · required
  • Related Queries

    gt_related_queriesread3 credits / call

    Returns top and rising related search queries for a keyword.

    keyword
    string · required
    geo
    string
    timeframe
    string
  • Trending Searches

    gt_trendingread2 credits / call

    Returns currently trending searches with traffic estimates, images, and related news.

    geo
    string
    limit
    integer

Google Trends API questions

Is there an API for Google Trends?
Google Trends does not offer a public data API for this, but Anakin Wire provides 7 maintained endpoints for trends.google.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Google Trends data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when trends.google.com changes its markup, Anakin updates the action.
Do I need a Google Trends account?
No. Every Google Trends action listed here runs anonymously — no account and no credentials required.
What does the Google Trends API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Marketing APIs

All Marketing sites