YouTube数据API是否支持通过@句柄查询通道?这似乎没有得到支持。
例:https://www.youtube.com/@lionsgatemovies
forUsername
param
GET https://www.googleapis.com/youtube/v3/channels?part=id,snippet&forUsername=@lionsgatemovies
{
"kind": "youtube#channelListResponse",
"etag": "RuuXzTIr0OoDqI4S0RU6n4FqKEM",
"pageInfo": {
"totalResults": 0,
"resultsPerPage": 5
}
}
id
param
GET https://www.googleapis.com/youtube/v3/channels?part=id,snippet&id=@lionsgatemovies
{
"kind": "youtube#channelListResponse",
"etag": "RuuXzTIr0OoDqI4S0RU6n4FqKEM",
"pageInfo": {
"totalResults": 0,
"resultsPerPage": 5
}
}
支持的过滤器参数似乎都不合适:
{
"error": {
"code": 400,
"message": "No filter selected. Expected one of: mySubscribers, forUsername, mine, managedByMe, categoryId, id",
"errors": [
{
"message": "No filter selected. Expected one of: mySubscribers, forUsername, mine, managedByMe, categoryId, id",
"domain": "youtube.parameter",
"reason": "missingRequiredParameter",
"location": "parameters.",
"locationType": "other"
}
]
}
}
发布于 2022-11-17 17:01:40
此时(2022年11月17日),YouTube 尚未更新数据API。支持@handle。
https://stackoverflow.com/questions/74348727
复制相似问题