serpapi_google_trends

Pack: serpapi · Endpoint: https://gateway.pipeworx.io/serpapi/mcp

Get Google Trends interest-over-time for <terms> — returns the requested trends block (interest over time, by region, or related queries) via SerpApi. Example: serpapi_google_trends({ q: “bitcoin,ethereum”, date: “today 12-m”, geo: “US”, _apiKey: “your-serpapi-key” })

Parameters

NameTypeRequiredDescription
qstringyesUp to 5 comma-separated terms to compare, e.g. “bitcoin,ethereum”
data_typestringnoTrends block to return (default “TIMESERIES”). One of TIMESERIES, GEO_MAP, GEO_MAP_0, RELATED_QUERIES
datestringnoOptional time range, e.g. “today 12-m”, “today 5-y”, “2021-01-01 2021-12-31”
geostringnoOptional two-letter geo code to scope the trend, e.g. “US”, “GB”
_apiKeystringyesSerpApi API key (get one at serpapi.com)

Example call

Arguments

{
  "q": "bitcoin,ethereum",
  "date": "today 12-m",
  "geo": "US",
  "_apiKey": "your-serpapi-key"
}

curl

curl -X POST https://gateway.pipeworx.io/serpapi/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"serpapi_google_trends","arguments":{"q":"bitcoin,ethereum","date":"today 12-m","geo":"US","_apiKey":"your-serpapi-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('serpapi_google_trends', {
  "q": "bitcoin,ethereum",
  "date": "today 12-m",
  "geo": "US",
  "_apiKey": "your-serpapi-key"
});

More examples

{
  "q": "python,javascript",
  "data_type": "GEO_MAP",
  "_apiKey": "your-serpapi-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "serpapi": {
      "url": "https://gateway.pipeworx.io/serpapi/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 11, 2026