What you get#
Onekey exposes SoundCloud as 13 endpoints behind one API key: 5 endpoints return one record (data is an object) and 8 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for SoundCloud also works for the rest of the music & audio category.
Endpoints#
| Endpoint | What it does | Parameters | Credits | Status |
|---|---|---|---|---|
followers | Followers of a SoundCloud user (numeric id). | id* | 3 | beta may need a pack |
oembed | SoundCloud embed metadata for a track/set URL (oEmbed). | url* | 1 | stable |
profile | SoundCloud artist page card: name, bio snippet, avatar. | user* | 1 | stable may need a pack |
related | Tracks related to a SoundCloud track (numeric id). | id* | 3 | beta may need a pack |
search_playlists | Search SoundCloud playlists by keyword. | q* | 3 | beta may need a pack |
search_tracks | Search SoundCloud tracks by keyword. | q* | 3 | beta may need a pack |
search_users | Search SoundCloud users by keyword. | q* | 3 | beta may need a pack |
track | SoundCloud track by user/track slug (resolve): plays, likes, comments, duration. | user*, track* | 1 | beta may need a pack |
track_comments | Comments on a SoundCloud track (numeric id). | id* | 3 | beta may need a pack |
track_oembed | SoundCloud track/playlist oEmbed: title, artist, artwork, description. | user*, track* | 1 | stable |
trending | SoundCloud top/trending tracks chart. | - | 3 | beta may need a pack |
user | SoundCloud user profile by slug (resolve). | user* | 1 | beta may need a pack |
user_tracks | Tracks uploaded by a SoundCloud user (numeric id). | id* | 3 | beta may need a pack |
A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.
Make a request#
This calls soundcloud.oembed (1 credit, stable). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.
curl "https://api.onekey.dev/v1/soundcloud/oembed?url=https%3A%2F%2Fsoundcloud.com%2Fforss%2Fflickermood" \
-H "x-api-key: YOUR_API_KEY"Fields you get back#
These unified fields come back from SoundCloud, with the same names as on every other platform. The count is how many of its 13 mapped endpoints return the field; a field the source lacks is null, never missing. 2 platform-specific fields (ext.<name>) come on top, documented on each endpoint page.
| Field | Type | Endpoints |
|---|---|---|
content.text | string | 13 |
author.url | URL | 11 |
author.username | string | 10 |
author.avatarUrl | URL | 9 |
author.id | string | 9 |
content.title | string | 8 |
media.thumbnailUrl | URL | 8 |
content.id | string | 7 |
author.displayName | string | 6 |
content.createdAt | ISO 8601 date | 6 |
content.url | URL | 6 |
engagement.comments | integer | 5 |
engagement.likes | integer | 5 |
engagement.shares | integer | 5 |
engagement.views | integer | 5 |
media.durationSeconds | number | 5 |
author.contentCount | integer | 3 |
author.followers | integer | 3 |
author.following | integer | 3 |
author.verified | boolean | 3 |
The full schema is in Unified schema.
Pricing#
SoundCloud calls cost 1 to 3 credits, flat per endpoint. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.