YouTube Transcript Scraper
Search and video
Captions as plain text, timestamped segments and SRT or WebVTT files.
per transcript
Get Google's 0-100 interest curve for up to 200 keywords per run, the same interest by country, region, city or US metro area, top and rising related queries, and what a country is searching for right now. Empty reports are free.
{
"type": "interest_over_time",
"keyword": "example keyword",
"keywords": ["example keyword"],
"geo": "US",
"timeframe": "today 3-m",
"category": 0,
"property": "",
"resolution": "DAY"
}+250% or Breakout.Find rising searches while interest is still growing.
Compare a brand with competitors on one scale, by country or city.
Measure seasonality and long-term demand back to 2004.
See what a country is searching for right now.
Feed stable records into dashboards and models on a schedule.
| Field | Key | What it does | Default |
|---|---|---|---|
| Reports to collect | reports | interest_over_time, interest_by_region, related_queries, related_topics, trending_now | the first three |
| Keywords | keywords | 1-200 search terms | ["coffee"] |
| Compare keywords | compare | Put 2-5 keywords on one shared scale | off |
| Explore location | geo | Empty for worldwide, US, US-CA or a metro such as US-CA-807 | worldwide |
| Explore time range | timeframe | Past hour up to all time since 2004, or custom dates | today 12-m |
| Trending Now country, hours, rows | trendingGeo, trendingHours, trendingMaxItems | 4 hours to 7 days, up to about 500 rows | US, 24, 50 |
{
"keywords": ["coffee"],
"geo": "US",
"timeframe": "today 3-m",
"reports": ["interest_over_time"]
}We ran this exact input on 2 Dec 2026: 1 record, run status SUCCEEDED.
{
"keywords": ["example phone a", "example phone b"],
"compare": true,
"geo": "DE",
"timeframe": "today 3-m"
}{
"reports": ["trending_now"],
"trendingGeo": "GB",
"trendingHours": "4",
"trendingMaxItems": 100
}One record per item in the run's dataset, exportable as JSON, CSV or Excel.
{
"type": "interest_over_time",
"status": "ok",
"error": null,
"keyword": "example keyword",
"keywords": ["example keyword"],
"geo": "US",
"timeframe": "today 3-m",
"category": 0,
"property": "",
"resolution": "DAY",
"average": null,
"values": [
{
"date": "2026-09-03T00:00:00.000Z",
"value": 61,
"is_partial": false
},
{
"date": "2026-09-04T00:00:00.000Z",
"value": 64,
"is_partial": false
},
{
"date": "2026-12-01T00:00:00.000Z",
"value": 70,
"is_partial": true
}
],
"source_url": "https://trends.google.com/trends/explore?q=example+keyword&geo=US&date=today+3-m" ,
"scraped_at": "2026-12-02T12:00:00.000Z"
}Shortened to three points.
| Field | What it means |
|---|---|
values[].value | Relative interest from 0 to 100 within this request: 100 is the peak, not a search count. |
is_partial | The last point is often partial because the period is still running. |
status | ok, no_data (Google had nothing, free) or error (failed after retries, free). |
source_url | The matching Google Trends page, to check a result by eye. |
Every example runs the same input. Get your API token in Apify Console under Settings, API & Integrations, and keep it in the APIFY_TOKEN environment variable.
curl
curl -sS --max-time 310 -X POST \
"https://api.apify.com/v2/acts/G4aJjtT7Oiw6gMaAG/run-sync-get-dataset-items?maxTotalChargeUsd=0.10" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywords": ["coffee"], "geo": "US", "timeframe": "today 3-m", "reports": ["interest_over_time"]}'Python
# pip install apify-client
import os
from decimal import Decimal
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("G4aJjtT7Oiw6gMaAG").call(
run_input={
"keywords": ["coffee"],
"geo": "US",
"timeframe": "today 3-m",
"reports": ["interest_over_time"],
},
max_total_charge_usd=Decimal("0.10"), # spend cap for this run
)
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item.get("type"), item.get("keyword"), item.get("status"))JavaScript
// npm install apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('G4aJjtT7Oiw6gMaAG').call(
{
keywords: ['coffee'],
geo: 'US',
timeframe: 'today 3-m',
reports: ['interest_over_time'],
},
{ maxTotalChargeUsd: 0.1 }, // spend cap for this run
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.type, item.keyword, item.status);AI agents (MCP)
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=cozybit/google-trends-scraper"
}
}
}Works in any MCP client that accepts a remote server URL (Apify's MCP docs). Clients with OAuth sign you in to Apify on first use; others send "headers": {"Authorization": "Bearer <APIFY_TOKEN>"}. The tool is called cozybit--google-trends-scraper. Try a prompt such as: Compare Google Trends interest in two product names in Germany over the past 3 months.
More in AI agents and MCP.
n8n, Make, Zapier
Apify has its own apps for the main automation platforms. Point them at this actor's ID G4aJjtT7Oiw6gMaAG and paste the input JSON.
Step-by-step setup: n8n, Make and Zapier.
Apify Console
Open the Store page and choose Try for free. Apify asks you to sign in or create a free account.
Paste the input into the JSON tab of the input form, or fill in the fields.
Start the run, then open the dataset and export it as JSON, CSV or Excel. Save the input as a task to schedule it.
run-sync-get-dataset-items waits at most 300 seconds, then answers HTTP 408. Keep synchronous calls small and start an asynchronous run for batches (below).maxTotalChargeUsd caps what one run may charge; the run stops cleanly when it is reached.Authorization header, never as ?token= in the URL, where it ends up in logs.G4aJjtT7Oiw6gMaAG never changes; the name cozybit/google-trends-scraper works too.# 1. Start a run; the answer comes back at once
curl -sS -X POST "https://api.apify.com/v2/acts/G4aJjtT7Oiw6gMaAG/runs?maxTotalChargeUsd=1" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d @input.json
# The answer's data.id is RUN_ID and data.defaultDatasetId is DATASET_ID.
# 2. Wait up to 60 s per call until data.status is SUCCEEDED
curl -sS "https://api.apify.com/v2/actor-runs/RUN_ID?waitForFinish=60" \
-H "Authorization: Bearer $APIFY_TOKEN"
# 3. Read the records as JSON, CSV or Excel (format=json, csv or xlsx)
curl -sS "https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv" \
-H "Authorization: Bearer $APIFY_TOKEN" -o results.csvSave a Trending Now input as a task and schedule it daily for a snapshot per country. Schedules live in Apify Console under Schedules; a webhook or the no-code apps can pick up each finished run.
You pay per event, through your Apify account, with platform costs included. The live price is on the Store page: 0.00001 USD per event, a trial price until 31 Dec 2026.
| Event | What counts | Trial price until 31 Dec 2026 | Planned post-trial rate |
|---|---|---|---|
report | Explore report (one keyword, one report type) | 0.00001 USD (0.01 USD per 1,000) | 2.00 USD per 1,000 |
trend-row | Trending Now row | 0.00001 USD (0.01 USD per 1,000) | 0.50 USD per 1,000 |
| Outcome | What it is | Charged? |
|---|---|---|
ok | Explore report or Trending Now row delivered | Charged |
no_data | Google returned nothing for this keyword, place and time range | Free |
error | The request failed after retries | Free |
Not charged: no_data and error records.
Apify's free plan (no card) returns up to 15 Explore reports and 50 Trending Now rows per run. You can cap any run's cost with maxTotalChargeUsd.
| Example | Charged events | At the trial price | At the planned rate |
|---|---|---|---|
| One keyword, the three default reports | 3 × report | 0.00003 USD | 0.006 USD |
| 100 keywords, three reports each | 300 × report | 0.003 USD | 0.60 USD |
| Top 50 trending searches in one country | 50 × trend-row | 0.0005 USD | 0.025 USD |
The post-trial rate is planned, not scheduled: the trial may be extended, Apify notifies users before any price increase, and the Store page always shows the price that applies. See how pricing works and the cost estimator.
3,077 of 3,080 reports and trending rows arrived across 120 runs on the Apify platform with default settings, and Google blocked none of those runs. They spanned 10 countries plus worldwide, time ranges from one day to five years and 1-5 keywords. The median run takes 20 seconds; 95% finish within 49 seconds.
Problems and questions go to the actor's Issues tab on Apify.
no_data (free).Not for Explore reports: Google Trends gives relative interest from 0 to 100. Trending Now rows include Google's approximate volume, such as 2,000,000+.
Yes: set geo to US, US-CA or US-CA-807, and regionResolution to CITY for a city breakdown.
no_data usually means the keyword has too little search volume for that place and time range. Empty reports are free.
No. You need only an Apify account.
Search and video
Captions as plain text, timestamped segments and SRT or WebVTT files.
per transcript
Travel prices
Hotel prices, stars, ratings and details for your dates.
per hotel
No card needed. Errors are never charged, and every run can carry a spend cap.