# SoundCloud Search Scraper (`headlessagent/soundcloud-search-scraper`) Actor

Scrape SoundCloud search results for tracks, users, albums, and playlists. Get rich metadata like play counts, likes, reposts, genres, artist info, and streaming URLs. No login required. Download as JSON, CSV, XML, or Excel via Apify.

- **URL**: https://apify.com/headlessagent/soundcloud-search-scraper.md
- **Developed by:** [Headless Agent](https://apify.com/headlessagent) (community)
- **Categories:** Social media, Developer tools, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Search Scraper

Search SoundCloud for tracks, users, albums, playlists, and more. Get structured JSON with detailed metadata, artwork URLs, and more.

### 🤔 What can SoundCloud Search Scraper do?

This Actor lets you **search SoundCloud and extract music data**. Just provide search queries and get structured results:

🔍 Search SoundCloud by track title, artist name, album, playlist, or any keyword

🎵 Get results across multiple types: tracks, users, albums, playlists, or all mixed together

👤 Get detailed user/artist info including follower counts, verification status, and badges

📝 Get rich metadata: play counts, likes, reposts, genres, tags, durations, and more

🖼️ Get artwork URLs for tracks and playlists

📦 Download results in **JSON, CSV, XML, or Excel** from the Apify Dataset

🦾 Integrate via **API, webhooks, SDKs** (Python & Node.js), or connect with tools like Zapier, n8n, Make, and more

### ✅ What data can I scrape from SoundCloud?

#### From each search result:

- 🆔 SoundCloud ID, URI, URN, and direct permalink URL
- 📝 Title, description, genre, and tags
- 🖼️ Artwork URL and waveform URL
- 📅 Created at, last modified, and release date
- 📊 Play count, likes count, reposts count, and comment count
- 👤 User/owner info (for tracks and playlists)

#### Type-specific fields:

| Type | Additional Fields |
|------|------------------|
| 🎵 Tracks | `duration`, `full_duration`, `playback_count`, `download_count`, `streamable`, `downloadable`, `license`, `label_name`, `publisher_metadata` (artist, ISRC, explicit), `media` (transcodings with HLS/progressive URLs) |
| 👤 Users | `track_count`, `playlist_count`, `followers_count`, `followings_count`, `likes_count`, `city`, `country_code`, `verified`, `badges` (pro, pro_unlimited, verified) |
| 💿 Albums | `is_album`, `set_type`, `published_at`, `tracks` (array of track objects) |
| 📋 Playlists | `is_album`, `set_type`, `published_at`, `tracks` (array of track objects) |
| 🔀 All | Mixed collection of tracks and users in a single response |

### 🔧 How to scrape SoundCloud

1. [Create](https://console.apify.com/sign-up) a free Apify account.
2. Open SoundCloud Search Scraper.
3. Add **search queries** (one or more) to search SoundCloud.
4. Select **search type** (tracks, users, albums, playlists, or all).
5. Optionally set **limit** per query and configure **proxy**.
6. Click **Save & Start** and wait for the data to be extracted.
7. Download your data in JSON, CSV, XML, Excel, or access it via API.

### ⬇️ Input

| Field | Type | Description |
|-------|------|-------------|
| `queries` | `string[]` | List of search queries to search on SoundCloud. |
| `searchType` | `string` | Type of content to search: `tracks`, `users`, `albums`, `playlists`, or `all`. Default: `tracks`. |
| `limit` | `integer` | Maximum number of results per query (default: 20, max: 200). |
| `proxy` | `object` | Optional. Apify proxy configuration with `useApifyProxy`, `apifyProxyGroups`, `apifyProxyCountry`. |

#### Example input — Search tracks

```json
{
    "queries": ["Rich Brian", "Joji", "Tyler the Creator"],
    "searchType": "tracks",
    "limit": 10
}
````

#### Example input — Search users

```json
{
    "queries": ["88rising", "Spotify"],
    "searchType": "users",
    "limit": 5
}
```

#### Example input — Search all types

```json
{
    "queries": ["Bohemian Rhapsody"],
    "searchType": "all",
    "limit": 20
}
```

#### Example input — With proxy

```json
{
    "queries": ["Rich Brian"],
    "searchType": "tracks",
    "limit": 10,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US"
    }
}
```

### ⬆️ Output

Results are pushed to the Apify Dataset. Each entry contains all results for one query grouped together.

#### 🔎 Output sample — Tracks

```json
{
    "search_query": "Rich Brian",
    "search_type": "tracks",
    "totalResults": 150,
    "results": [
        {
            "id": 457925076,
            "kind": "track",
            "title": "Dat $tick",
            "description": "",
            "genre": "Hip-Hop/Rap",
            "tag_list": "88rising hip hop rap",
            "permalink": "rich-brian/dat-tick",
            "permalink_url": "https://soundcloud.com/rich-brian/dat-tick",
            "uri": "https://api.soundcloud.com/tracks/457925076",
            "urn": "urn:soundcloud:tracks:457925076",
            "user_id": 299801571,
            "duration": 187000,
            "full_duration": 187000,
            "artwork_url": "https://i1.sndcdn.com/artworks-000289395847-u6tp4l-t500x500.jpg",
            "waveform_url": "https://wave.sndcdn.com/abc123_m.json",
            "playback_count": 280000000,
            "likes_count": 2800000,
            "reposts_count": 45000,
            "comment_count": 12000,
            "streamable": true,
            "downloadable": false,
            "public": true,
            "state": "finished",
            "sharing": "public",
            "created_at": "2017/07/10 06:00:04 +0000",
            "release_date": null,
            "display_date": "2017-07-10 06:00:04",
            "user": {
                "id": 299801571,
                "kind": "user",
                "username": "Rich Brian",
                "full_name": "Brian Imanuel",
                "permalink": "rich-brian",
                "permalink_url": "https://soundcloud.com/rich-brian",
                "avatar_url": "https://i1.sndcdn.com/avatars-000289395847-abcd12-t500x500.jpg",
                "track_count": 15,
                "followers_count": 4500000,
                "verified": true
            }
        }
    ]
}
```

### 🔗 Integrations

You can connect SoundCloud Search Scraper with almost any cloud service or web app through [Apify integrations](https://apify.com/integrations). Connect with **Zapier, n8n, Make, Slack, Google Sheets, Google Drive, Airbyte, GitHub**, and many more.

You can also use [webhooks](https://docs.apify.com/integrations/webhooks) to trigger actions whenever a run finishes — for example, getting a notification or automatically processing the scraped data.

### 🦾 Using the Apify API

The Apify [API](https://docs.apify.com/api/v2) gives you programmatic access to SoundCloud Search Scraper. You can start runs, fetch datasets, monitor execution, and integrate the scraper into your own workflows.

- **Python**: Use the [`apify-client`](https://pypi.org/project/apify-client/) PyPI package
- **Node.js**: Use the [`apify-client`](https://www.npmjs.com/package/apify-client) NPM package

### ❓ FAQ

#### Can I search multiple queries in one run?

Yes. The `queries` field accepts an array. Each query is processed sequentially and results are tagged with the `search_query` field.

#### What types can I search?

You can search for `tracks`, `users`, `albums`, `playlists`, or `all` (which returns a mix of tracks and users).

#### How many results can I get per query?

You can control it with the `limit` field (default: 20, max: 200).

#### Can I use Apify proxy?

Yes. The `proxy` field uses the standard Apify proxy configuration. You can enable `useApifyProxy`, select proxy groups with `apifyProxyGroups`, or set a country with `apifyProxyCountry`. IPs are rotated automatically.

#### Does this require a SoundCloud account?

No. The search API is publicly accessible without a SoundCloud account or login.

#### How does the API access work?

The scraper uses SoundCloud's internal API v2 with browser-like headers and a valid client ID. No authentication or tokens are required for search operations.

#### Is it legal to scrape SoundCloud?

This scraper only extracts publicly available search data from SoundCloud. Ensure you comply with SoundCloud's Terms of Service and applicable regulations.

# Actor input Schema

## `queries` (type: `array`):

List of search queries to search on SoundCloud.

## `searchType` (type: `string`):

Type of content to search for.

## `limit` (type: `integer`):

Maximum number of results per query. Default 20.

## `proxy` (type: `object`):

Proxy settings for the actor.

## Actor input object example

```json
{
  "queries": [
    "Rich Brian",
    "Joji",
    "Tyler the Creator"
  ],
  "searchType": "tracks",
  "limit": 20,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "queries": [
        "Rich Brian",
        "Joji",
        "Tyler the Creator"
    ],
    "limit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("headlessagent/soundcloud-search-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 = {
    "queries": [
        "Rich Brian",
        "Joji",
        "Tyler the Creator",
    ],
    "limit": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("headlessagent/soundcloud-search-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 '{
  "queries": [
    "Rich Brian",
    "Joji",
    "Tyler the Creator"
  ],
  "limit": 20
}' |
apify call headlessagent/soundcloud-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SoundCloud Search Scraper",
        "description": "Scrape SoundCloud search results for tracks, users, albums, and playlists. Get rich metadata like play counts, likes, reposts, genres, artist info, and streaming URLs. No login required. Download as JSON, CSV, XML, or Excel via Apify.",
        "version": "1.0",
        "x-build-id": "A9FEQnQ8GKazYLKjh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/headlessagent~soundcloud-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-headlessagent-soundcloud-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/headlessagent~soundcloud-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-headlessagent-soundcloud-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/headlessagent~soundcloud-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-headlessagent-soundcloud-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "queries": {
                        "title": "Search Queries",
                        "type": "array",
                        "description": "List of search queries to search on SoundCloud.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchType": {
                        "title": "Search Type",
                        "type": "string",
                        "description": "Type of content to search for.",
                        "default": "tracks"
                    },
                    "limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of results per query. Default 20."
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings for the actor.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
