且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 *** API v3 获取完整的视频描述

更新时间:2023-02-21 07:41:04

我认为您对您发布的请求 URL 有点混淆,因为它们正在检索不同类型的数据.基本上,对于 search 请求(无论是您发布的旧 V2 API 中的搜索提要,还是您未发布示例的新 V3 API 中的搜索端点)将始终返回截断的描述.videos 请求(您有 V3 的示例,但没有 V2 的示例)将返回完整的视频说明.这适用于 v2 或 v3.

I think you've confused things a bit with the request URLs you posted, as they are retrieving different types of data. Basically, with a search request (whether the search feed in the old V2 API that you've posted, or the search endpoint in the new V3 API which you didn't post an example of) will always return truncated descriptions. A videos request (which you have an example of for V3 but not for V2) will return the full video description. This is true for v2 or v3.