SoundCloud
使用 SoundCloud API,你可以构建能够更强大地控制自己内容的应用程序
- 认证方式
- OAuth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 音乐
简介
SoundCloud API 提供曲目元数据、用户、播放列表和流媒体——v2 API(api-v2.soundcloud.com)是当前版本。认证是 OAuth 或 client ID(未认证请求返回 401,已实测)。
快速开始
v2 API 需要 client_id(注册应用获取):
curl "https://api-v2.soundcloud.com/search/tracks?q=queen&client_id=YOUR_CLIENT_ID"
{
"collection": [
{
"id": 12345,
"title": "Bohemian Rhapsody",
"duration": 354000,
"user": { "username": "Queen" },
"artwork_url": "https://i1.sndcdn.com/..."
}
]
}
认证方式
- 在 developers.soundcloud.com 注册 → 创建应用 → Client ID。
- v2 API 用
client_id查询参数(缺失 → 401,已实测)。 - OAuth 增加用户级访问(点赞、上传)。
速率限制与注意事项
- 免费层带每应用限额(看控制台)。
- v2 API 是 JSON;旧 v1 REST API 已过时。
- 流媒体 URL 需要正确的授权头(不只是 client_id)。
常见问题
SoundCloud API 免费吗? 免费层带每应用限额。
如何获取 client ID? developers.soundcloud.com → 创建应用。
为什么 401?
v2 API 需要 client_id(已实测)——加到查询里。
音乐 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 7digital Api of Music store 7digital | OAuth | Yes | Unknown | ↗ |
| AI Mastering Automated Music Mastering | API Key | Yes | Yes | ↗ |
| Audiomack Api of the streaming music hub Audiomack | OAuth | Yes | Unknown | ↗ |
| Bandcamp API of Music store Bandcamp | OAuth | Yes | Unknown | ↗ |
| Bandsintown Music Events | No auth | Yes | Unknown | ↗ |