# SoundCloud 关键词搜索 API (soundcloud.search)

- Canonical page: [https://everyinfra.com/soundcloud-api/search](https://everyinfra.com/soundcloud-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "soundcloud", "action": "search", "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 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

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

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| genre | 流派。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| duration_sec | 时长，**单位秒**（注意与别的平台 duration_ms 毫秒不同）。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| artist_name | 音乐人名称。 |
| artist_url | 音乐人主页。 |
| artist_avatar_url | 音乐人头像。 |
| artist_follower_count | 音乐人粉丝数。 |
| artist_verified | 音乐人是否认证。 |
| play_count | 播放量。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| download_count | 下载数。 |
| artwork_url | 封面图。 |
| license | 版权许可类型（含 CC 协议，做二创前必看）。 |
| 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",
  "params": {
    "keyword": "ambient piano"
  }
}'
```

```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",
        "params": {
            "keyword": "ambient piano",
        },
    },
    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",
  "results": [
    {
      "id": 1766135160,
      "url": "https://soundcloud.com/ambientmusicalgenre/good-lee-bliss-in-chaos-piano-edit",
      "title": "Good Lee - Bliss in Chaos (Piano Edit)",
      "text": "🎇 Bliss in Chaos.\n🎧 Stream: https://open.spotify.com/track/5TaBEN8vARmiaPrteQmqpy\n🌆 Spotify Ambient Playlist: http://bit.ly/AmbientSpotify\n\n🎊 Subscribe to Ambient and click on the bell for more wonderful music!\n\n📸 Ambient Instagram: http://bit.ly/AmbientInstagram\n🎁 Ambient Shop: …",
      "genre": "Ambient",
      "tags": [
        "Classical",
        "Piano",
        "Ambient"
      ],
      "duration_sec": 202,
      "artist_name": "Ambient",
      "artist_url": "https://soundcloud.com/ambientmusicalgenre",
      "artist_avatar_url": "https://i1.sndcdn.com/•••",
      "artist_follower_count": 57569,
      "artist_verified": false,
      "play_count": 1524,
      "like_count": 33,
      "comment_count": 1,
      "repost_count": 4,
      "download_count": 0,
      "artwork_url": "https://i1.sndcdn.com/artworks-Q6zUENkFLRjlrWa7-Ji7q8w-large.jpg",
      "license": "all-rights-reserved",
      "posted_at": "2024-03-05T19:06:52+00:00",
      "platform": "soundcloud"
    },
    {
      "id": 1289751166,
      "url": "https://soundcloud.com/esteban-martinez-749274166/the-owl-house-outro-ambient",
      "title": "The Owl House - Outro ( Ambient Piano Lofi )",
      "text": "",
      "genre": "Ambient",
      "tags": [],
      "duration_sec": 141,
      "artist_name": "Steb",
      "artist_url": "https://soundcloud.com/esteban-martinez-749274166",
      "artist_avatar_url": "https://i1.sndcdn.com/•••",
      "artist_follower_count": 37,
      "artist_verified": false,
      "play_count": 70246,
      "like_count": 469,
      "comment_count": 56,
      "repost_count": 13,
      "download_count": 0,
      "artwork_url": "https://i1.sndcdn.com/artworks-VKNHiJD2pRuiVmfx-LPQ46w-large.jpg",
      "license": "all-rights-reserved",
      "posted_at": "2022-06-18T05:15:45+00:00",
      "platform": "soundcloud"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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