Google search and market data

Google Trends Compare Scraper

Compare up to 5 keywords in Google Trends, the way the Compare view does: relative interest over time for all terms on one scale, the average per term, the leader, and optionally which term wins in each country or region. Up to 200 comparisons per run. Pay per comparison.

$5.00per 1,000 · Comparison fetched

One comparison of up to 5 keywords delivered with its full time series. Comparisons without data are never charged.

Call it from your code

curl
ACTOR=steadydata~google-trends-compare
URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items"

curl -X POST "$URL?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"comparisons": ["bitcoin, ethereum, solana", "iphone, samsung galaxy, pixel"], "timeframe": "today 12-m", "includeRegions": false}'
python
import os, requests

ACTOR = "steadydata~google-trends-compare"
URL = f"https://api.apify.com/v2/acts/{ACTOR}/run-sync-get-dataset-items"

rows = requests.post(
    URL,
    params={"token": os.environ["APIFY_TOKEN"]},
    json={'comparisons': ['bitcoin, ethereum, solana', 'iphone, samsung galaxy, pixel'], 'timeframe': 'today 12-m', 'includeRegions': False},
    timeout=900,
).json()

# every row carries a status; failures are records, not exceptions
ok = [r for r in rows if r.get("status") == "ok"]
print(len(ok), "rows delivered")
javascript
const ACTOR = "steadydata~google-trends-compare";
const url =
  `https://api.apify.com/v2/acts/${ACTOR}/run-sync-get-dataset-items` +
  `?token=${process.env.APIFY_TOKEN}`;

const rows = await fetch(url, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"comparisons": ["bitcoin, ethereum, solana", "iphone, samsung galaxy, pixel"], "timeframe": "today 12-m", "includeRegions": false}),
}).then((r) => r.json());

// one object per delivered row, same shape every time
console.log(rows.filter((r) => r.status === "ok").length, "rows");

Use it in an agent

Point an MCP client at Apify's hosted server with this dataset in the tools list, or run our own server locally. The field explanations in the table below travel with the schema, so your agent reads them straight from the platform instead of from this page.

mcp url
https://mcp.apify.com?tools=steadydata/google-trends-compare

# the tool arrives in your agent as steadydata--google-trends-compare

Input

FieldTypeNameWhat it does
comparisons
required
array of stringComparisonsOne comparison per row: 2 to 5 keywords separated by commas, e.g. 'bitcoin, ethereum, solana'. Each row is one input and one charged event; a row without data comes back as a free error record.
geostringCountry (empty = worldwide)Leave empty for worldwide, or a two-letter country code (US, GB, NL, DE ...).
timeframestringTimeframeThe period the interest is measured over.
includeRegionsbooleanInclude per-region winnersAlso fetch the breakdown by country (worldwide) or region (within a country) with the share of each term, so you see which term wins where. One extra request per comparison.
languagestringLanguageInterface language (hl), e.g. en-US, nl, de.

What you get back

output schema, one object per delivered row
{
  "terms": array | null,
  "geo": string | null,
  "timeframe": string | null,
  "averages": array | null,
  "leader": string | null,
  "leaderShare": number | null,
  "pointCount": integer | null,
  "series": array | null,
  "regions": array | null,
  "status": string | null,
  "input": string | null,
  "errorCode": string | null,
  "error": string | null
}
FieldTypeWhen it is filled
termsarray, null
geostring, null
timeframestring, null
averagesarray, nullFilled when Google returns a series for the comparison.
leaderstring, nullFilled when at least one term returns interest above zero over the period.
leaderSharenumber, nullFilled when at least one term returns interest above zero over the period.
pointCountinteger, nullCounted from series; empty when Google returns no series.
seriesarray, nullFilled when Google returns a series for the comparison.
regionsarray, nullFilled when includeRegions is on; empty otherwise.
statusstring, nullEither 'ok' or 'error'. An error row carries errorCode and error, and leaves the data fields empty; it is never charged.
inputstring, nullThe input this row was built from, so a row can always be traced back.
errorCodestring, nullFilled on an error row only; a delivered row leaves it empty.
errorstring, nullFilled on an error row only; a delivered row leaves it empty.

Related datasets

Already using this one? Ratings are the first thing other buyers look at, and this dataset has none yet. If it does a job for you, a rating on its Apify page is the one thing that helps. It takes a minute and it is the only thing we ask for.

Open the Apify page