YouTube Music Albums Scraper
Pricing
from $2.99 / 1,000 albums
YouTube Music Albums Scraper
Search current YouTube Music album results and retrieve rich album and optional track metadata through YouTube Music's first-party youtubei endpoints.
YouTube Music Albums Scraper
Pricing
from $2.99 / 1,000 albums
Search current YouTube Music album results and retrieve rich album and optional track metadata through YouTube Music's first-party youtubei endpoints.
You can access the YouTube Music Albums Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "searchQueries": [12 "Adele album"13 ],14 "maxItems": 10,15 "maxSearchItems": 10,16 "maxStartItems": 10,17 "maxPages": 1,18 "includeTracks": true,19 "maxTracks": 50,20 "languageCode": "en",21 "countryCode": "US",22 "maxRetries": 1,23 "requestTimeoutSecs": 60,24 "requestDelayMs": 250,25 "includeDiagnostics": true,26 "enableProxyFallback": true,27 "proxyConfiguration": {28 "useApifyProxy": false29 }30};31
32// Run the Actor and wait for it to finish33const run = await client.actor("w3crawler/youtube-music-albums-scraper").call(input);34
35// Fetch and print Actor results from the run's dataset (if any)36console.log('Results from dataset');37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);38const { items } = await client.dataset(run.defaultDatasetId).listItems();39items.forEach((item) => {40 console.dir(item);41});42
43// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use YouTube Music Albums Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: