# YouTube Video Info Scraper (`myagizm/youtube-video-info`) Actor

Get YouTube video metadata without downloading — title, formats, qualities, subtitles, dubbing tracks. No login.

- **URL**: https://apify.com/myagizm/youtube-video-info.md
- **Developed by:** [MYM](https://apify.com/myagizm) (community)
- **Categories:** Videos
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.78 / 1,000 video infos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouTube Video Info Scraper — Scrape YouTube Video Metadata, Formats & Subtitles (No API Key, No Login)

<p align="center">
Scrape YouTube video info at scale — title, channel, views, duration, keywords, thumbnails, full description, upload date, available formats, qualities, subtitle languages and dubbing tracks — without downloading the video, with <b>no API key</b>, <b>no login</b> and <b>no cookies or account required</b>. Export scraped data to JSON, CSV, Excel, or XML, schedule runs via API, and integrate with your tools and AI workflows.
</p>

<p align="center">
<b>Built for AI agents:</b> plug straight into <b>Claude</b>, <b>ChatGPT / Codex</b> and <b>Cursor</b> through the Apify MCP server, and let your agent scrape YouTube video info on demand.
</p>

<p align="center">
<a href="https://apify.com/myagizm/youtube-video-info"><img src="https://img.shields.io/badge/Try%20Now-Apify-00b0ff?style=for-the-badge" alt="Try Now"></a>
<a href="https://apify.com/myagizm/youtube-video-info/input-schema"><img src="https://img.shields.io/badge/Input%20Schema-View-6c5ce7?style=for-the-badge" alt="Input Schema"></a>
<a href="https://apify.com/myagizm/youtube-video-info/api"><img src="https://img.shields.io/badge/API%20Docs-Read-2ecc71?style=for-the-badge" alt="API Docs"></a>
</p>

<p align="center">
<a href="#what-can-youtube-video-info-scraper-do">What it does</a> •
<a href="#use-with-ai-agents-mcp">AI agents (MCP)</a> •
<a href="#how-to-scrape-youtube-video-info">How to use</a> •
<a href="#what-data-can-i-scrape">Output data</a> •
<a href="#limits">Limits</a> •
<a href="#output-example">Example</a> •
<a href="#how-much-does-scraping-youtube-video-info-cost">Pricing</a> •
<a href="#integrations">Integrations</a> •
<a href="#faq">FAQ</a> •
<a href="#want-other-youtube-data">Other YouTube actors</a>
</p>

***

### What can YouTube Video Info Scraper do? {#what-can-youtube-video-info-scraper-do}

**YouTube Video Info Scraper** lets you scrape YouTube video info from any public video and returns its full metadata in clean, structured JSON — **without downloading the video** and with **no API key, no login, and no cookies or account required**. Paste one or many video links, entire channels, `/shorts` tabs, or plain search queries, and get back titles, channels, view counts, durations, keywords, thumbnails, descriptions, upload dates, plus the list of available formats, qualities, subtitle languages and dubbing (audio) tracks for each video.

It is the fastest way to turn raw YouTube URLs into a spreadsheet, a database, or a live feed for your AI agent — **at scale**, from a single video to hundreds in one run. **Get your first results free in under 2 minutes.** Go beyond the limitations of the official YouTube API and scrape only publicly available data.

#### ✅ Full video metadata, no download

Every result you scrape includes the essentials: `title`, `channel`, `channelId`, `channelUrl`, `duration`, `viewCount`, `category`, `uploadDate`, `keywords`, `thumbnail` and the full `description`. You get the data about the video, not the video file itself — so runs are fast and lightweight.

#### 🗂️ Formats, qualities & availability

For each video you scrape you can see which formats and resolutions are available, so you know exactly what a video offers before you decide to process it further. Perfect for planning downloads, quality checks, or building a catalog of what exists.

#### 💬 Subtitles & dubbing tracks

Discover which subtitle/caption languages a video has and which dubbing (alternate audio) tracks are offered. Ideal for localization research, accessibility audits, and multilingual content planning.

#### 📊 Bulk & channel-wide scraping

Pass a list of video URLs, a full channel URL, a channel's `/shorts` tab, or a YouTube search-results URL — each is expanded automatically into individual videos and processed together. Scrape a bunch of YouTube videos at once: one run can cover an entire content library, with no limitations on requests or number of calls.

#### 🔎 Search-driven collection

Don't have URLs? Provide plain search terms like `"best places of england"` and the actor scrapes matching videos alongside any links you supply. For Shorts sources, only Shorts among the results are kept.

#### ⚡ Reliable, hands-off scraping

No cookies to manage, no proxies to configure, no tokens to rotate — the actor handles everything for you and returns consistent, ready-to-use JSON. Fast response times deliver data in seconds 🚀. Live videos are flagged with an `isLive` field so you can filter them out.

#### 🔄 Always export-ready

Results land in a structured Apify dataset you can export to JSON, CSV, Excel, or XML, or pull through the API into any tool or workflow.

***

### Use with AI agents — Claude, ChatGPT & Cursor (MCP) {#use-with-ai-agents-mcp}

This actor is **MCP-ready**. Connect it through the [Apify MCP server](https://mcp.apify.com) and your AI assistant can call it directly as a tool to scrape YouTube video info — no glue code required.

- **Claude** (Claude Desktop / Claude Code) — add the Apify MCP server and ask Claude to "get the metadata for these YouTube videos."
- **ChatGPT / Codex** — expose the actor as a tool and let it scrape video info mid-conversation.
- **Cursor** — pull YouTube metadata straight into your coding workflow.

Because output is clean JSON, agents can reason over it immediately — summarize a channel's catalog, rank videos by views, detect which languages a video is subtitled in, or feed the data into a larger pipeline.

Beyond MCP, you can wire the dataset into **Make, Zapier, n8n, Slack, Airbyte, Gumloop, CrewAI, IFTTT, Lindy, GitHub, Google Sheets and Google Drive** using Apify's native connectors and webhooks, so fresh video metadata flows automatically to wherever your team works.

***

### How to scrape YouTube video info {#how-to-scrape-youtube-video-info}

1. **Open the actor** on [Apify](https://apify.com/myagizm/youtube-video-info) and click **Try for free**.
2. **Add what to scrape** — paste one or more video URLs into **YouTube URLs** (`startUrls`). You can also drop in channel URLs, a channel's `/shorts` tab, or a search-results URL.
3. *(Optional)* **Add search terms** — type plain queries into **Search terms** (`searchTerms`) to pull in matching videos.
4. **Set a limit** — use **Max videos** (`maxItems`) to cap how many videos are scraped in one run.
5. **Click Start** and wait — results appear live in the **Output** tab.
6. **Export or integrate** — download as JSON, CSV, Excel or XML, or connect via API, webhook or MCP.

No account credentials, no API key, no proxy setup. Paste, run, done.

***

### What data can I scrape from a YouTube video? {#what-data-can-i-scrape}

Each video you scrape produces one dataset item. The core fields returned are:

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | YouTube video ID |
| `ok` | boolean | Whether the video was scraped successfully |
| `url` | string | Canonical watch URL |
| `sourceUrl` | string | The URL/query this result was expanded from |
| `title` | string | Video title |
| `description` | string | Full video description |
| `channel` | string | Channel (uploader) name |
| `channelId` | string | Channel ID |
| `channelUrl` | string | Channel URL |
| `category` | string | YouTube category (e.g. Music, Gaming) |
| `duration` | integer | Length in seconds |
| `viewCount` | integer | Total view count |
| `uploadDate` | string | Upload date/time (ISO 8601) |
| `keywords` | array | Video tags/keywords |
| `thumbnail` | string | Highest-resolution thumbnail URL |
| `isLive` | boolean | Whether the video is a live stream |

Alongside these, each item exposes the **available formats and qualities**, the **subtitle/caption languages**, and any **dubbing (alternate audio) tracks** detected for the video, so you can see everything a video offers at a glance.

> Note: fields depend on what a given video publicly exposes. Private, deleted, or region-blocked videos may return fewer fields with `ok: false`.

***

### Use cases for scraping YouTube video info

- **Content research** — analyze a channel's catalog, spot top performers by `viewCount`, and study titles, keywords and categories.
- **Competitor & niche analysis** — track what topics and formats perform in your space, and monitor the competition.
- **Localization planning** — find which videos already have subtitles or dubbing in target languages, and where gaps exist.
- **SEO & keyword mining** — harvest `keywords` and titles across many videos to inform your own tagging.
- **Media catalogs** — build a searchable database of videos with durations, thumbnails and metadata.
- **AI & RAG pipelines** — feed structured video metadata into LLM workflows and agents.
- **Pre-download checks** — confirm available formats and qualities before processing videos elsewhere.
- **Market research & trend monitoring** — schedule recurring runs to watch how views and new uploads change over time.

***

### Scrape specific video URLs

Pass one or more watch URLs in `startUrls`:

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
    { "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }
  ],
  "maxItems": 50
}
```

### Scrape an entire channel

Provide a channel URL — it is expanded into its videos automatically:

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/@RickAstleyYT" }
  ],
  "maxItems": 100
}
```

### Scrape only a channel's Shorts

Point at the channel's `/shorts` tab to keep just the Shorts:

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/@MrBeast/shorts" }
  ],
  "maxItems": 30
}
```

### Scrape videos from search terms

Skip URLs entirely and use plain queries:

```json
{
  "searchTerms": [
    "best places of england",
    "lofi hip hop mix"
  ],
  "maxItems": 40
}
```

### Mix links and search in one run

Combine everything — links, channels and searches are processed together:

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
    { "url": "https://www.youtube.com/results?search_query=coding+music" }
  ],
  "searchTerms": ["travel vlog 4k"],
  "maxItems": 60
}
```

***

### Limiting results {#limits}

Use **`maxItems`** to control the size of each run when you scrape YouTube video info:

- **Type:** integer
- **Default:** `50`
- **Minimum:** `1`
- **Maximum:** `100`

`maxItems` is the total cap on how many videos are scraped per run, across all your URLs, expanded channels/search pages and search terms combined. Set it low while testing and raise it once you're happy with the output.

***

### Output example {#output-example}

A single result item (trimmed for readability):

```json
{
  "id": "dQw4w9WgXcQ",
  "ok": true,
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "sourceUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channel": "Rick Astley",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
  "category": "Music",
  "duration": 213,
  "viewCount": 1794328932,
  "uploadDate": "2009-10-24T23:57:33-07:00",
  "isLive": false,
  "thumbnail": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
  "keywords": [
    "rick astley",
    "Never Gonna Give You Up",
    "nggyu",
    "rick rolled",
    "Rick Roll",
    "80s music",
    "never gonna give you up karaoke"
  ],
  "description": "The official video for “Never Gonna Give You Up” by Rick Astley..."
}
```

***

### How much does scraping YouTube video info cost? {#how-much-does-scraping-youtube-video-info-cost}

This actor uses a simple, efficient **pay-per-result** model — you're billed for the video items you scrape, plus the small platform compute they use. Because it reads metadata only and never downloads video files, runs are fast and inexpensive, and large batches stay predictable.

New Apify accounts include **free monthly usage credits**, so you can **get your first results free in under 2 minutes** and run small jobs at no cost. Check the live pricing on the [actor's Apify page](https://apify.com/myagizm/youtube-video-info) for exact figures.

Tips to keep costs down:

- Start with a small `maxItems` while testing.
- Deduplicate your `startUrls` before running.
- Schedule incremental runs instead of re-scraping everything each time.

***

### Integrate with n8n, Zapier, and Make {#integrations}

Run the actor and get results from any tool over HTTP. The actor path is **`myagizm~youtube-video-info`**.

**Run synchronously and get dataset items** (best for small runs — waits and returns the data):

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-video-info/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "startUrls": [
      { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }
    ],
    "maxItems": 25
  }'
```

**Run asynchronously** (best for large runs — start the run, fetch results later):

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-video-info/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchTerms": ["lofi hip hop mix"],
    "maxItems": 100
  }'
```

Then read the results from the run's dataset:

```bash
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&format=json"
```

For **n8n**, **Zapier** and **Make**, use the official Apify app/connector to trigger the actor and receive dataset items, or call the endpoints above from a generic HTTP node. You can also attach **webhooks** to notify your system the moment a run finishes.

***

### Want other YouTube data? {#want-other-youtube-data}

Scraping YouTube video info is just one piece. Explore the rest of the **myagizm** YouTube toolkit to scrape whatever else you need:

- [YouTube Channel Scraper](https://apify.com/myagizm/youtube-channel-scraper) — scrape a channel's videos and stats.
- [YouTube Transcript Scraper](https://apify.com/myagizm/youtube-transcript-scraper) — extract full video transcripts/captions.
- [YouTube Comment Scraper](https://apify.com/myagizm/youtube-comment-scraper) — collect comments from any video.
- [YouTube Video Downloader](https://apify.com/myagizm/youtube-video-downloader) — download YouTube videos.
- [YouTube Shorts Downloader](https://apify.com/myagizm/youtube-shorts-downloader) — download YouTube Shorts.
- [YouTube to MP3](https://apify.com/myagizm/youtube-mp3-downloader) — extract audio from YouTube videos.

***

### Support {#support}

Questions, feature requests, or a video that won't parse? Open an issue on the actor's **Issues** tab on its [Apify page](https://apify.com/myagizm/youtube-video-info) and include the input you used. Feedback is welcome and helps improve the actor.

***

### FAQ {#faq}

#### Is it legal to scrape YouTube video info?

The actor scrapes only **publicly available** information. As with any scraping, you are responsible for how you use the data — respect YouTube's Terms of Service, copyright, and applicable privacy laws such as GDPR, and avoid collecting personal data unlawfully. If in doubt, consult legal counsel.

#### Do I need a YouTube API key or an account to scrape YouTube video info?

No. There's no API key, no login and no OAuth. Paste URLs or search terms and run — no cookies or account required.

#### Does this download the videos?

No. This actor scrapes **metadata only** — titles, stats, formats, subtitles, dubbing tracks and more — without downloading the video files. That's what keeps it fast and cheap.

#### Can I use YouTube Video Info Scraper with the Apify API?

Yes. Trigger runs and fetch results via the Apify API using synchronous or asynchronous endpoints (the actor path is `myagizm~youtube-video-info`), and attach webhooks to react when a run finishes.

#### Can I scrape YouTube video info through an MCP server (AI agents)?

Yes. The actor is MCP-ready via the [Apify MCP server](https://mcp.apify.com), so AI agents like Claude, ChatGPT and Cursor can call it as a tool.

#### Do I need proxies to scrape YouTube video info?

No. The actor handles connectivity and reliability for you. There's nothing to set up — no proxies, no cookies.

#### Can I integrate scraped YouTube data with other apps?

Yes — via the Apify API (sync or async), webhooks, MCP, and native connectors for Make, Zapier, n8n, Slack, Notion, Airtable, Google Sheets and Google Drive.

#### Can I export scraped data to CSV, Excel or JSON?

Yes. Results are stored in an Apify dataset and can be exported to JSON, CSV, Excel, or XML, or pulled via the API.

#### Can I scrape multiple YouTube videos at once?

Yes. Pass many URLs, entire channels, `/shorts` tabs, search-results URLs and search terms in one run — there are no limitations on the number of requests, capped only by `maxItems`.

#### What inputs can I provide?

Video URLs, channel URLs, a channel's `/shorts` tab, YouTube search-results URLs (all in `startUrls`), and/or plain `searchTerms`. You can mix them in a single run.

#### How many videos can I scrape per run?

Up to `maxItems`, which defaults to `50` and can be set between `1` and `100`.

#### Can I get a video's available qualities and formats?

Yes — each result exposes the available formats and qualities so you can see what a video offers before processing it further.

#### Can I see which subtitles or dubbing languages a video has?

Yes. Each item reports the subtitle/caption languages and any dubbing (alternate audio) tracks detected.

#### How do I only scrape Shorts?

Use a channel's `/shorts` tab as a start URL. When the source is Shorts, only Shorts among the results are kept.

#### Can I scrape data from private accounts or videos?

No. The actor scrapes **publicly available** videos only. Private, deleted or region-blocked videos return a result with `ok: false` and fewer fields, so you can filter them out easily.

#### Can I schedule the scraper?

Yes. Use Apify **Schedules** to run the actor on a cron-like interval and keep your data fresh automatically.

#### How fast is it?

Because it scrapes metadata only, it's quick — most single-video lookups return in seconds, and batches process in parallel with fast, fresh data.

#### How do I detect live streams?

Check the `isLive` boolean on each item.

***

### Related searches {#related-searches}

youtube video info scraper · youtube metadata api alternative · youtube view count checker · video stats export · youtube keyword research data · bulk youtube video lookup · youtube video data csv · youtube content audit tool · x402 actor · ai agent scraper no account · pay with usdc api · mcp scraper for agents

***

### Run it from an AI agent — no Apify account needed (x402) {#x402}

This actor accepts **agentic payments** over the open [x402 protocol](https://docs.apify.com/integrations/x402). An AI agent can pay for a run in **USDC on Base** and get the data without an Apify account, a credit card, or an API key:

```bash
## one-time: wallet + prepaid token (agent side)
npx -y awal auth login <email>
npx awal x402 pay 'https://agi.apify.com/protocols/x402/prepaid-tokens?amount=1&currency=usd' --max-amount 1000000 --json
## then use the returned token exactly like an Apify API token
curl "https://api.apify.com/v2/acts/myagizm~youtube-video-info/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $PREPAID_TOKEN" -H 'Content-Type: application/json' -d '{INPUT}'
```

Why it works here: this actor is **pay per event** and runs with **limited permissions**, the two conditions x402 requires. You are charged per result, so an agent pays only for the rows it receives. The prepaid token is a hard spending cap and expires 14 days after purchase.

***

### Disclaimer {#disclaimer}

This is an independent tool and is not affiliated with, endorsed by, or sponsored by YouTube. All product names, logos, and brands are property of their respective owners.

***

### Resources {#resources}

- [Apify API documentation](https://docs.apify.com/api/v2) — run actors and fetch datasets programmatically.
- [Apify MCP server](https://mcp.apify.com) — connect this actor to Claude, ChatGPT and Cursor.
- [Dataset export docs](https://docs.apify.com/platform/storage/dataset) — export to JSON, CSV, Excel, or XML.
- [Apify Schedules](https://docs.apify.com/platform/schedules) — automate recurring runs.
- [Webhooks](https://docs.apify.com/platform/integrations/webhooks) — trigger your systems when a run finishes.
  </parameter>

</invoke>

***

## 中文说明 —— YouTube 视频信息抓取工具

**免登录抓取 YouTube 公开数据** —— 抓取视频元数据：标题、观看数、点赞、时长、频道与简介。不需要 API Key、不需要 OAuth 应用、不需要登录或 Cookie。结果可导出为 JSON、CSV、Excel、XML，也可通过 Apify API 定时运行并接入 n8n、Zapier、Make 等工具。

> **两分钟内免费拿到第一批数据** —— 填入内容、点击 Start 即可。无需配置，试用不需要信用卡。

### 能做什么

- ℹ️ **抓取视频元数据**：标题、观看数、点赞、时长、发布时间。
- 📺 **频道信息**：名称、链接、ID。
- 🔎 **可按搜索词批量研究视频**。
- 🖼️ **缩略图地址**。
- 🚫 **无需 API Key、无配额**。
- 📤 **导出** JSON / CSV / Excel / XML。

### 谁在用

- 📊 **内容审计** —— 批量核对视频表现。
- 🔎 **关键词研究** —— 看某个词下哪些视频在赢。
- 🤝 **红人营销** —— 核实视频真实播放量。
- 🧑‍💻 **数据团队** —— 构建视频元数据表。

### 可以抓取哪些数据

| 字段 | 类型 | 说明 |
|------|------|------|
| `id` | string | YouTube video ID |
| `ok` | boolean | 该行是否成功提取 |
| `url` | string | 链接 |
| `sourceUrl` | string | 处理的原始链接 |
| `title` | string | 标题 / 职位名称 |
| `description` | string | 描述 |
| `channel` | string | 频道名称 |
| `channelId` | string | 频道 ID |
| `channelUrl` | string | 频道链接 |
| `category` | string | YouTube category (e.g. Music, Gaming) |
| `duration` | integer | 时长（秒） |
| `viewCount` | integer | 观看次数 |
| `uploadDate` | string | Upload date/time (ISO 8601) |
| `keywords` | array | 频道关键词 |
| `thumbnail` | string | 缩略图地址 |
| `isLive` | boolean | 是否为直播 |

> 字段取决于该条目公开了什么；不存在的值返回 `null`，数据结构保持稳定。

### 输入示例

```json
{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
    { "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }
  ],
  "maxItems": 50
}
```

### 输出示例

```json
{
  "id": "dQw4w9WgXcQ",
  "ok": true,
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "sourceUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channel": "Rick Astley",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
  "category": "Music",
  "duration": 213,
  "viewCount": 1794328932,
  "uploadDate": "2009-10-24T23:57:33-07:00",
  "isLive": false,
  "thumbnail": "https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp",
  "keywords": [
    "rick astley",
    "Never Gonna Give You Up",
    "nggyu",
    "rick rolled",
    "Rick Roll",
    "80s music",
    "never gonna give you up karaoke"
  ],
  "description": "The official video for “Never Gonna Give You Up” by Rick Astley..."
}
```

### 价格

采用**按结果计费**：只为真正拿到的数据付费，不按运行时间收费。

- 💸 成本 = 结果数量 × 单价，预算可提前算清。
- 📉 Apify 的 Bronze / Silver / Gold / Platinum / Diamond 套餐享阶梯折扣。
- 🆓 新账号自带每月免费额度，第一次运行不花钱。
- 🚫 无代理附加费、无单次请求费、无最低消费。

实时价格见 [Apify 商店页面](https://apify.com/myagizm/youtube-video-info)。

### 使用建议

- 🔎 **搜索词入口适合选题研究**，链接入口适合核对既有清单。
- 📊 观看数 ÷ 发布天数可粗略衡量热度速度。
- 📏 单次上限 100，长清单请分批。

### 其他YouTube数据

- 📺 **[YouTube 频道抓取](https://apify.com/myagizm/youtube-channel-scraper)** —— 频道视频目录与统计。
- 💬 **[YouTube 评论抓取](https://apify.com/myagizm/youtube-comment-scraper)** —— 评论、作者与点赞。
- 📝 **[YouTube 字幕抓取](https://apify.com/myagizm/youtube-transcript-scraper)** —— 带时间戳的逐行字幕。
- ℹ️ **[YouTube 视频信息](https://apify.com/myagizm/youtube-video-info)** —— 标题、观看数、点赞、简介等元数据。
- ⬇️ **[YouTube 视频下载](https://apify.com/myagizm/youtube-video-downloader)** —— 按清晰度下载完整视频。
- 🎬 **[YouTube Shorts 下载](https://apify.com/myagizm/youtube-shorts-downloader)** —— 批量保存 Shorts。
- 🎵 **[YouTube 转 MP3](https://apify.com/myagizm/youtube-mp3-downloader)** —— 提取音频。

其他平台同样是免登录、按结果计费：**[Instagram](https://apify.com/myagizm/instagram-profile-scraper-v2)** ·
**[TikTok](https://apify.com/myagizm/tiktok-profile-scraper-v2)** · **[X（推特）](https://apify.com/myagizm/x-tweets-scraper)** ·
**[Reddit](https://apify.com/myagizm/reddit-scraper-v2)** · **[Google 地图](https://apify.com/myagizm/google-maps-scraper)** ·
**[Google 新闻](https://apify.com/myagizm/google-news-scraper)**。完整家族见 **[myagizm 商店主页](https://apify.com/myagizm)**。

### 配合 AI 智能体使用（MCP）

本 Actor 已接入 **Apify MCP 服务器**，Claude、ChatGPT、Cursor 等助手可以把它当作工具直接调用，用自然语言提问即可拿到结构化结果，无需写胶水代码。

### 集成与 API

支持 **Make、Zapier、n8n、Slack、Airbyte、Gumloop、CrewAI、IFTTT、Lindy、GitHub、Google Sheets、Google Drive**，以及 Webhook、定时任务与 MCP 服务器。

```bash
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-video-info/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "startUrls": [
    { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" },
    { "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }
  ],
  "maxItems": 50
}'
```

把 `format` 改成 `json`、`csv`、`xlsx` 或 `xml` 即可导出不同格式。

### 常见问题

**需要 API Key 或登录吗？**
不需要。没有 API Key、没有 OAuth 应用、不登录、不用 Cookie，也不会使用你的账号。

**抓取YouTube合法吗？**
只采集公开可见的数据，即任何未登录访客都能看到的内容，不登录、不绕过访问控制。合规责任由使用者承担：如涉及个人数据请遵守 GDPR / CCPA 与平台条款。

**能抓私密内容吗？**
不能，需要登录或已删除的内容会被跳过并记录在日志中。

**需要配置代理吗？**
不需要，已内置托管。

**支持导出 CSV / Excel / JSON 吗？**
支持 JSON、CSV、Excel、XML。

**可以通过 Apify API 调用吗？**
可以，见上方示例。

**支持 AI 智能体（MCP）吗？**
支持，Claude、ChatGPT、Cursor 均可当作工具调用。

**可以定时运行吗？**
可以，支持 Apify Schedules、API 与 Webhook。

**数据有多新？**
不缓存，每次运行都读取当前公开页面。

### 让 AI 代理直接调用 —— 无需 Apify 账号（x402）

本工具支持基于开放 [x402 协议](https://docs.apify.com/integrations/x402) 的**代理支付**：AI 代理可以用 **Base 链上的 USDC** 直接付费运行，无需 Apify 账号、信用卡或 API 密钥。

```bash
npx -y awal auth login <邮箱>
npx awal x402 pay 'https://agi.apify.com/protocols/x402/prepaid-tokens?amount=1&currency=usd' --max-amount 1000000 --json
curl "https://api.apify.com/v2/acts/myagizm~youtube-video-info/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $PREPAID_TOKEN" -H 'Content-Type: application/json' -d '{INPUT}'
```

之所以可用：本工具采用**按事件计费**且以**受限权限**运行，这正是 x402 的两个前提条件。按结果计费，代理只为拿到的数据付费；预付令牌本身就是消费上限，购买后 14 天到期。

***

### 免责声明

本工具为独立第三方工具，与 YouTube / Google LLC 无任何隶属、认可或赞助关系，所有商标归各自所有者。

本 Actor 只采集**公开可见**的数据，不登录、不绕过访问控制、不获取私密内容。数据使用的合规责任由使用者承担。

### 相关搜索

youtube 视频信息抓取 · youtube 观看数查询 · 视频元数据导出 · youtube 关键词研究 · 免 api key youtube 数据 · 视频数据 csv · x402 支付 · ai 代理抓取 · usdc 付费 api

# Actor input Schema

## `startUrls` (type: `array`):

YouTube video URLs to scrape (no download — metadata + available formats only). You can also pass channel/profile URLs (incl. the /shorts tab) and YouTube search-result URLs; each is expanded automatically. Example: <code>https://www.youtube.com/watch?v=dQw4w9WgXcQ</code> or <code>https://www.youtube.com/@RickAstleyYT</code>.

## `maxItems` (type: `integer`):

Maximum number of videos to scrape in one run, across all URLs, expanded channels/search pages and search terms combined. Example: set <code>25</code> to cap a test run at 25 videos.

## `searchTerms` (type: `array`):

Plain YouTube search queries (e.g. <code>"best places of england"</code>). Matching videos are scraped alongside any links above. For Shorts, only Shorts among the results are kept.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "maxItems": 50,
  "searchTerms": []
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped items as structured JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
        }
    ],
    "maxItems": 50,
    "searchTerms": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/youtube-video-info").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }],
    "maxItems": 50,
    "searchTerms": [],
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/youtube-video-info").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "maxItems": 50,
  "searchTerms": []
}' |
apify call myagizm/youtube-video-info --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=myagizm/youtube-video-info",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/gCMTTyxuWV9z6xRRS/builds/ZDgi03nd1CG0P90GR/openapi.json
