YouTube Music Song Scraper 🎡 avatar

YouTube Music Song Scraper 🎡

Try for free

2 hours trial then $19.99/month - No credit card required now

Go to Store
YouTube Music Song Scraper 🎡

YouTube Music Song Scraper 🎡

easyapi/youtube-music-song-scraper
Try for free

2 hours trial then $19.99/month - No credit card required now

Scrape song details from YouTube Music search results, including title, artist, album info, duration, play counts, and more. Perfect for music data analysis and tracking.

Scrape detailed song information from YouTube Music search results. This actor helps you gather comprehensive music data including song titles, artists, albums, play counts, and more.

Features ✨

  • πŸ” Search for songs using keywords
  • πŸ“Š Get detailed song metadata
  • 🎨 Multiple thumbnail sizes
  • πŸ”— Complete URLs for songs, artists, and albums
  • ⏱️ Duration and play count information
  • πŸ“… Timestamp for when data was scraped

Use Cases πŸ’‘

  • Music trend analysis
  • Artist popularity tracking
  • Playlist creation and management
  • Music catalog building
  • Research and data analysis

Output πŸ“‹

The actor provides detailed information for each song, including:

  • Song title and video ID
  • Artist name and channel ID
  • Album name and ID
  • Thumbnail images in different sizes
  • Song duration
  • Play count statistics
  • Complete URLs for all entities
  • Timestamp of data collection

Input Parameters πŸŽ›οΈ

ParameterTypeDescription
keywordsArrayList of search terms to scrape songs for
maxItemsIntegerMaximum number of songs to scrape per keyword

Tips πŸ’‘

  • Use specific keywords for more targeted results
  • Adjust maxItems based on your data needs
  • Consider rate limiting for large-scale scraping

Limitations ⚠️

  • Results depend on YouTube Music's search algorithm
  • Some songs might have incomplete data
  • Play counts are approximate values

Need help or have questions? Feel free to reach out through Apify's platform!

Input Example

A full explanation of an input example in JSON.

1{
2    "keywords": [
3        "u2"
4    ],
5    "maxItems": 100
6}

Output sample

The results will be wrapped into a dataset which you can always find in theΒ StorageΒ tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

1[
2    {
3        "keyword": "u2",
4        "data": {
5            "title": "With Or Without You",
6            "videoId": "oNvWDP_GkiY",
7            "thumbnails": [
8                {
9                    "url": "https://lh3.googleusercontent.com/wJlCrdtCtp9vkjWNFurUqhxrppYKGcDcN0ZpwP0CC3z-dhtjw1yMQkFszwe4SZTMiukr7YSvWZ6Sh9Ec=w60-h60-l90-rj",
10                    "width": 60,
11                    "height": 60
12                },
13                {
14                    "url": "https://lh3.googleusercontent.com/wJlCrdtCtp9vkjWNFurUqhxrppYKGcDcN0ZpwP0CC3z-dhtjw1yMQkFszwe4SZTMiukr7YSvWZ6Sh9Ec=w120-h120-l90-rj",
15                    "width": 120,
16                    "height": 120
17                }
18            ],
19            "artist": {
20                "name": "U2",
21                "id": "UCqIQRxCUGi7hyJisyzv9zYQ",
22                "url": "https://music.youtube.com/channel/UCqIQRxCUGi7hyJisyzv9zYQ"
23            },
24            "album": {
25                "name": "The Joshua Tree (Super Deluxe)",
26                "id": "MPREb_Q8UrZ760tV6",
27                "url": "https://music.youtube.com/browse/MPREb_Q8UrZ760tV6"
28            },
29            "duration": "4:56",
30            "plays": "487M plays",
31            "url": "https://music.youtube.com/watch?v=oNvWDP_GkiY"
32        },
33        "scrapedAt": "2025-02-09T12:17:04.580Z"
34    },
35    ...
36]
Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 0 No stars yet

  • >99% runs succeeded

  • Created in Feb 2025

  • Modified 3 days ago