# SoundCloud Scraper (`mangudai/soundcloud-scraper`) Actor

Scrape SoundCloud tracks, artists, and playlists with play counts, likes, reposts, genre, ISRC, and full creator data. Search by keyword or fetch by URL. No login or API key.

- **URL**: https://apify.com/mangudai/soundcloud-scraper.md
- **Developed by:** [Mangudäi](https://apify.com/mangudai) (community)
- **Categories:** Developer tools, Social media, Open source
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.45 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SoundCloud Scraper

Extract tracks, playlists, and artist profiles from SoundCloud in structured JSON, CSV, or Excel. No login, no API key, no browser. The actor talks to SoundCloud's public api-v2, the same endpoints the web player uses, so the data is complete and fast to collect.

It is priced at $1.45 per 1,000 results, below the other maintained SoundCloud scrapers on the store.

### What it does

Pick one of six modes:

- Search tracks by keyword, genre, or artist name
- Search playlists
- Search users and artists
- Track by URL, for full metadata on one track
- Playlist by URL, which also returns the tracks inside the playlist
- User by URL, which returns the artist profile plus their public tracks

Every run returns clean rows with a `type` field so tracks, users, and playlists are easy to tell apart in one dataset.

### Fields you get

Track rows carry title, URL, genre, tags, description, duration, play count, likes, reposts, comments, downloads, license, ISRC, label, release and upload dates, artwork, waveform URL, and the creator's name, URL, follower count, and verified flag.

Artist rows carry username, full name, URL, avatar, bio, city, country, followers, following, track and playlist counts, verified and pro status, and the join date.

Playlist rows carry title, URL, genre, description, track count, total duration, likes, album flag, set type, release date, and the owner's name and URL.

### Example input

```json
{
    "mode": "searchTracks",
    "searchQueries": ["lofi hip hop", "ambient techno"],
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

Scrape one artist and all of their tracks:

```json
{
    "mode": "userUrl",
    "startUrls": ["https://soundcloud.com/edsheeran"],
    "maxResults": 200,
    "includeTracks": true
}
```

### Input parameters

- `mode`: which of the six scrape modes to run. Default `searchTracks`.
- `searchQueries`: list of search terms for the search modes.
- `startUrls`: list of SoundCloud URLs for the URL modes.
- `maxResults`: cap per query or URL. Set `0` to fetch everything SoundCloud returns.
- `includeTracks`: for the playlist and user URL modes, also output the child tracks. Default `true`.
- `proxyConfiguration`: Apify Proxy settings. Datacenter proxy is enough and is on by default.

### Why it stays reliable

SoundCloud rotates the public `client_id` that the web player uses. This actor scrapes a fresh one from the site at the start of every run, so it keeps working when the id changes. Search and profile listings page automatically, and playlist tracks that come back as ids only are hydrated in batches.

### Good to know

Only public data is collected, the same data anyone can see on soundcloud.com without an account. Some metrics come back as null when a creator hides them or a track is very new. Very large runs can hit SoundCloud rate limits, so split big jobs across several runs or lower `maxResults` per query.

### Common uses

Music trend research across genres, A\&R and talent scouting by follower and engagement growth, marketing reports on play and like velocity, and building labeled audio datasets for recommendation or classification models.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Search modes use Search queries; the URL modes use Start URLs.

## `searchQueries` (type: `array`):

One keyword, genre, or artist name per line. Used by the search modes.

## `startUrls` (type: `array`):

SoundCloud track, playlist, or user URLs. Used by the URL modes.

## `maxResults` (type: `integer`):

Maximum items per query or URL. Set 0 to fetch as many as SoundCloud returns.

## `includeTracks` (type: `boolean`):

For Playlist by URL and User by URL, also output the child tracks, not just the parent record.

## `proxyConfiguration` (type: `object`):

Apify Proxy routes requests through rotating datacenter IPs. Recommended.

## Actor input object example

```json
{
  "mode": "searchTracks",
  "searchQueries": [
    "lofi hip hop"
  ],
  "startUrls": [
    "https://soundcloud.com/edsheeran"
  ],
  "maxResults": 50,
  "includeTracks": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "lofi hip hop"
    ],
    "startUrls": [
        "https://soundcloud.com/edsheeran"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mangudai/soundcloud-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["lofi hip hop"],
    "startUrls": ["https://soundcloud.com/edsheeran"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mangudai/soundcloud-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "lofi hip hop"
  ],
  "startUrls": [
    "https://soundcloud.com/edsheeran"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mangudai/soundcloud-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mangudai/soundcloud-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/NqQ09wRjXcZ0K0ORx/builds/0RlbGhgEHkVk97nwb/openapi.json
