บริการ API ของ YouTube - บริการ API ตามหัวข้อ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หมายเหตุ: การปฏิบัติตามนโยบายสำหรับนักพัฒนาแอป YouTube มีคำแนะนำและตัวอย่างเพื่อช่วยให้คุณมั่นใจได้ว่าไคลเอ็นต์ API จะปฏิบัติตามข้อกำหนดและนโยบายของบริการ API ของ YouTube (API TOS) ที่เฉพาะเจาะจง คู่มือนี้ให้ข้อมูลเชิงลึกเกี่ยวกับวิธีที่ YouTube บังคับใช้ข้อกำหนดในการให้บริการของ API ในบางแง่มุม แต่ไม่ได้แทนที่เอกสารที่มีอยู่
ข้อกำหนดในการให้บริการของบริการ API ของ YouTube ("ข้อกำหนด") ระบุไว้ (ในส่วนที่ 14) ว่าเมื่อ YouTube ตั้งใจจะทำการเปลี่ยนแปลงบริการ YouTube API ที่เข้ากันไม่ได้แบบย้อนหลัง YouTube จะประกาศการเปลี่ยนแปลงเหล่านั้นและพยายามเก็บรักษาโค้ดซอฟต์แวร์ไว้เป็นเวลา 6 เดือนหลังการประกาศ
หน้านี้ระบุบริการ Subject API ที่อ้างอิงในส่วนที่ 14.3 (ข้อกำหนดพิเศษ) ของข้อกำหนด และอธิบายว่าส่วนดังกล่าวของข้อกำหนดส่งผลต่อวันที่เลิกใช้งานจริงอย่างไร ก่อนวันที่ 10 กุมภาพันธ์ 2017 ซึ่งเป็นวันที่ข้อกำหนดปัจจุบันมีผลบังคับใช้ บริการ Subject API จะอยู่ภายใต้นโยบายการเลิกใช้งานเป็นเวลา 1 ปีภายใต้ข้อกำหนดชุดก่อนหน้า บริการ Subject API จะอยู่ภายใต้กฎการเลิกใช้งานที่แตกต่างจากบริการอื่นๆ เป็นการชั่วคราว เพื่อเป็นการปฏิบัติตามนโยบายดังกล่าว
ทำความเข้าใจวันที่เลิกใช้งาน
ในกรณีที่มีการเปลี่ยนแปลงซึ่งไม่สามารถใช้ร่วมกับบริการ Subject API ได้ YouTube จะใช้ความพยายามที่สมเหตุสมผลในการรักษาโค้ดจนถึงวันที่ 10 กุมภาพันธ์ 2018 ซึ่งเป็นเวลา 1 ปีหลังจากที่ข้อกำหนดเหล่านี้มีผลบังคับใช้ สำหรับบริการอื่นๆ YouTube จะพยายามเก็บรักษาโค้ดซอฟต์แวร์ไว้เป็นเวลา 6 เดือนนับจากวันที่ประกาศการเปลี่ยนแปลงดังกล่าว
การยกเว้น
ฟีเจอร์บางอย่างของบริการ Subject API ไม่อยู่ภายใต้กฎที่ระบุไว้ในส่วนที่ 14.3 ของข้อกำหนด เนื่องจากฟีเจอร์เหล่านั้นไม่ได้ขึ้นอยู่กับนโยบายการเลิกใช้งานที่ระบุไว้ในข้อกำหนดชุดก่อนหน้าเช่นกัน ฟีเจอร์ดังกล่าวถือเป็นการยกเว้นในรายการของบริการตามหัวข้อด้านล่าง
เมื่อการยกเว้นมีผลกับพร็อพเพอร์ตี้ object
การยกเว้นจะมีผลกับพร็อพเพอร์ตี้ย่อยของพร็อพเพอร์ตี้นั้นด้วย นอกจากนี้ การยกเว้นยังมีผลกับความสามารถในการเรียกดู ตั้งค่า แก้ไข หรือลบค่าของพร็อพเพอร์ตี้หรือพร็อพเพอร์ตี้ย่อย รวมถึงค่าพร็อพเพอร์ตี้ด้วย
บริการ Subject API
ส่วนต่อไปนี้จะกำหนดบริการของ Subject API ส่วนเหล่านี้จะระบุบริการ API ที่เลิกใช้งานแล้วอย่างสมบูรณ์ด้วยเพื่อความครบถ้วนสมบูรณ์ บริการที่เลิกใช้งานโดยสมบูรณ์นั้นไม่อยู่ภายใต้ข้อกำหนดนี้
API ข้อมูลของ YouTube, v3
API โปรแกรมเล่น iframe ของ YouTube
API การรายงานของ YouTube
- เอกสารประกอบ
-
การยกเว้น
- มิติข้อมูลที่ไม่ใช่กลุ่มหลัก (ดูคําจํากัดความของมิติข้อมูลเพื่อพิจารณาว่ามิติข้อมูลแต่ละรายการถือเป็นมิติข้อมูลหลักหรือไม่)
- เมตริกที่ไม่ใช่เมตริกหลัก (ดูคำจำกัดความของเมตริกเพื่อระบุว่าเมตริกแต่ละรายการถือเป็นเมตริกหลักหรือไม่)
API ของ YouTube Analytics
- เอกสารประกอบ
-
การยกเว้น
- มิติข้อมูลที่ไม่ใช่กลุ่มหลัก (ดูคําจํากัดความของมิติข้อมูลเพื่อพิจารณาว่ามิติข้อมูลแต่ละรายการถือเป็นมิติข้อมูลหลักหรือไม่)
- เมตริกที่ไม่ใช่เมตริกหลัก (ดูคำจำกัดความของเมตริกเพื่อระบุว่าเมตริกแต่ละรายการถือเป็นเมตริกหลักหรือไม่)
บริการ API ที่เลิกใช้งานโดยสมบูรณ์
บริการ API ต่อไปนี้เลิกใช้งานแล้วอย่างสมบูรณ์ แต่จะต้องอยู่ภายใต้นโยบายการเลิกใช้งานที่ระบุไว้ในข้อกำหนดเดิมและระยะเวลาการเลิกใช้งานก็สิ้นสุดลง YouTube ไม่มีภาระหน้าที่ในการประกาศการเปลี่ยนแปลงที่ส่งผลกับส่วนอื่นในระบบหรือสนับสนุนบริการเหล่านี้ต่อไป
API ข้อมูลของ YouTube, v2
API โปรแกรมเล่น Flash ของ YouTube
API โปรแกรมเล่น JavaScript ของ YouTube
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[null,null,["อัปเดตล่าสุด 2025-08-21 UTC"],[],["YouTube API services follow a deprecation policy where backward-incompatible changes are announced, and code is maintained for six months. Subject API Services, listed as YouTube Data API v3, IFrame Player API, Reporting API, and Analytics API, have extended maintenance until February 10, 2018, due to prior terms. Exemptions, like specific properties and non-core metrics, exist. Fully deprecated services, such as Data API v2, Flash, and JavaScript Player APIs, are no longer supported.\n"],null,["# YouTube API Services - Subject API Services\n\n**Note:** [Complying with the YouTube Developer Policies](/youtube/terms/developer-policies-guide) provides guidance and examples to help you ensure that your API clients follow specific portions of the YouTube API Services [Terms](/youtube/terms/api-services-terms-of-service) and [Policies](/youtube/terms/developer-policies) (API TOS). The guide offers insight into how YouTube enforces certain aspects of the API TOS, but it does not replace any existing documents.\n\nThe [YouTube API Services Terms of Service](/youtube/terms/api-services-terms-of-service) (the \"Terms\") state (in Section 14) that when YouTube intends to make backward-incompatible changes to YouTube API services, YouTube will announce those changes and try to continue to maintain the software code for six months after the announcement.\n\nThis page identifies the **Subject API Services** referenced in section 14.3 (Special Terms) of the Terms and explains how that section of the Terms affects actual deprecation dates. Prior to February 10, 2017, which is the effective date of the current Terms, the Subject API Services had been subject to a one-year deprecation policy under the previous set of Terms. To honor that policy, the Subject API Services are, temporarily, subject to different deprecation rules than other services.\n\nUnderstanding deprecation dates\n-------------------------------\n\nIn the event of backward-incompatible changes to Subject API Services, YouTube will use reasonable efforts to maintain code until at least February 10, 2018, which is one year after these Terms became effective. For other services, YouTube will try to continue to maintain the software code for six months from the date those changes are announced.\n\n### Exemptions\n\nSome features of Subject API Services are not subject to the rules defined in Section 14.3 of the Terms because those features were also not subject to the deprecation policy defined under the prior set of Terms. Those features are identified as **exemptions** in the list of subject services below.\n\nWhen an exemption applies to an `object` property, it also applies to any of that property's child properties. In addition, the exemption applies to the ability to retrieve, set, modify, or delete values of the property or its child properties as well as to the property values themselves.\n\nSubject API Services\n--------------------\n\nThe following sections define the Subject API Services. For completeness, these sections also identify fully deprecated API services. Those fully deprecated services are not covered under the Terms.\n\n### YouTube Data API, v3\n\n\u003cbr /\u003e\n\n- [Documentation](/youtube/v3)\n- Exemptions\n\n - The following `channel` resource properties:\n - [brandingSettings.channel.profileColor](/youtube/v3/docs/channels#brandingSettings.channel.profileColor)\n - [brandingSettings.hints](/youtube/v3/docs/channels#brandingSettings.hints)\n - [brandingSettings.image.watchIconImageUrl](/youtube/v3/docs/channels#brandingSettings.image.watchIconImageUrl)\n - [brandingSettings.watch](/youtube/v3/docs/channels#brandingSettings.watch)\n - [contentDetails.relatedPlaylists](/youtube/v3/docs/channels#contentDetails.relatedPlaylists)\n - [contentOwnerDetails](/youtube/v3/docs/channels#contentOwnerDetails)\n - [invideoPromotion](/youtube/v3/docs/channels#invideoPromotion)\n - [statistics.commentCount](/youtube/v3/docs/channels#statistics.commentCount)\n - The [guideCategory](/youtube/v3/docs/guideCategories) resource and its methods.\n - The `search.list` method's [safeSearch](/youtube/v3/docs/search/list#safeSearch) parameter and its values.\n - The `video` resource's [status.publishAt](/youtube/v3/docs/videos#status.publishAt) property.\n\n\u003cbr /\u003e\n\n### YouTube IFrame Player API\n\n\u003cbr /\u003e\n\n- [Documentation](/youtube/iframe_api_reference)\n\n\u003cbr /\u003e\n\n### YouTube Reporting API\n\n\u003cbr /\u003e\n\n- [Documentation](/youtube/reporting)\n- Exemptions\n\n - Non-core dimensions. (See the [dimension](/youtube/reporting/v1/reports/dimensions) definitions to determine whether individual dimensions are considered core dimensions.)\n - Non-core metrics. (See the [metric](/youtube/reporting/v1/reports/metrics) definitions to determine whether individual metrics are considered core metrics.)\n\n\u003cbr /\u003e\n\n### YouTube Analytics API\n\n\u003cbr /\u003e\n\n- [Documentation](/youtube/analytics)\n- Exemptions\n\n - Non-core dimensions. (See the [dimension](/youtube/analytics/v1/dimsmets/dims) definitions to determine whether individual dimensions are considered core dimensions.)\n - Non-core metrics. (See the [metric](/youtube/analytics/v1/dimsmets/mets) definitions to determine whether individual metrics are considered core metrics.)\n\n\u003cbr /\u003e\n\nFully deprecated API Services\n-----------------------------\n\nThe following API services are fully deprecated. They were subject to the deprecation policy set forth in the Original Terms and the deprecation period has ended. YouTube is neither obligated to announce breaking changes to these services nor to continue supporting them:\n\n### YouTube Data API, v2\n\n\u003cbr /\u003e\n\n- [Deprecation announcement](http://youtube-eng.blogspot.com/2014/03/committing-to-youtube-data-api-v3_4.html) (March 4, 2014)\n- [Documentation](/youtube/2.0/developers_guide_protocol)\n- Migration path: [YouTube Data API, v3](/youtube/v3/getting-started)\n\n\u003cbr /\u003e\n\n### YouTube Flash Player API\n\n\u003cbr /\u003e\n\n- [Deprecation announcement](http://youtube-eng.blogspot.com/2015/01/youtube-now-defaults-to-html5_27.html) (January 27, 2015)\n- Migration path: [IFrame Player API](/youtube/iframe_api_reference)\n\n\u003cbr /\u003e\n\n### YouTube JavaScript Player API\n\n\u003cbr /\u003e\n\n- [Deprecation announcement](http://youtube-eng.blogspot.com/2015/01/youtube-now-defaults-to-html5_27.html) (January 27, 2015)\n- Migration path: [IFrame Player API](/youtube/iframe_api_reference)\n\n\u003cbr /\u003e"]]