Google search and market data

Google Trends Scraper (reliable, batch)

Batch Google Trends data with a transparent success rate: interest-over-time and related queries per search term, with geo, timeframe and language control. Strict output schema for AI agents and pipelines; only successfully delivered terms are charged.

$3.00per 1,000 · Search term delivered

One search term with full interest-over-time series and related queries. Failed terms are never charged.

Call it from your code

curl
ACTOR=steadydata~google-trends-batch
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 '{"queries": ["chatgpt"], "timeframe": "today 12-m", "includeRelatedQueries": true}'
python
import os, requests

ACTOR = "steadydata~google-trends-batch"
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={'queries': ['chatgpt'], 'timeframe': 'today 12-m', 'includeRelatedQueries': True},
    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-batch";
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({"queries": ["chatgpt"], "timeframe": "today 12-m", "includeRelatedQueries": true}),
}).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-batch

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

Input

FieldTypeNameWhat it does
queries
required
array of stringSearch termsSearch terms to fetch trends for. Max 200 per run.
geostringRegionGeo code such as US, NL, DE, or empty for worldwide. Region codes like US-CA also work.
timeframestringTimeframeTrends timeframe: 'now 1-d', 'now 7-d', 'today 1-m', 'today 3-m', 'today 12-m', 'today 5-y', or 'all'.
includeRelatedQueriesbooleanInclude related queriesAdds top and rising related queries per term.
languagestringInterface languagehl parameter, e.g. en-US or nl-NL. Affects formatted labels only.

What you get back

output schema, one object per delivered row
{
  "query": string,
  "status": string,
  "geo": string,
  "timeframe": string,
  "averageValue": number,
  "interestOverTime": array,
  "relatedQueries": object | null,
  "relatedQueriesNote": string,
  "errorCode": string,
  "error": string,
  "input": string
}
FieldTypeWhen it is filled
querystring
statusstringEither 'ok' or 'error'. An error row carries errorCode and error, and leaves the data fields empty; it is never charged.
geostring
timeframestring
averageValuenumber
interestOverTimearray
relatedQueriesobject, null
relatedQueriesNotestring
errorCodestringFilled on an error row only; a delivered row leaves it empty.
errorstringFilled on an error row only; a delivered row leaves it empty.
inputstringThe input this row was built from, so a row can always be traced back.

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