
YouTube Video Details Scraper
Pricing
$4.50/month + usage

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 ๐ค๐ฑ "
0.0 (0)
Pricing
$4.50/month + usage
0
1
1
Last modified
a day ago
๐ฏ 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
- Go to the Actor page in Apify Console.
- Click Run.
- Paste an array of YouTube URLs in
startUrls
. - (Optional) Enable Apify Proxy or provide custom proxies in the Proxy panel.
- Click Start.
โก Quick Start โ CLI + API
CLI
$apify run --actor <ACTOR_ID> -p input.json
Python API (apify-client)
from apify_client import ApifyClientclient = 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 |
---|---|---|---|---|---|
startUrls | array | โ Yes | null | ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] | List of target YouTube URLs |
proxyConfiguration | object | โ๏ธ Optional | {} | { "useApifyProxy": true } | Proxy settings for requests |
ALL_RESULTS | dataset/key-value | โ๏ธ Optional | default | ALL_RESULTS | Key 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 |
---|---|---|---|---|---|
startUrls | array | โ Yes | null | ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] | List of target YouTube URLs |
proxyConfiguration | object | โ๏ธ Optional | {} | { "useApifyProxy": true } | Proxy settings for requests |
ALL_RESULTS | dataset/key-value | โ๏ธ Optional | default | ALL_RESULTS | Key for storing all output data |
Example Console input:
{"startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"]}