我们正在更新 Data API,以便与 YouTube 统计 Shorts 短视频观看次数的方式保持一致。
了解详情
实现指南
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本系列指南介绍了如何使用 YouTube Data API (v3) 执行多种不同类型的功能。其中包含说明、指向代码示例的指针,以及使用示例查询填充 API Explorer 的链接。
在阅读本指南时,请注意以下几点:
-
如有可能,示例 v3 API 查询会链接到 API Explorer,并使用查询中显示的值进行填充。这些示例有助于您轻松提交测试查询和查看响应示例。
-
某些示例请求需要授权。API Explorer 表单顶部附近有一个小小微件,用于启用 OAuth 2.0 授权。
-
要在您的应用中使用 YouTube Data API,您必须先获取授权凭据。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-02-23。
[null,null,["最后更新时间 (UTC):2023-02-23。"],[[["\u003cp\u003eThis guide series demonstrates how to utilize the YouTube Data API (v3) for various functions, providing descriptions, code samples, and pre-filled API Explorer queries.\u003c/p\u003e\n"],["\u003cp\u003eSample v3 API queries in this guide link to the APIs Explorer, allowing users to test queries and view responses quickly.\u003c/p\u003e\n"],["\u003cp\u003eSome sample requests necessitate OAuth 2.0 authorization, which can be enabled through a widget in the APIs Explorer.\u003c/p\u003e\n"],["\u003cp\u003eUsing the YouTube Data API in an external application requires that authorization credentials must first be obtained.\u003c/p\u003e\n"]]],["The content explains the use of the YouTube Data API (v3) for various functions, offering descriptions, code samples, and pre-filled API Explorer links for testing queries. Authorization is required for some requests, enabled via a widget in the API Explorer. To utilize the API in applications, users must obtain authorization credentials, as detailed in the linked documentation. The guide uses the API Explorer as a key element for users to understand and test the information.\n"],null,["# Implementation Guide\n\nThis series of guides explains how to use the YouTube Data API (v3) to perform many different types of functions. It includes descriptions, pointers to code samples, and links that populate the APIs Explorer with sample queries.\n\nIn reading this guide, please remember that:\n\n- Whenever possible, sample v3 API queries link to and populate the APIs Explorer with the values shown in the queries. These examples help you easily submit test queries and see sample responses.\n\n- Some of the sample requests do require authorization. There is a small widget near the top of the APIs Explorer form that enables OAuth 2.0 authorization.\n\n- To use the YouTube Data API in your application, you must first [obtain authorization credentials](/youtube/registering_an_application)."]]