YouTube Video Details Scraper avatar
YouTube Video Details Scraper

Pricing

$4.50/month + usage

Go to Apify Store
YouTube Video Details Scraper

YouTube Video Details Scraper

"🎬 Scrape YouTube video details in seconds! This actor extracts πŸ”‘ info like title, description, views πŸ‘€, likes πŸ‘, upload date πŸ“…, and channel details πŸ“Ί β€” perfect for research, analytics, or content tracking. Get unlimited data for low cost per month πŸ€‘πŸ˜± "

Pricing

$4.50/month + usage

Rating

5.0

(1)

Developer

Neuro Scraper

Neuro Scraper

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

0

Monthly active users

2 months ago

Last modified

Share

ee# 🎯 YouTube Video Metadata Scraper

Lightning-fast extraction of detailed YouTube video data into JSON for analytics, automation, or reporting.

πŸ“– Summary

Scrape metadata from YouTube videos or playlists including title, channel, views, likes, tags, description, and more.

πŸ’‘ Use Cases

  • Extract video details for analytics dashboards
  • Monitor competitor channels or video performance
  • Generate structured reports from playlists
  • Automate content research

⚑ Quick Start β€” Apify Console

  1. Go to the Actor page in Apify Console.
  2. Click Run.
  3. Paste an array of YouTube URLs in startUrls.
  4. (Optional) Enable Apify Proxy or provide custom proxies in the Proxy panel.
  5. Click Start.

⚑ Quick Start β€” CLI + API

CLI

$apify run --actor <ACTOR_ID> -p input.json

Python API (apify-client)

from apify_client import ApifyClient
client = ApifyClient('<APIFY_TOKEN>')
run_input = {
'startUrls': ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],
'proxyConfiguration': {'useApifyProxy': True}
}
run = client.acts.run_actor('<ACTOR_ID>', run_input=run_input)
print(run['defaultDatasetId'])

πŸ“ Inputs

  • startUrls: List of YouTube video or playlist URLs.
  • proxyConfiguration: Object to configure proxy usage.

βš™οΈ Configuration

πŸ”‘ NameπŸ“ Type❓ Requiredβš™οΈ DefaultπŸ“Œ ExampleπŸ“ Notes
startUrlsarrayβœ… Yesnull["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]List of target YouTube URLs
proxyConfigurationobjectβš™οΈ Optional{}{ "useApifyProxy": true }Proxy settings for requests
ALL_RESULTSdataset/key-valueβš™οΈ OptionaldefaultALL_RESULTSKey for storing all output data

Console example: Paste startUrls in input JSON panel or set APIFY_TOKEN env variable in Actor settings.

πŸ“€ Outputs

  • Dataset: JSON objects for each video containing metadata.

Example output item:

{
"title": "Example Video",
"channel": "Channel Name",
"channel_id": "UC1234567890",
"views": 12345,
"likes": 678,
"dislikes": 10,
"upload_date": "20250101",
"duration": 300,
"tags": ["tag1", "tag2"],
"categories": ["Entertainment"],
"description": "Video description...",
"thumbnail": "https://example.com/thumb.jpg",
"age_limit": 0,
"comment_count": 45,
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}

πŸ”‘ Environment Variables

  • APIFY_TOKEN β€” your Apify account token.

▢️ How to Run

  • Console: Run Actor β†’ paste input JSON β†’ Start.
  • CLI: apify run --actor <ACTOR_ID> -p input.json
  • apify-client: See Python example above.

⏰ Scheduling & Webhooks

  • Configure schedules in the Scheduler panel.
  • Add webhooks in Webhook settings to trigger external callbacks.

🐞 Logs & Troubleshooting

  • ❌ Missing URLs β†’ ensure startUrls is provided.
  • ⚠️ Proxy errors β†’ check proxy configuration and credentials.
  • ⚠️ Private video errors β†’ may require login cookies.

πŸ”’ Permissions & Storage Notes

  • Actor stores output in default dataset; ensure access to Apify storage.
  • Proxy credentials should be stored as secrets.

πŸ†• Changelog / Versioning Tip

  • Increment version for major feature additions.
  • Patch releases for bug fixes.

🌍 Proxy Configuration

  • Enable Apify Proxy: In Console, go to Proxy panel β†’ toggle Use Apify Proxy βœ…
  • Custom Proxy: Set HTTP_PROXY / HTTPS_PROXY env vars, e.g., http://<PROXY_USER:PROXY_PASS@HOST:PORT>
  • Security: Always store credentials as secrets πŸ”’
  • TODO: Add advanced rotating proxy patterns if scraping large playlists.

πŸ“š References

🧐 Inferred from main.py

  • Supports multiple YouTube URLs or playlist links.
  • Uses optional proxy configuration.
  • Extracts detailed video metadata.
  • TODO: Confirm support for private videos requiring login cookies.

input.example.json

{ "startUrls": [ "https://www.youtube.com/watch?v=dQw4w9WgXcQ" ], "proxyConfiguration": { "useApifyProxy": true } }


CONFIG.md

Configuration Reference

πŸ”‘ NameπŸ“ Type❓ Requiredβš™οΈ DefaultπŸ“Œ ExampleπŸ“ Notes
startUrlsarrayβœ… Yesnull["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]List of target YouTube URLs
proxyConfigurationobjectβš™οΈ Optional{}{ "useApifyProxy": true }Proxy settings for requests
ALL_RESULTSdataset/key-valueβš™οΈ OptionaldefaultALL_RESULTSKey for storing all output data

Example Console input:

{
"startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]
}