You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracks on private playlist (with secret_token) generating 404 error on stream #74
Streaming a private track from a private playlist used to work fine as long as you used the playlist's secret token. It now generates a 404. This started happening yesterday (Dec. 7, 2016).
changed the title [-]Tracks on private playlists (with secret_token) generating 404 error on stream[/-][+]Tracks on private playlist (with secret_token) generating 404 error on stream[/+]on Dec 9, 2016
Hi @alexweinstein, I presume you have some sort of access to the track's secret token if you have the playlist's secret token (I think the secret_token field is returned for those private tracks.) If you have access to that, I would simply use the track's secret token for any request involving that track. The fact that playlist secret tokens can work for private tracks is a bit of a holdover from older "rules" of the product and might not necessarily work in the future, but requesting a secret track with its secret_token should continue to be supported. Does that help?
Activity
[-]Tracks on private playlists (with secret_token) generating 404 error on stream[/-][+]Tracks on private playlist (with secret_token) generating 404 error on stream[/+]diurnalist commentedon Dec 9, 2016
Hi @alexweinstein, I presume you have some sort of access to the track's secret token if you have the playlist's secret token (I think the
secret_tokenfield is returned for those private tracks.) If you have access to that, I would simply use the track's secret token for any request involving that track. The fact that playlist secret tokens can work for private tracks is a bit of a holdover from older "rules" of the product and might not necessarily work in the future, but requesting a secret track with itssecret_tokenshould continue to be supported. Does that help?alexweinstein commentedon Dec 9, 2016
@diurnalist That does help. Thank you for jumping on this.
I should add one more thing. Tell me if this affects your response at all.
When calling a private playlist with it's secret_token the tracks returned have that same
secret_tokenin their stream_url.For example:
https://api.soundcloud.com/playlists/280621215?secret_token=s-6AMBa&format=json&client_id=xxxxxxxxxxxReturn of one track from that playlist (note the
stream_urlandurihave that samesecret_tokenfrom the playlist):"kind": "track", "id": 296005616, "created_at": "2016/12/03 12:18:13 +0000", "user_id": 101050993, "duration": 34145, "commentable": true, "state": "finished", "original_content_size": 993149, "last_modified": "2016/12/08 22:58:37 +0000", "sharing": "private", "tag_list": "Folk \"Pedal Steel\" hello", "permalink": "beyond-the-screen", "streamable": true, "embeddable_by": "all", "downloadable": false, "purchase_url": null, "label_id": null, "purchase_title": null, "genre": "Electronic", "title": "Beyond the Screen", "description": "", "label_name": null, "release": "", "track_type": null, "key_signature": null, "isrc": null, "video_url": null, "bpm": null, "release_year": null, "release_month": null, "release_day": null, "original_format": "mp3", "license": "all-rights-reserved", "uri": "https://api.soundcloud.com/tracks/296005616?secret_token=s-6AMBa", "user": { "id": 101050993, "kind": "user", "permalink": "asweinstein", "username": "Alexander Seth", "last_modified": "2016/12/09 03:01:45 +0000", "uri": "https://api.soundcloud.com/users/101050993", "permalink_url": "http://soundcloud.com/asweinstein", "avatar_url": "https://i1.sndcdn.com/avatars-000281865754-nri1qm-large.jpg" }, "attachments_uri": "https://api.soundcloud.com/tracks/296005616/attachments", "permalink_url": "http://soundcloud.com/asweinstein/beyond-the-screen/s-6AMBa", "artwork_url": null, "waveform_url": "https://w1.sndcdn.com/rdGwuQ37GPml_m.png", "stream_url": "https://api.soundcloud.com/tracks/296005616/stream?secret_token=s-6AMBa", "playback_count": 6, "download_count": 0, "favoritings_count": 2, "comment_count": 0alexweinstein commentedon Dec 9, 2016
@diurnalist I don't understand. Is there any other way to call a private playlist and stream the tracks?