I get track information through the API using the simple endpoint /tracks/ . This works fine for most tracks, but for some I get 403 error.
For example, this does not work:
http:
returns:
HTTP/1.1 403 Forbidden Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin Access-Control-Allow-Methods: GET, PUT, POST, DELETE Access-Control-Allow-Origin: * Access-Control-Expose-Headers: Date Cache-Control: max-age=600, public Cache-Control: private, max-age=0 Content-Length: 0 Content-Type: application/json; charset=utf-8 Date: Sat, 09 Apr 2016 09:39:00 GMT Etag: "5a8b3e5cf857d1c73a6ec924804140e1" Server: am/2 Status: 200 OK Vary: Authorization, Accept
But this one works with the same client id:
http:
returns:
HTTP/1.1 200 OK Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin Access-Control-Allow-Methods: GET, PUT, POST, DELETE Access-Control-Allow-Origin: * Access-Control-Expose-Headers: Date Cache-Control: max-age=600, public Content-Encoding: gzip Content-Length: 765 Content-Type: application/json; charset=utf-8 Date: Sat, 09 Apr 2016 09:34:39 GMT Etag: "0e64b4946489f72918940be1c559f1ee" Server: am/2 Status: 200 OK Vary: Authorization, Accept { "artwork_url": "https://i1.sndcdn.com/artworks-000098499957-8mkrc3-large.jpg", "attachments_uri": "https://api.soundcloud.com/tracks/169170570/attachments", "bpm": null, "comment_count": 2015, "commentable": true, "created_at": "2014/09/24 15:23:54 +0000", "description": "Urban Flora\n\ n@galimatias \n\nCover art by: Oska \nhttp://instagram.com/oskadesign", "download_count": 0, .....
I do not know if this is a technical problem, or if it is possible that the user has set some options to prevent embedding? or some copyright issues?
The soundcloud page has a link for embedding ...:
https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/232273455&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true%22
In any case, it would be great to have a more detailed answer, 403 means Forbidden , but why?
I found some related problems, but rather old and no answers, like this or this