# Youtube Metadata Scraper (`bluebird/youtube-data-scraper`) Actor

Scrape detailed youtube metadata from a list of URL, Fast en Simple!

- **URL**: https://apify.com/bluebird/youtube-data-scraper.md
- **Developed by:** [BlueBird](https://apify.com/bluebird) (community)
- **Categories:** Automation, SEO tools, Social media
- **Security:** Full permissions
- **Stats:** 63 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### 🎥 What does Youtube metadata scraper do?

Youtube metadata scraper will enable you to extract metadata from a Youtube URL, providing you with valuable information such as the title, subtitles, uploader, view count, like count, and more.

**Are you looking for extra features? Feel free to message, we can add most features in 1-3 days for free!**

Youtube metadata scraper can scrape:

- 📝 Title
- 🎧 Subtitles
- 👤 Uploader
- 👁️ View count
- 👍 Like count
- And much more

### 🤔 Why scrape Youtube?

Youtube is one of the most popular video-sharing platforms with millions of users and a vast amount of data available. Scraping Youtube can provide valuable insights for various industries and use cases.

Here are just some of the ways you could use the scraped data:

- 🔍 Analyze trending topics
- 🆚 Monitor competitor videos
- 📊 Track engagement metrics
- 📚 Research content strategies

If you would like more inspiration on how scraping Youtube could help your business or organization, check out our [industry pages](https://apify.com/industries).

### 🛠️ How to scrape Youtube

It's easy to scrape Youtube with Youtube metadata scraper. Just follow these few steps and you'll get your data in a few minutes.

1. ✨ Click on Try for free.
2. 🔗 Enter the Youtube URL you want to scrape.
3. ▶️ Click on Run.
4. 📥 When Youtube metadata scraper has finished, preview or download your data from the Dataset tab.

### 💰 How much will it cost to scrape Youtube?

Apify gives you $5 free usage credits every month on the [Apify Free plan](https://apify.com/pricing). You can get a certain number of results per month from Youtube metadata scraper for free with the free plan!

But if you need to scrape more data regularly from Youtube, you should consider an Apify subscription. We recommend our [$49/month Starter plan](https://apify.com/pricing) - you can get a higher limit of results every month with the $49 monthly plan!

### 📊 Results

Here is a sample of the data that the Actor produces:

```json
    {
        "title": "SpaceX completes world first landing after rocket booster caught by mechanical arms",
        "id": "3GwQdrhp__k",
        "subtitles": {},
        "comment_count": 507,
        "chapters": null,
        "like_count": 2915,
        "channel": "Sky News",
        "channel_follower_count": 8060000,
        "channel_is_verified": true,
        "uploader": "Sky News",
        "uploader_id": "@SkyNews",
        "uploader_url": "https://www.youtube.com/@SkyNews",
        "upload_date": "20241013",
        "timestamp": 1728843268,
        "availability": "public",
        "original_url": "https://www.youtube.com/watch?v=3GwQdrhp__k",
        "webpage_url_basename": "watch",
        "webpage_url_domain": "youtube.com",
        "playlist": null,
        "playlist_index": null,
        "display_id": "3GwQdrhp__k",
        "fulltitle": "SpaceX completes world first landing after rocket booster caught by mechanical arms",
        "duration_string": "2:30",
        "release_year": null,
        "is_live": false,
        "was_live": false,
        "requested_subtitles": null,
        "filesize": 8010685,
        "source_preference": -1,
        "fps": 25,
        "audio_channels": 2,
        "height": 360,
        "quality": 6.0,
        "filesize_approx": 8010669,
        "url": "https://rr3---sn-uhvcpaxoa-guhe.googlevideo.com/videoplayback?expire=1729014097&ei=8VQOZ-rLCvPL6dsPqtGDgQQ&ip=31.187.165.43&id=o-AE8aq_h140vJ2o0wbmcBADYHBikopYBe64KUw1QOJkKd&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1728992497%2C&mh=Hg&mm=31%2C29&mn=sn-uhvcpaxoa-guhe%2Csn-5hnednss&ms=au%2Crdu&mv=u&mvi=3&pl=20&rms=au%2Cau&bui=AXLXGFSMW3bnxyiZXpwsCqr79blyJ6eht9pm356r-_AQcnvJghVw8kik3TT4amcuc6vquZVf-obvfHaY&spc=54MbxVfLqCLRkvAPiFXqeg7DFF1y7X_XCM3bI9mYmfA8w6o11V7cDi6Pc6nEj54&vprv=1&svpuc=1&mime=video%2Fmp4&ns=7iUcX9ys4UHVG0jh3ROtTDsQ&rqh=1&gir=yes&clen=8010685&ratebypass=yes&dur=149.861&lmt=1728928713226741&mt=1728991542&fvip=2&fexp=51300761%2C51312688&c=MWEB&sefc=1&txp=4538434&n=yOMqn2U6Xd74WA&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRgIhAJ82qtNL05M8ulMDc1omm0XngEpyxaf1oEI5lEbW2j-mAiEA7S3tls9DUy7BI2MaL95p8Yrha8HFwWNbEm_6noUZQMw%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=ACJ0pHgwRAIgXOxubrggEjQYqmAoVqObWKUeFH8h2CpFn6yMR49srbQCIC4wqK-T6p1LLYQT5cWQurCCSl1CJJIO8oJgoj7mvy_T",
        "width": 640,
        "language": "en",
        "language_preference": -1,
        "preference": null,
        "ext": "mp4",
        "vcodec": "avc1.42001E",
        "acodec": "mp4a.40.2",
        "dynamic_range": "SDR",
        "downloader_options": {
            "http_chunk_size": 10485760
        },
        "protocol": "https",
        "resolution": "640x360",
        "aspect_ratio": 1.78,
        "http_headers": {
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36",
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
            "Accept-Language": "en-us,en;q=0.5",
            "Sec-Fetch-Mode": "navigate"
        },
        "video_ext": "mp4",
        "audio_ext": "none"
    }
```

### 💡 Tips for scraping Youtube

- 🔑 Use specific keywords in your search to get more relevant results.
- 📡 Monitor the Youtube API for any changes that may affect your scraping.

### 🛑 Is it legal to scrape Youtube?

Note that scraping Youtube may be subject to terms of service and copyright laws. Ensure you are compliant with Youtube’s policies and regulations when scraping data from the platform.

For more information on web scraping legality, read our blog post: is web scraping legal?.

# Actor input Schema

## `urls` (type: `array`):

List of youtube video URLs to scrape data from

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=3GwQdrhp__k"
  ]
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bluebird/youtube-data-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("bluebird/youtube-data-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call bluebird/youtube-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bluebird/youtube-data-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hD0XXbTixABPAwb9v/builds/eY2hDZIpQfLOdHhSo/openapi.json
