# SoundCloud 播放列表 API (soundcloud.playlist)

- Canonical page: [https://everyinfra.com/soundcloud-api/playlist](https://everyinfra.com/soundcloud-api/playlist?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "soundcloud", "action": "playlist", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

SoundCloud 播放列表按 `url` 读取一个歌单，返回单个对象：标题、描述 `text`、流派 `genre`、曲目数 `track_count`、总时长、点赞数、转发数、是否专辑 `is_album`、封面，以及歌单音乐人的名称、主页和认证状态。它回答「这个歌单是什么、谁建的、规模多大」，适合核对一个已知歌单，或者给歌单名单补上基本信息。

`url` 要用含 /sets/ 的完整歌单链接。给的不是歌单链接时，这一页会转成歌单搜索，结果不保证是你要找的那个。这一页不返回歌单里每首曲目的明细，只有曲目数。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=soundcloud&action=playlist

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | track 使用具体曲目链接；artist 使用 soundcloud.com/作者 主页，给曲目链接时会截取作者路径；playlist 使用含 /sets/ 的完整歌单 URL。非歌单 URL 会转为歌单搜索，结果不保证是原目标。 |
| keyword | not declared | no | not declared | search 查曲目，search_users 查作者，search_playlists 查歌单；三者虽同用关键词，返回对象不同。playlist 仅在未识别到 /sets/ 歌单 URL 时把此字段作为搜索词，不等于精确歌单详情。 |
| query | not declared | no | not declared | playlist 回落搜索的关键词兼容输入，低于 keyword；不改变 url 的公开必填要求。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| genre | 流派。 |
| track_count | 曲目数。 |
| duration_sec | 时长，**单位秒**（注意与别的平台 duration_ms 毫秒不同）。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| is_album | 是否为专辑。 |
| artwork_url | 封面图。 |
| artist_name | 音乐人名称。 |
| artist_url | 音乐人主页。 |
| artist_verified | 音乐人是否认证。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "soundcloud",
  "action": "playlist",
  "params": {
    "url": "https://soundcloud.com/beabadoobee/coffee"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "soundcloud",
        "action": "playlist",
        "params": {
            "url": "https://soundcloud.com/beabadoobee/coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "soundcloud",
  "action": "playlist",
  "results": {
    "id": 1233385918,
    "title": "https://soundcloud.com/soulisticmusic/black-coffee-appreciation-mix-2017",
    "url": "https://soundcloud.com/dragan-mitrovic-3/sets/https-soundcloud-com",
    "text": "",
    "genre": "",
    "track_count": 1,
    "duration_sec": 3634,
    "like_count": 1,
    "repost_count": 0,
    "is_album": false,
    "artist_name": "DR Funkme",
    "artist_url": "https://soundcloud.com/dragan-mitrovic-3",
    "artist_verified": false,
    "posted_at": "2021-03-27T21:22:01+00:00",
    "platform": "soundcloud"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 传的不是 /sets/ 链接会怎样？

非歌单链接会被转成歌单搜索，返回的歌单不保证是原来要找的那个。只有没识别出 /sets/ 歌单链接时，可选的 `keyword` 才会被当成搜索词；`query` 是同一用途的兼容写法，优先级低于 `keyword`。要确定读到某一个歌单，就传完整的 /sets/ 链接。

### 能拿到歌单里每首曲目吗？

不能。这一页返回的是歌单本身的摘要，曲目只体现为曲目数 `track_count`，没有曲目明细。要看某一首的播放量、标签和版权许可，拿到曲目链接后用单曲详情那一页读。

### 歌单的音乐人就是每首曲目的作者吗？

不一定。歌单是可以收进自己或他人曲目的集合，`artist_name` 和 `artist_url` 指的是集合这一层的音乐人。`is_album` 为真说明它被设成了专辑形态。`repost_count` 是转发数，不含引用转发，为 null 表示不公开。`duration_sec` 的单位是秒，不是毫秒。

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=soundcloud
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
