# SoundCloud 播放列表搜索 API (soundcloud.search_playlists)

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

SoundCloud 播放列表搜索按 `keyword` 搜歌单，一次给出一批候选。每条是一个歌单的概况：标题和描述 `text`，流派 `genre`，收了几首、总长多少秒，点赞和转发两项反响，是不是专辑，封面图，再加上歌单挂在哪位音乐人名下、有没有认证。它回答「这个主题下有哪些歌单、规模多大、哪些反响好」，常用于歌单策划的调研，或者找出某个流派下收录曲目多的歌单。

每次默认 20 条，最多 50 条。`keyword` 在这里搜的是歌单，同一个词在搜曲目和搜作者的能力里返回的是别的对象。结果里的 `url` 可以交给播放列表那一页，按完整的 /sets/ 链接读单个歌单。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 查曲目，search_users 查作者，search_playlists 查歌单；三者虽同用关键词，返回对象不同。playlist 仅在未识别到 /sets/ 歌单 URL 时把此字段作为搜索词，不等于精确歌单详情。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## 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": "search_playlists",
  "params": {
    "keyword": "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": "search_playlists",
        "params": {
            "keyword": "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; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "soundcloud",
  "action": "search_playlists",
  "results": [
    {
      "id": 1589968831,
      "title": "Coffee Jazz",
      "url": "https://soundcloud.com/relaxcafemusic/sets/coffee-jazz",
      "text": "Create a laid-back atmosphere with this playlist featuring mellow jazz tracks perfect for a weekend of relaxation and productivity.",
      "genre": "Jazz & Blues",
      "track_count": 432,
      "duration_sec": 73959,
      "like_count": 13217,
      "repost_count": 311,
      "is_album": false,
      "artwork_url": "https://i1.sndcdn.com/artworks-0VmDyPGZZtE1mpcz-t8vvBw-large.jpg",
      "artist_name": "Relax Cafe Music BGM",
      "artist_url": "https://soundcloud.com/relaxcafemusic",
      "artist_verified": false,
      "posted_at": "2023-03-24T18:42:10+00:00",
      "platform": "soundcloud"
    },
    {
      "id": 1725794754,
      "title": "Coffee shop music",
      "url": "https://soundcloud.com/relaxcafemusic/sets/coffee-shop-music",
      "text": "",
      "genre": "Jazz & Blues",
      "track_count": 387,
      "duration_sec": 73211,
      "like_count": 510,
      "repost_count": 13,
      "is_album": false,
      "artwork_url": "https://i1.sndcdn.com/artworks-yIaA9WRxh0HpIUyI-I0SbcQ-large.jpg",
      "artist_name": "Relax Cafe Music BGM",
      "artist_url": "https://soundcloud.com/relaxcafemusic",
      "artist_verified": false,
      "posted_at": "2023-11-21T15:19:05+00:00",
      "platform": "soundcloud"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 搜索结果和播放列表那一页的字段有什么不同？

没有不同，两页的返回字段完全一样。区别只在入口：这一页按关键词一次给一批候选歌单，播放列表那一页按链接读单个歌单。搜索结果已经带 `track_count`、`like_count` 等全部信息，只有想用链接再确认一遍时才需要再读。

### 怎么从结果里挑出值得看的歌单？

先按 `like_count` 和 `repost_count` 看反响，再用 `track_count` 和 `duration_sec` 判断规模，`genre` 用来按流派分组；`is_album` 为真的是专辑，和普通歌单分开比较更合理。`like_count`、`repost_count` 为 null 表示不公开，不等于 0。

### 歌单里的曲目会逐首出现在结果里吗？

不会。搜索结果里每个歌单只有一个 `track_count` 数字，看不到收了哪几首。歌单里可能混着别人的作品，`artist_name` 只说明歌单挂在谁名下，单首曲目的作者要拿到曲目链接、读单曲详情才知道。

## 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
