无法通过 SoundCloud API 调用检索某些公共曲目 (403) [英] Cannot retrieve certain public tracks via SoundCloud API calls (403)

查看:28
本文介绍了无法通过 SoundCloud API 调用检索某些公共曲目 (403)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过 SoundCloud API 访问时,我的播放列表中的某些曲目未返回.

Some tracks in my playlist are not being returned when accessed via the SoundCloud API.

例如,我的播放列表中有两首曲目:

For example, here are two tracks in my playlist:

  1. http://api.soundcloud.com/tracks/169170570?client_id=CLIENT_ID立>
  2. http://api.soundcloud.com/tracks/251027701?client_id=CLIENT_ID

轨道 1 的 URL 返回一个 JSON 对象,并且也正确出现在我的/playlists 请求中.但是,轨道 2 在上面的 URL 中给了我一个 403,并且没有出现在我的/playlists 请求中.

The URL for track 1 returns a JSON object and also appears properly in my /playlists request. However, track 2 gives me a 403 in the URL above and is not present in my /playlists request.

为什么会这样?据我所知,轨道 2 是公共轨道,应该可以访问.有趣的是,我仍然可以通过在 URL 末尾添加/stream 来流式传输轨道 2:

Why is this happening? As far as I can tell, track 2 is a public track and should be accessible. The interesting thing is I can still stream track 2 by adding /stream to the end of the URL:

http://api.soundcloud.com/tracks/251027701/stream?client_id=CLIENT_ID

这是怎么回事?

推荐答案

很可能是艺术家阻止了对该曲目的 API 访问.

It's most likely that the artist has blocked API access to this track.

SoundCloud 为权利人引入了一个选项,默认情况下禁用对曲目的所有 API 访问,并在请求时返回此 403 错误

SoundCloud has introduced an option for right holders to disable all API access to tracks by default, returning this 403 error when requested

来自:SoundCloud API URL 超时,然后在大约 50% 的轨道上返回错误 403

这篇关于无法通过 SoundCloud API 调用检索某些公共曲目 (403)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆