相同的YouTube查询,不同的customUrl值

时间:2018-10-10 01:19:19

标签: youtube-api youtube-data-api

我们已经遇到了针对channel.list的Youtube V3 API的不确定性结果。为了证明这一点,我可以连续进行2-3个查询,并为customUrl字段获得不同的结果:

获取https://www.googleapis.com/youtube/v3/channels?part=snippet%2Ccontent_details%2Cstatistics%2Cbranding_settings&id=UC5YMTGTO7q3BdgtAHsbp6BQ&key= {YOUR_API_KEY}

"title": "3M Health Care",
"description": "Helping healthcare professionals improve patient outcomes across the continuum of care, from the hospital to the clinic, long-term facility to home, with medical supplies and clinical expertise you can rely on.",
"customUrl": "3MSkinWound",
"publishedAt": "2010-02-15T23:44:27.000Z",

获取https://www.googleapis.com/youtube/v3/channels?part=snippet%2Ccontent_details%2Cstatistics%2Cbranding_settings&id=UC5YMTGTO7q3BdgtAHsbp6BQ&key= {YOUR_API_KEY}

"title": "3M Health Care",
"description": "Helping healthcare professionals improve patient outcomes across the continuum of care, from the hospital to the clinic, long-term facility to home, with medical supplies and clinical expertise you can rely on.",
"customUrl": "3mhealthcare",
"publishedAt": "2010-02-15T23:44:27.000Z",

这应该是确定性的。如果我要求UC5YMTGTO7q3BdgtAHsbp6BQ的customUrl,则应始终返回相同的值。对我来说,这是一个明显的错误。有人能检测到我们做错了什么,或者知道避免这种不确定性的方法吗?

PS:我想我应该注意,customUrl =“ 3MSkinWound”似乎是指/user/3MSkinWound(因为/c/3MSkinWound不存在),而customUrl =“ 3mhealthcare”是指{{3 }}(因为/c/3mhealthcare不存在)。这似乎与/user/3mhealthcaredocumentation for customUrl(重定向到https://www.youtube.com/3MSkinWound)和/user/3MSkinWound(不重定向到另一个URL)两者都不一致。

此外,正如下面的评论中所述,我在不同的频道上进行了20次连续调用,但结果相似:以3:1的比例返回 / user customUrl名称与< strong> / c customUrl名称。

谢谢!

0 个答案:

没有答案