เรากำลังอัปเดต Data API ให้สอดคล้องกับวิธีที่ YouTube นับยอดดูสำหรับ Shorts
ดูข้อมูลเพิ่มเติม
คู่มือการติดตั้ง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คู่มือชุดนี้จะอธิบายวิธีใช้ YouTube Data API (v3) เพื่อทํางานประเภทต่างๆ ซึ่งรวมถึงคําอธิบาย ตัวชี้ไปยังตัวอย่างโค้ด และลิงก์ที่สร้าง API Explorer ด้วยคําค้นหาตัวอย่าง
ในการอ่านคู่มือนี้ โปรดทราบว่า:
-
หากเป็นไปได้ ให้ดูตัวอย่างการค้นหา API v3 เพื่อลิงก์และป้อนข้อมูล API Explorer ด้วยค่าที่แสดงในคําค้นหา ตัวอย่างเหล่านี้จะช่วยให้คุณส่งคําค้นหาทดสอบและดูคําตอบตัวอย่างได้อย่างง่ายดาย
-
คําขอตัวอย่างบางรายการต้องได้รับอนุมัติ มีวิดเจ็ตขนาดเล็กใกล้กับด้านบนของแบบฟอร์มโปรแกรมสํารวจ API ที่เปิดใช้การให้สิทธิ์ OAuth 2.0
-
หากต้องการใช้ YouTube Data API ในแอปพลิเคชันของคุณ คุณจะต้องรับข้อมูลเข้าสู่ระบบการให้สิทธิ์ก่อน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-02-23 UTC
[null,null,["อัปเดตล่าสุด 2023-02-23 UTC"],[[["\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)."]]