Creates a new SoundCloudClient instance.
Client configuration including OAuth credentials and optional settings
Authentication methods (OAuth token grants, sign out)
Like/unlike actions (/likes)
Authenticated user endpoints (/me)
Playlist endpoints (/playlists)
Repost/unrepost actions (/reposts)
URL resolution endpoint (/resolve)
Search endpoints
Track endpoints (/tracks)
User profile endpoints (/users)
Get the currently stored access token, or undefined if none is set.
Get the currently stored refresh token, or undefined if none is set.
Clear all stored tokens from this client instance.
Collects all pages into a single flat array.
Function that fetches the first page
Optionaloptions: { maxItems?: number }Optional configuration
OptionalmaxItems?: numberMaximum number of items to collect
A promise resolving to a flat array of all items
Async generator that follows next_href automatically, yielding each page's collection.
Function that fetches the first page
An async generator yielding arrays of items (one per page)
Async generator that yields individual items across all pages.
Function that fetches the first page
An async generator yielding individual items
Store an access token (and optionally refresh token) on this client instance.
The OAuth access token to store
OptionalrefreshToken: stringOptional refresh token for automatic token renewal
High-level SoundCloud API client with namespaced methods for all API areas.
Provides automatic token management, retry with exponential backoff, optional automatic token refresh on 401, and built-in pagination helpers.
Example
See
https://developers.soundcloud.com/docs/api/explorer/open-api