
SoundCloud Scraper
- epctex/soundcloud-scraper
- Modified
- Users 34
- Runs 807
- Created by
epctex
Retrieve information from SoundCloud without any restrictions or rate limits. Extremely fast data harvesting about tracks, comments, user profiles, albums, playlists, and more. Download URLs of tracks, monetization methods, number of likes, number of shares, and many more are ready for you.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const input = {
"startUrls": [
"https://soundcloud.com/sibel-dar-c/ekin-ekinci-gel-art-k",
"https://soundcloud.com/sibel-dar-c",
"https://soundcloud.com/swedish-hiphop-rap-fm/sets/pistoler-poesi-och-sex",
"https://soundcloud.com/search/sets?q=dnb",
"https://soundcloud.com/search/people?q=dnb",
"https://soundcloud.com/search/albums?q=dnb",
"https://soundcloud.com/search/sounds?q=dnb"
],
"maxItems": 20,
"endPage": 1,
"proxy": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
}
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("epctex/soundcloud-scraper").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
})();