Google Trends API
Search and video
Interest over time, by region, related queries and Trending Now.
per report or trending row
Pass video, Shorts, playlist or channel URLs to get one JSON record per video without a YouTube account or downloading media. Each record includes plain text for LLM prompts, timestamped segments for citations, and optional SRT or WebVTT subtitles.
{
"video_id": "EXAMPLE0001",
"url": "https://www.youtube.com/watch?v=EXAMPLE0001" ,
"title": "Example talk",
"channel_name": "Example Channel",
"channel_id": "UCexample000000000000000",
"view_count": 18420,
"published_at": "2026-01-15T09:00:00-08:00",
"duration_seconds": 95,
"language": "en",
"language_name": "English"
}pt-BR, then en, or fall back to the video's own language.subtitles field, at no extra cost.status field; videos without captions and errors are not charged.Feed transcripts into summaries, chatbots and search indexes, as plain text.
Turn videos into posts, newsletters and show notes.
Study what is said across channels and playlists, with timestamps to cite exact moments.
Get SRT or WebVTT files for existing captions.
Search transcripts for mentions, with the second each one is spoken.
| Field | Key | What it does | Default |
|---|---|---|---|
| YouTube URLs or video IDs | urls | Video, Shorts and live links, IDs, playlist links and channel links (@handle, /channel/UC…) | three example videos |
| Caption languages | languages | Language codes in order of preference; human captions win over automatic ones in the same language | ["en"] |
| Fall back to any language | fallbackToAnyLanguage | Return the video's own captions when none of your languages exists | on |
| Include timestamped segments | includeSegments | Add the segments list next to text | on |
| Subtitle format | subtitleFormat | none, srt or vtt | none |
| Maximum videos per playlist or channel | maxVideosPerSource | Newest videos taken from each playlist or channel link | 100 |
{
"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw" ],
"languages": ["en"],
"includeSegments": false
}We ran this exact input on 2 Dec 2026: 1 record, run status SUCCEEDED.
{
"urls": ["https://www.youtube.com/@example-channel" ],
"maxVideosPerSource": 20,
"languages": ["de", "en"],
"subtitleFormat": "srt"
}One record per item in the run's dataset, exportable as JSON, CSV or Excel.
{
"video_id": "EXAMPLE0001",
"url": "https://www.youtube.com/watch?v=EXAMPLE0001" ,
"source_url": null,
"status": "ok",
"error_code": null,
"error": null,
"title": "Example talk",
"channel_name": "Example Channel",
"channel_id": "UCexample000000000000000",
"view_count": 18420,
"published_at": "2026-01-15T09:00:00-08:00",
"duration_seconds": 95,
"language": "en",
"language_name": "English",
"is_auto_generated": true,
"available_languages": [
{
"code": "en",
"name": "English",
"is_auto_generated": true
}
],
"segment_count": 2,
"segments": [
{
"start": 0.4,
"duration": 3.1,
"text": "This is invented example text."
},
{
"start": 3.5,
"duration": 2.8,
"text": "It stands in for the video's captions."
}
],
"text": "This is invented example text. It stands in for the video's captions.",
"subtitles": null,
"scraped_at": "2026-12-02T12:00:00.000Z"
}Shortened: real records also carry description and thumbnail_url.
| Field | What it means |
|---|---|
text | All segments joined into one paragraph: the field to put into an LLM prompt. |
segments | start and duration in seconds, plus the caption text. |
is_auto_generated | true when YouTube's speech recognition made the captions: expect missing punctuation. |
status / error_code | ok, no_captions or error with a code such as video_unavailable, age_restricted, live_stream or bot_check. |
subtitles | SRT or WebVTT text when requested; save it as a .srt or .vtt file. |
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/mzceZowBx7VrobetK/run-sync-get-dataset-items?maxTotalChargeUsd=0.10" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "languages": ["en"], "includeSegments": false}' 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("mzceZowBx7VrobetK").call(
run_input={
"urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw" ],
"languages": ["en"],
"includeSegments": False,
},
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("status"), item.get("title"))JavaScript
// npm install apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('mzceZowBx7VrobetK').call(
{
urls: ['https://www.youtube.com/watch?v=jNQXAC9IVRw' ],
languages: ['en'],
includeSegments: false,
},
{ maxTotalChargeUsd: 0.1 }, // spend cap for this run
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.status, item.title);AI agents (MCP)
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=cozybit/youtube-transcript-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--youtube-transcript-scraper. Try a prompt such as: Get the transcripts of the 10 newest videos on @example-channel and summarize each in three bullet points.
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 mzceZowBx7VrobetK 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.mzceZowBx7VrobetK never changes; the name cozybit/youtube-transcript-scraper works too.# 1. Start a run; the answer comes back at once
curl -sS -X POST "https://api.apify.com/v2/acts/mzceZowBx7VrobetK/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.csvSchedule a channel link daily with a small maxVideosPerSource to collect new uploads. 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 |
|---|---|---|---|
transcript | Transcript delivered (status: ok) | 0.00001 USD (0.01 USD per 1,000) | 2.00 USD per 1,000 |
| Outcome | What it is | Charged? |
|---|---|---|
ok | Transcript delivered | Charged |
no_captions | The video has no captions in your languages (or none at all) | Free |
error | Unavailable, private, age-restricted or live video, invalid link, or a failed request; see error_code | Free |
| Listing | Reading a playlist's or channel's video list | Free |
Not charged: Videos without captions, unavailable videos, errors and playlist or channel listing.
Apify's free plan (no card) returns up to 20 videos per run. You can cap any run's cost with maxTotalChargeUsd.
| Example | Charged events | At the trial price | At the planned rate |
|---|---|---|---|
| 10 videos | 10 × transcript | 0.0001 USD | 0.02 USD |
| A channel's 100 newest videos, 92 with captions | 92 × transcript | 0.00092 USD | 0.18 USD |
| 5,000 videos | 5,000 × transcript | 0.05 USD | 10.00 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.
404 of 407 videos returned a transcript. The other three got the right answer: 2 videos without captions and 1 private video. These figures come from 44 runs on the Apify platform, with videos in six languages, manual and automatic captions, Shorts, podcasts of up to 5 hours and channel links. The median run of 10 videos takes 15 seconds.
Problems and questions go to the actor's Issues tab on Apify.
Yes. When a video has only automatic captions you get those, marked is_auto_generated: true. Human captions win when both exist in the same language.
They return status: "no_captions" and are not charged. The actor does no speech-to-text of its own.
Yes. Set subtitleFormat to srt or vtt; the subtitles field holds the file's text, at no extra cost.
That is a common case: see the guide YouTube captions work locally but fail on cloud hosts, which also covers official API and local options.
Search and video
Interest over time, by region, related queries and Trending Now.
per report or trending row
Jobs and pay
Every open job from three job systems, in one format, with salaries.
per job
No card needed. Errors are never charged, and every run can carry a spend cap.