Google Trends API for AI agents: search interest over time and what is trending now

Google Trends data your agent calls over MCP: search interest over time for up to five keywords by country, their search volume and CPC, autocomplete suggestions, and the hashtags, videos and topics trending now on TikTok, YouTube and X, with the price shown before every run.

The problem

You want your agent to tell you whether interest in a topic is rising, compare two keywords, and see what is trending today across networks. Google Trends is built for a browser, and each network's trending page is another tab to read by hand.

Steps

6
  1. Get keyword popularity over time$0.0275 per search

    Get search interest over time for up to five keywords, worldwide or for one country, over the last 12 months or 5 years. Google Keyword Data · google.keywords.trends

  2. Get keyword search volume, CPC, and competition$0.099 per call

    Get the monthly search volume, CPC and competition for a list of keywords. Google Keyword Data · google.keywords.volume

  3. Get Google autocomplete suggestions for a keyword$0.0022 per call

    See what Google suggests for the start of a query, to find the phrasings people use. Google Keyword Data · google.serp.autocomplete

  4. List trending TikTok hashtags right now$0.00165 per result

    List the hashtags trending on TikTok in a country, with post count, views and trend direction. TikTok · tiktok.trends.hashtags

  5. List trending videos on YouTube$0.00055 per video

    List the videos trending on YouTube in a country, with channel, views, likes and category. YouTube · youtube.trending.videos

  6. List trending topics on X$0.000429 per trend

    List the topics trending on X in a country, with post volume. X (Twitter) · x.trending.topics

Example cost for 100 rows

  • Get keyword popularity over time$2.75

    100 x $0.0275 per search

  • Get keyword search volume, CPC, and competition$9.90

    100 x $0.099 per call

  • Get Google autocomplete suggestions for a keyword$0.22

    100 x $0.0022 per call

  • List trending TikTok hashtags right now$0.165

    100 x $0.00165 per result

  • List trending videos on YouTube$0.055

    100 x $0.00055 per video

  • List trending topics on X$0.0429

    100 x $0.000429 per trend

Total for 100 rows through every step$13.1329

Paid from your prepaid balance at the quoted customer price. No top-up fee. Pay per call; each call’s price is shown before it runs. Each run is quoted before it starts.

Try it

Paste this into your agent

Start free, no card needed. Your agent runs each step and reports the cost.

Use Ahel. Compare the search interest in "<keyword A>" and "<keyword B>" in the United States over the last 12 months with google.keywords.trends, then get their search volume and CPC with google.keywords.volume. Then list the hashtags trending on TikTok with tiktok.trends.hashtags, the videos trending on YouTube with youtube.trending.videos and the topics trending on X with x.trending.topics, all for the United States. Quote the total before you run anything, then tell me which keyword is rising, what is trending now, and what it cost.

What a result looks like

google.keywords.trends returns one row per date and keyword with date, timestamp, value and query, where value is the relative interest from 0 to 100 that Google Trends shows. google.keywords.volume rows carry keyword, search_volume, cpc, competition, competition_index, low_top_of_page_bid, high_top_of_page_bid and monthly_searches. tiktok.trends.hashtags rows carry rank, hashtag, posts, video_views, country_code, period and trend_direction; youtube.trending.videos rows carry title, channel_name, views, likes, comments, duration_seconds, published_at and category; x.trending.topics rows carry trend, volume, time_period and observed_at. Every row keeps its provider and when it was collected.

What the numbers mean

Trends values are relative: 100 is the peak interest for that keyword set in that period and place, not a count of searches. Use google.keywords.volume for monthly search counts. The trending lists are a snapshot at the time of the call, so run them again to see movement, and pass a country for each one.

What it costs

When we checked on 2 Nov 2026, google.keywords.trends cost $0.0275 per search of up to five keywords, google.keywords.volume $0.099 per call for a keyword list, google.serp.autocomplete $0.0022 per call, tiktok.trends.hashtags $0.00165 per result, youtube.trending.videos $0.00055 per video and x.trending.topics $0.000429 per trend. Shown prices include Ahel's margin, and every run is quoted before it starts.

More trend and keyword tasks

The catalog also has keyword ideas with volume and intent, the keywords a domain ranks for, trending search terms on TikTok, trending posts on Reddit and developer boards, and Google News results for a keyword. For keyword research in Claude Code, see the guide to SEO keyword and SERP data.

Set up Ahel in your agent

  • Claude Code

    Run once, then approve the sign-in: claude mcp add --transport http --scope user ahel 'https://mcp.ahel.ai'

  • Codex

    Run once, then approve the sign-in: codex mcp add ahel --url 'https://mcp.ahel.ai' && codex mcp login ahel

  • Claude.ai

    Add a custom connector with the server address https://mcp.ahel.ai and approve the sign-in.