使用 soundcloud API 获取特定用户的曲目列表 [英] Getting specific user's track list with soundcloud API
问题描述
是否可以通过 soundcloud API 从特定用户获取曲目列表而不要求该特定用户进行身份验证?
Is it possible to get the track list from a specific user via the soundcloud API WITHOUT requiring that specific user to authenticate?
我正在寻找类似于您可以在此处获得的 YouTube 供稿:https://gdata.youtube.com/feeds/api/users/mrromandiaz/uploads?max-results=10(我已将其指向我的帐户,但用户名mrromandiaz"可以替换为任何用户名以检索该用户的视频...
I'm looking for something like the YouTube feeds you can get here: https://gdata.youtube.com/feeds/api/users/mrromandiaz/uploads?max-results=10 (I've pointed this at my account, but the username "mrromandiaz" can be replaced with any username to retrieve that user's videos...
问题是,Soundcloud 是否提供类似的服务?我不需要进行身份验证、发布、上传或控制任何事情……只需让用户的曲目列表显示在他们的个人资料中,无需求助于默认播放器.
Question is, does Soundcloud offer anything similar? I don't need to authenticate, or post, or upload, or control anything... just get user's track lists to show on their profiles, without resorting to the default player.
推荐答案
是的,API 端点位于 /users/{user_id}/tracks
.如果您没有用户 ID,只有他们的用户名(永久链接),您可以使用 /resolve
端点来获取用户数据,包括他们的 ID.
Yep, the API endpoint is at /users/{user_id}/tracks
. If you don't have the user id, but only their username (permalink), you can use the /resolve
endpoint to get the user data, including their id.
这篇关于使用 soundcloud API 获取特定用户的曲目列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!