YepAPI

Command Palette

Search for a command to run...

POST/v1/seo/trends

Google Trends API

Google Trends data API — interest over time, regional breakdown, and related queries for any keyword. Trend analysis from $0.02/call.

Retrieve interest-over-time data from Google Trends for one or more keywords. Compare up to 5 topics side-by-side with geographic breakdown and related queries. No scraping — clean structured data via API.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/seo/trends
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "keywords": [
      "react",
      "vue",
      "angular"
    ],
    "timelineData": [
      {
        "date": "2026-03-01",
        "values": [
          85,
          42,
          28
        ]
      },
      {
        "date": "2026-03-08",
        "values": [
          88,
          40,
          27
        ]
      }
    ],
    "averages": [
      86,
      41,
      27
    ]
  }
}

Features

Interest-over-time data with weekly granularity

The timelineData array returns dated points with interest values, so you can plot how attention to a keyword rises and falls week over week.

Compare up to 5 keywords side-by-side

Pass several comma-separated keywords and each timeline point returns a values array aligned to your terms, letting you chart relative interest across up to five topics at once.

Geographic interest breakdown by region

Use the location field to scope a query to a market, so the interest curve reflects regional demand rather than a global average.

Related queries and rising topics

Beyond the timeline, the endpoint surfaces the queries trending around your terms, helping you catch rising topics before they peak.

Use cases

Trend Validation

Verify whether a keyword or topic is trending up or down before investing in content creation or product development.

Seasonal Planning

Identify seasonal demand patterns to time content launches, ad campaigns, and inventory decisions.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/seo/trends', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "keywords": [
      "react",
      "vue",
      "angular"
    ],
    "location": "us"
  }),
});
const data = await res.json();
console.log(data);

The Google Trends API for developers — interest over time & regional demand, no scraping

The Google Trends API returns interest-over-time data for up to five keywords at once, with weekly points and regional scoping. Instead of scraping the Trends site or wrestling with its unofficial endpoints, you post your terms and get clean structured data.

It is the demand-signal tool in YepAPI's SEO suite. Pair it with the Keyword Ideas and Content Summary endpoints — one key — to move from spotting a rising trend to planning and validating content around it.

What is a Google Trends API?

A Google Trends API returns search-interest data as structured JSON rather than the interactive charts on the Trends website. You pass one or more keywords and get a timelineData array of dated points, each with a values array of relative interest (0–100) per term, plus averages and related queries. Comparing terms shows which is gaining or fading. The advantage over scraping is stability and clean output. YepAPI serves it at /v1/seo/trends: post comma-separated keywords and a location, and receive the interest timeline ready to chart or threshold.

Build your own trend tracking tool

Build a dashboard that charts interest for a brand against its competitors using the aligned values arrays, or a trend-validation widget that tells a content team whether a topic is rising before they commit. Watch the related/rising queries to auto-surface emerging subtopics for your editorial calendar. Because the data is dated and numeric, you can detect inflection points programmatically and trigger alerts. Feed validated rising terms into the Keyword Ideas API to expand them into a full content plan.

Google Trends API pricing — $0.02/call

Each Trends query is a flat $0.02, comparing up to five keywords in that single call — there is no per-row charge. Polling a set of topics daily for a month costs well under a dollar. Other Trends data providers charge around $0.05 per call with fewer parameters; here you get multi-keyword comparison and regional scoping at two cents, cheap enough to monitor many topics continuously.

Validate seasonal demand before you build

Before investing in content or inventory around a topic, pull its multi-year interest curve and read the seasonality directly from timelineData. A keyword that spikes every November tells you exactly when to publish and when to run ads. Comparing a candidate term against an established one shows whether interest is structurally growing or just briefly hyped — the difference between a durable content bet and a fad. Two cents per check makes this validation routine, not a special project.

Try the Google Trends API free

Start with $5 of free credit and no credit card — that covers hundreds of Trends queries. Run a comparison on terms you understand, confirm the timeline and values arrays match the public Trends chart, and wire the structured output into your dashboard before spending anything.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Retrieve interest-over-time data from Google Trends for one or more keywords. Compare up to 5 topics side-by-side with geographic breakdown and related queries. No scraping — clean structured data via API.

Each API call costs $0.02. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/seo/trends. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More seo apis endpoints