【问题标题】:Soundcloud API Returning 404 Not Found Error on Publicly Available TracksSoundcloud API 在公开可用的轨道上返回 404 Not Found 错误
【发布时间】:2020-06-09 13:58:09
【问题描述】:

这是一个例子

跟踪网址:https://soundcloud.com/bingoplayers/hysteria-radio-056

此曲目存在于 SoundCloud 上并公开提供

解析 api url:

http://api.soundcloud.com/resolve.json?url=https://soundcloud.com/bingoplayers/hysteria-radio-056&client_id={client_id}

API 响应:

response : 
{
    "errors": [
        {
            "error_message": "404 - Not Found"
        }
    ]
}

使用不同的客户端 ID 检查并每次返回相同的响应。其他轨道在相同的客户端 ID 下运行良好。

【问题讨论】:

    标签: soundcloud


    【解决方案1】:

    响应是 302,如此处所述 https://developers.soundcloud.com/docs/api/reference#resolve

    您的浏览器正在重定向。在你的终端上通过 curl 运行它,你会看到原始响应

    (如果您仍然看到错误,可能是因为它是付费内容)

    【讨论】:

    • 我同意你的看法。我正在为此使用 PHP cURL 代码..
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-31
    • 2017-07-15
    • 2020-01-28
    • 1970-01-01
    • 2012-08-16
    相关资源
    最近更新 更多