setup - RalkeyOfficial/soundcloud-downloader GitHub Wiki

Configuration

At the root of the project create a file named config.json:

{
  "client_id": "YOUR_CLIENT_ID",
  "oauth":     "YOUR_OAUTH_TOKEN"
}
  • client_id – your SoundCloud API client identifier
  • oauth – your OAuth token, e.g.:
    1-234567-123456789-KsP844pFhHtVIo
    

Obtaining Credentials

OAuth Token (from Cookies)

  1. Open your browser and sign in to SoundCloud.
  2. Open Developer Tools → Application (Chrome) → Cookies.
  3. Find the cookie named oauth_token.
  4. Copy its value (this will not include the OAuth prefix).

Client ID (from Network)

  1. With Developer Tools open, switch to the Network tab.
  2. Reload the page or perform a search/play a track, this will generate XHR calls to the SoundCloud API.
  3. In the list of requests, click on one that goes to api-v2.soundcloud.com (or similar).
  4. In the Headers pane, look under Query String Parameters or Payload for client_id.
  5. Copy that value.