---
title: "SoundCloud API: Tracks and Playlists as JSON | Perceptlayer"
description: "Search SoundCloud tracks as JSON with genre, tag_list, playback_count and likes_count per track. The recorded \"night drive\" search reported 63,047 results."
url: https://perceptlayer.com/blog/soundcloud-api-json
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# SoundCloud API: Tracks and Playlists as JSON

23 Nov 2026 Perceptlayer 8 min read

To get SoundCloud tracks and playlists as JSON, call Perceptlayer's SoundCloud endpoints: `GET /v1/soundcloud/search` returns tracks for a keyword with `genre`, `tag_list`, `playback_count`, `likes_count` and `created_at` per track, `GET /v1/soundcloud/recent-tracks` returns new uploads for a `tag`, and `GET /v1/soundcloud/playlists-trending` returns curated playlist selections. Each costs 1 credit per successful call. All 26 SoundCloud endpoints are restricted, so you accept the restricted-endpoint terms first. This guide shows the requests, real responses, a genre tally in Python and the cost.

## Key takeaways

-   All 26 SoundCloud endpoints are restricted: they work after you accept the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints), which don't permit collecting personal data without a lawful basis or using it to contact people.
-   `GET /v1/soundcloud/search` takes a required `query` (up to 500 characters) and optional `type`, `limit` and `offset`; the recorded "night drive" track search reported `total: 63047`.
-   25 endpoints cost 1 credit per successful call; `GET /v1/soundcloud/playlists-tracks` costs 1–11 credits, so budget it at 11.
-   Search and recent-track items carry `genre`, `tag_list`, `duration`, `created_at` and engagement counts, but the recording shows counts can be missing or zero on new uploads.
-   Tallying genres for 50 search queries a day is 50 × 30 days × 1 credit = 1,500 credits a month, inside the Starter pack's 10,000.

## What does the SoundCloud API on Perceptlayer cover?

The SoundCloud API on Perceptlayer has 26 `GET` endpoints that return JSON, grouped around search, tracks, playlists and profiles. Every one of them is restricted, because social data can identify people. All cost 1 credit per successful call except `playlists-tracks`, which costs 1–11 credits because its cost depends on the call. This guide sticks to aggregate uses: genres, tags, topics and curated playlists.

| Group | Endpoints | Credits |
| --- | --- | --- |
| Search and discovery | `search`, `search-suggestions`, `recent-tracks`, `resolve` | 1 each |
| Tracks | `tracks`, `tracks-related`, `tracks-comments`, `tracks-likers`, `tracks-reposters`, `comments` | 1 each |
| Playlists | `playlists`, `playlists-trending` | 1 each |
| Playlist members | `playlists-tracks` | 1–11 |
| Profiles | `profiles`, `profiles-activity`, `profiles-albums`, `profiles-followers`, `profiles-followings`, `profiles-likes`, `profiles-links`, `profiles-playlists`, `profiles-playlists-without-albums`, `profiles-spotlight`, `profiles-top-tracks`, `profiles-tracks`, `users-related-artists` | 1 each |

All paths start with `/v1/soundcloud/`. The data is collected from publicly available sources and returned as found at the time of the call. These endpoints aren't SoundCloud's own developer API, and this guide makes no claims about that API or its terms; compare the two yourself. The [SoundCloud API page](https://perceptlayer.com/apis/soundcloud) lists every endpoint with a playground.

## What do the restricted-endpoint terms mean for you?

A restricted endpoint works once you accept the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints) in your dashboard. Before that, a call returns `restricted_endpoint` (403) and costs nothing, like every failed call. The terms don't permit collecting personal data without a lawful basis, or using the data to contact people. Read them in full before you build on these endpoints, along with SoundCloud's own terms.

In practice, that points you at aggregate questions. Which genres and tags dominate a search for a theme? How fast do new uploads appear under a tag? What do curated playlists contain, and how many likes do they hold? Those questions need counts and labels, not individuals. The profile, follower, liker and reposter endpoints return data about people, so this guide doesn't use them, and the excerpts below leave out usernames, names, descriptions and profile links.

## How do you search SoundCloud tracks?

Send a `GET` request to `https://api.perceptlayer.com/v1/soundcloud/search` with your keyword in `query`, `type=tracks` for tracks only, and your key in the `X-API-Key` header. This is the request behind the recorded search in this guide:

```bash
curl "https://api.perceptlayer.com/v1/soundcloud/search?query=night+drive&type=tracks&limit=20&offset=0" \
  -H "X-API-Key: $API_KEY"
```

Keys start with `sk_live_`. Where you can't set a header, the key can go in the `api_key` query parameter; the [authentication docs](https://docs.perceptlayer.com/authentication) cover both. Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`.

### Which parameters do the discovery endpoints take?

The four endpoints this guide uses take seven parameters between them. The table lists each with what the API documents; nothing else, including defaults or page sizes, is documented. The recorded requests used `limit=20` and `offset=0`, which gives you working values to start from.

| Endpoint | Parameter | Type | Required | Documented constraint |
| --- | --- | --- | --- | --- |
| `search` | `query` | string | yes | Up to 500 characters |
| `search` | `type` | string | no | `mixed`, `tracks`, `users`, `albums`, `playlists_without_albums` |
| `search` | `limit`, `offset` | integer | no | None documented |
| `recent-tracks` | `tag` | string | yes | Up to 255 characters |
| `recent-tracks` | `limit` | integer | no | None documented |
| `playlists-trending` | `limit`, `offset` | integer | no | None documented |
| `playlists-tracks` | `id` | string | yes | Up to 255 characters |
| `playlists-tracks` | `max_members`, `offset` | integer | no | None documented |

The search response ends with a `pagination` block holding `offset`, `limit`, `total` and `next_offset`. The field `next_offset` has the same name as the `offset` parameter, and in the recording it was 20 after a call with `offset=0` and `limit=20`. Check paging in the playground on the [SoundCloud API page](https://perceptlayer.com/apis/soundcloud) before you loop over it.

## What does a SoundCloud search response contain?

A search response is an object with `search_parameters`, a `search_results` array and `pagination`. Each track carries its ID, genre, tags, duration in milliseconds, dates, engagement counts, licence and publisher metadata, plus a nested `user` object. This is the recorded "night drive" response, trimmed to the track fields and with the uploader's details removed:

```json
{
  "search_parameters": {
    "engine": "soundcloud_search",
    "query": "night drive",
    "type": "tracks",
    "limit": 20,
    "offset": 0
  },
  "search_results": [
    {
      "comment_count": 727,
      "created_at": "2022-02-25T03:56:25Z",
      …
      "duration": 124358,
      …
      "genre": "Phonk House",
      "id": 1222153393,
      "kind": "track",
      "license": "all-rights-reserved",
      "likes_count": 60093,
      …
      "playback_count": 4673556,
      …
      "reposts_count": 520,
      …
      "tag_list": "phonk house phonkhouse drift",
      "title": "Night Drive",
      …
    },
    {
      "comment_count": 951,
      …
      "genre": "Alternative Rock",
      "id": 1126511857,
      …
      "likes_count": 47411,
      …
      "playback_count": 3439228,
      …
      "tag_list": "\"Indie Rock\" \"Indie Pop\" Alternative Indie …",
      …
    }
  ],
  "pagination": {
    "offset": 0,
    "limit": 20,
    "total": 63047,
    "next_offset": 20
  }
}
```

| Field | What an aggregate job does with it |
| --- | --- |
| `id` | Deduplicates tracks across queries and days |
| `genre` | The uploader's genre label: `Phonk House`, `Alternative Rock` in the recording |
| `tag_list` | Space-separated tags, with multi-word tags in double quotes |
| `playback_count`, `likes_count`, `comment_count`, `reposts_count` | Engagement totals at the time of the call |
| `created_at`, `duration` | Upload time and length in milliseconds |

Parse `tag_list` with care: the second track's value mixes quoted tags such as `"Indie Rock"` with single words, so splitting on spaces breaks multi-word tags. Python's `shlex.split` handles that quoting.

## What do recent tracks and trending playlists add?

`recent-tracks` returns new uploads for one `tag`, which makes it the endpoint for watching what's being posted under a genre. `playlists-trending` returns curated selections of playlists, each with a title and a collection of playlists with track and like counts. Both cost 1 credit per call. This is the recorded `tag=house` response, trimmed to two tracks' labels and counts:

```json
{
  "search_parameters": {
    "engine": "soundcloud_recent_tracks",
    "tag": "house",
    "limit": 20
  },
  "tracks": [
    {
      "created_at": "2026-11-12T13:10:13Z",
      …
      "genre": "House",
      …
      "reposts_count": 0,
      …
      "tag_list": "Electronic",
      …
    },
    {
      "created_at": "2026-11-12T13:09:39Z",
      …
      "genre": "Deep House",
      …
      "label_name": "Body Rhythm Records",
      …
      "likes_count": 0,
      …
      "playback_count": 0,
      …
      "tag_list": "House \"Tech House\"",
      …
    }
  ],
  "pagination": {
    "offset": 0,
    "limit": 20,
    "next_offset": 20
  }
}
```

The two tracks were created 34 seconds apart, and the first has no `likes_count` or `playback_count` at all while the second reports 0 for both. Treat every count as optional. Note too that the `tag=house` result's first track has `genre` "House" but `tag_list` "Electronic", so decide whether you count by genre, tags or both.

The trending response groups playlists into selections. In the recording, one selection is titled "Artists to watch out for" and holds playlists such as "Buzzing Electronic", with `track_count: 50`, `likes_count: 63504` and `reposts_count: 1290`. Another, "Curated by SoundCloud", holds "New Techno Now: Techno" with `track_count: 72`. Each playlist has an `id`, and `playlists-tracks` takes an `id`, so the names match; the recorded `playlists-tracks` call used a different, empty playlist ( `member_count: 0`), so test one of the trending IDs in the playground and read `X-Credits-Used`, since that endpoint costs 1–11 credits.

## How do you tally genres with Python?

A genre tally runs a fixed set of theme searches, keeps each track once by `id`, and counts genres and tags weighted by `playback_count`. Run it weekly and you see which genres and tags dominate each theme over time. The script uses `requests`, `csv`, `shlex` and `collections`, and reads only fields from the recorded search response, treating each as optional.

```python
import collections
import csv
import datetime
import os
import shlex
import time

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/soundcloud/search"
QUERIES = ["night drive", "study beats", "workout"]

def search(query, attempts=3):
    params = {"query": query, "type": "tracks", "limit": 20, "offset": 0}
    for _ in range(attempts):
        r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()
    raise RuntimeError(f"gave up on {query}")

def tags(value):
    try:
        return [t.lower() for t in shlex.split(value or "")]
    except ValueError:
        return (value or "").lower().split()

today = datetime.date.today().isoformat()
with open("soundcloud-genres.csv", "a", newline="") as f:
    out = csv.writer(f)
    for query in QUERIES:
        seen, genres, tag_counts = set(), collections.Counter(), collections.Counter()
        data = search(query)
        for track in data.get("search_results", []):
            if track.get("id") in seen:
                continue
            seen.add(track.get("id"))
            plays = track.get("playback_count") or 0
            genres[(track.get("genre") or "").strip() or "(none)"] += plays
            for tag in tags(track.get("tag_list")):
                tag_counts[tag] += 1
        total = data.get("pagination", {}).get("total")
        for genre, plays in genres.most_common(10):
            out.writerow([today, query, total, "genre", genre, plays])
        for tag, n in tag_counts.most_common(10):
            out.writerow([today, query, total, "tag", tag, n])
        time.sleep(1)
```

The output holds only labels and totals per query: no track titles, uploaders or profile data. The one-second pause keeps a free account within its 1 request a second.

### What should the job do with errors?

Every error returns an HTTP status and a JSON body with `code`, `message` and `request_id`, and costs nothing. `restricted_endpoint` (403) means the terms aren't accepted yet. Retry `rate_limited` (429) and `temporarily_unavailable` (503) after the `Retry-After` seconds. Requests have no idempotency key, so a client timeout can hide a billed call; keep timeouts generous. The [errors docs](https://docs.perceptlayer.com/errors) list every code.

## What does SoundCloud data cost?

Every SoundCloud endpoint costs 1 credit per successful call, except `playlists-tracks`, which costs 1–11 credits. A search spreads its credit across every track it returns, so a 20-track page costs 1 credit. For `playlists-tracks`, budget at 11 credits per call and log `X-Credits-Used` to see what your calls cost in practice.

| Plan | Arithmetic | Credits a month |
| --- | --- | --- |
| 50 theme searches daily | 50 × 30 days × 1 credit | 1,500 |
| 30 tags, recent tracks every 6 hours | 30 × 4 × 30 days × 1 credit | 3,600 |
| Trending playlists daily | 1 × 30 days × 1 credit | 30 |
| 20 playlists' members weekly | 20 × 4 weeks × 11 credits (top of range) | 880 |

Together those plans come to 6,010 credits a month, inside the Starter pack's 10,000. The 100 free credits on signup cover 100 searches, enough to try the genre tally for a few days. Failed calls cost nothing and return `X-Credits-Used: 0`. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how calls are debited.

To start, accept the restricted-endpoint terms, then run `query=night drive` with `type=tracks` in the playground on the [SoundCloud API page](https://perceptlayer.com/apis/soundcloud), or try `playlists-trending` on its [endpoint page](https://perceptlayer.com/apis/soundcloud/playlists-trending). Other social sources are on the [social media APIs](https://perceptlayer.com/verticals/social) page.

## APIs in this post

-   [SoundCloud **1 credit per call** · 26 endpoints](https://perceptlayer.com/apis/soundcloud)

## Frequently asked questions

### Is this SoundCloud's official API?

No. These are Perceptlayer endpoints that return public SoundCloud data collected from publicly available sources, as found at the time of the call. This guide makes no claims about SoundCloud's own API, its access rules or its terms. If you're choosing between them, compare them yourself, and read SoundCloud's terms before you use the data.

### Are all SoundCloud endpoints restricted?

Yes, all 26. They work after you accept the restricted-endpoint terms in your dashboard; until then, calls return `restricted_endpoint` (403) and cost nothing. The terms don't permit collecting personal data without a lawful basis or using it to contact people, so keep to aggregate work such as genre, tag and playlist counts.

### Why does playlists-tracks cost 1–11 credits?

`playlists-tracks` shows a range because its cost depends on the call. Every successful response carries `X-Credits-Used`, so log it to see what your calls cost. For budgets, assume 11 credits per call. The other 25 SoundCloud endpoints cost 1 credit per successful call, and failed calls cost nothing.

### How do I get more than one page of search results?

The search endpoint takes `limit` and `offset`, and its response includes a `pagination` block. In the recorded call with `offset=0` and `limit=20`, `pagination` reported `total: 63047` and `next_offset: 20`. The name `next_offset` matches the `offset` parameter; confirm the paging behaviour in the playground before you build a loop. Each page is a separate 1-credit call.

### How fast can I call these endpoints?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. Rate-limited calls return 429 with a `Retry-After` header and cost nothing. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list each pack's rate.

soundcloud music data genre trends playlists python

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 24 Nov 2026 Perceptlayer 8 min read
    
    ## [Genius API: Songs, Artists and Charts as JSON](https://perceptlayer.com/blog/genius-api-json)
    
    Get Genius song metadata as JSON: release date, album, artist IDs, stats.pageviews and Spotify and Apple Music IDs from one song call, 1 credit each.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 11 Nov 2026 Perceptlayer 7 min read
    
    ## [Spotify Scraper or API: What You Get](https://perceptlayer.com/blog/spotify-scraper-vs-api)
    
    A Spotify scraper vs 18 Spotify endpoints: playlist-tracks at 1–10 credits, charts at 1–10, top tracks at 1, and how to budget a playlist and chart tracker.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 26 Nov 2026 Perceptlayer 7 min read
    
    ## [Depop API: Resale Listings as JSON](https://perceptlayer.com/blog/depop-api-json)
    
    Search Depop listings as JSON with brand, condition, sizes and price.amount per item; the recorded jacket search had a total\_count of 6,815,522. 1 credit.
