Use case

Google Trends seasonality data for demand and inventory planning

Pull Google Trends interest over time and by region for any keyword as JSON, to plan launches, stock and ad spend around real seasonal demand.

Prepaid, no subscriptionREST or MCPOne key for models, data and agents
Google Trendslovelyjsonitems[0]"keyword": "patio heater""timeframe": "today 5-y""geo": "US""interest_over_time": "weekly series""interest_by_region": "state breakdown"

Planning stock, ad budgets or a content calendar by gut feeling means you find out about the autumn spike after it started. Google Trends shows when interest in a product rises and where, but only in a chart you read by hand. Lovely Router runs the query for you. Send a keyword, a time period and a country, get one JSON object per call, pay per call from a prepaid balance. Run it from a spreadsheet script, a planning job or an AI agent with one API key.

Hand it to your AI agent

Copy this prompt into Claude Code, Cursor, Codex or any coding agent. It tells the agent where the docs are and how to use your API key.

Google Trends seasonality data for demand and inventory planning. Use the Lovely Router data tools: each returns JSON and is billed per result.

- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <the inputs (links, keywords or accounts) and how many results you need>
01

How it works

010203
  1. Pick the keywords

    List the products, categories or brand terms you plan around, one keyword per call.

  2. Run the tool for a period and a country

    Send the keyword to POST /v1/tools/google-trends/run with mode set to keyword, a predefinedTimeframe such as today 5-y, and a geo country code. Add fetchRegionalData to get the regional breakdown.

  3. Compare across years

    Store each result. Line up the same weeks across years to see when demand ramps up, peaks and falls, then work backwards to your order and launch dates.

02

Get seasonal demand with one request

Google Trends interest takes one keyword per call. predefinedTimeframe accepts values from now 1-h to today 5-y and all. geo is a country code, and an empty value means worldwide. The regional breakdown needs a country to be set:

curl https://lovelyrouter.com/v1/tools/google-trends/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "mode": "keyword",
      "keyword": "patio heater",
      "predefinedTimeframe": "today 5-y",
      "geo": "US",
      "fetchRegionalData": true
    },
    "max_results": 1
  }'

A call returns interest over time for the keyword and, with fetchRegionalData, interest by region. A run still going after 60 seconds returns 202; Run a tool shows how to poll.

03

What each call holds

Field groupWhat you get
KeywordThe term you asked about, in the period and country you set
Interest over timeHow interest in the keyword moved across the time period
Interest by regionHow interest splits across regions, when you turn on fetchRegionalData with a country

Trends reports relative interest, not search volumes. Use it to compare weeks, years and regions with each other, not to count searches.

04

Recipes

Find the real start of the season

Run a five-year view of your product keyword for your main market. Mark the week interest begins to climb each year and set purchase orders and ad launches a few weeks earlier.

Pick the regions for a launch

Run the keyword with a country and fetchRegionalData on, and start your paid campaign where interest is highest.

Compare product candidates

Run 10 keywords with the same period and country, then rank them by how steady interest is, not by one spike.

Check a trend is not a fad

Use all as the period for a rising term. If the curve is a single spike, skip it; if it is a slow climb, keep going.

Refresh a planning sheet

Run a short list of keywords every month from a scheduled job and write the series into a spreadsheet that your buyers already use.

Prefer plain words? Connect the MCP server and tell Claude Code or Cursor: "Check Google Trends for 'standing desk' and 'treadmill desk' in the US for the last 5 years and tell me when interest starts rising each year. One call per keyword."

06

What you pay

You pay per call: starting a run holds its maximum cost, the per-call fee, and the run settles to what it used. A run that fails or times out pays only for what it delivered, and a run refused at the start costs nothing.

Checking 40 keywords once a month is billed as 40 calls a month. There is no subscription and no monthly minimum: top up from $5, and one balance pays for tools and models. The card above shows today's price; pricing lists every tool.

07

Frequently asked questions

?
Can I get search volumes from Google Trends?+

No. The result shows relative interest over time and by region, which is what Trends itself shows. It is made for comparing periods and places.

Can I check several keywords in one run?+

One keyword per call. Run each keyword as its own call, and use the same period and country so the results compare.

Which time periods can I choose?+

now 1-h, now 4-h, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y and all.

How do I get the trending searches?+

Set mode to trending with a country in geo to get the top trending searches for it, instead of analyzing one keyword.

Do I need a subscription?+

No. You add credit to a prepaid balance and each run draws it down. Failed runs pay only for the results they delivered, and nothing renews automatically.

Planning around more than demand curves? See e-commerce intelligence, social listening and the tool catalog.

One prepaid key for models, data and agents

No subscription. Top up, use what you need, see every charge in your logs.