การดาวน์โหลดไลบรารีของไคลเอ็นต์ ตัวอย่างโค้ด และบทแนะนำ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ไลบรารีของไคลเอ็นต์ Google Data พร้อมให้ใช้งานเพื่อช่วยคุณเขียนแอปพลิเคชันไคลเอ็นต์ที่ใช้ YouTube Data API
ไลบรารีของไคลเอ็นต์มีให้บริการสำหรับ Java, .NET, PHP, Python และ Objective-C ไลบรารีของไคลเอ็นต์แต่ละภาษาจะมีเครื่องมือและเลเยอร์การแยกความคิด ซึ่งช่วยให้คุณสร้างการค้นหาและใช้ข้อมูลการตอบกลับได้โดยไม่ต้องสร้างคำขอ HTTP หรือประมวลผลการตอบกลับ HTTP ด้วยตนเอง ไลบรารีของไคลเอ็นต์แต่ละรายการจะมีคลาสที่สอดคล้องกับองค์ประกอบและประเภทข้อมูลที่ API ใช้ ไลบรารีของไคลเอ็นต์แต่ละรายการยังมีส่วนขยายสำหรับบริการของ Google บางรายการที่มี Data API ด้วย
หน้านี้มีลิงก์ไปยังเอกสารประกอบและบทแนะนำ การดาวน์โหลด และโค้ดตัวอย่างที่พร้อมให้นักพัฒนาแอปพลิเคชันไคลเอ็นต์เขียนโดยใช้ภาษาใดก็ได้ที่ระบุไว้ข้างต้น รวมถึงลิงก์ไปยังเอกสารอื่นๆ และโค้ดตัวอย่างที่อธิบายวิธีเพิ่มฟังก์ชันการทำงานของ API ลงในเว็บไซต์โดยใช้ JavaScript สุดท้าย หน้านี้จะแสดงแหล่งข้อมูลเพิ่มเติมที่ไม่ได้เจาะจงภาษาใดภาษาหนึ่ง
ไลบรารีไคลเอ็นต์
Java
ไลบรารีของไคลเอ็นต์ Java มาจาก Google
เอกสารประกอบ
|
รายการที่ดาวน์โหลด
|
โค้ดตัวอย่าง
|
.NET
ไลบรารีไคลเอ็นต์ .NET มาจาก Google และช่วยให้พัฒนาแอปพลิเคชันบนเดสก์ท็อป เว็บ และอุปกรณ์เคลื่อนที่ได้
เอกสารประกอบ
|
รายการที่ดาวน์โหลด
|
โค้ดตัวอย่าง
|
PHP
ไลบรารีของไคลเอ็นต์ PHP มาจาก Google
เอกสารประกอบ
|
|
โค้ดตัวอย่าง
|
Python
ไลบรารีของไคลเอ็นต์ Python มาจาก Google
เอกสารประกอบ
|
รายการที่ดาวน์โหลด
|
โค้ดตัวอย่าง
|
ไลบรารีของไคลเอ็นต์ Objective-C
ไลบรารีไคลเอ็นต์ Objective-C มาจาก Google
JavaScript (JSON)
เอกสารประกอบ
|
โค้ดตัวอย่าง
|
กลับไปด้านบน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eGoogle provides client libraries for Java, .NET, PHP, Python, and Objective-C to simplify interaction with the YouTube Data API.\u003c/p\u003e\n"],["\u003cp\u003eThese libraries offer tools and abstraction layers, eliminating the need for manual HTTP request handling.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access documentation, tutorials, downloads, and sample code for each supported language.\u003c/p\u003e\n"],["\u003cp\u003eResources are also available for incorporating YouTube Data API functionality using JavaScript.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive guides and examples are provided for both the YouTube Data API and the YouTube Analytics API.\u003c/p\u003e\n"]]],["Google offers client libraries for Java, .NET, PHP, Python, and Objective-C to facilitate client application development using the YouTube Data API. These libraries provide tools, abstraction layers, and classes to simplify query construction and response handling. Resources include documentation, tutorials, downloads, and sample code for each language, including specific examples for the YouTube Data API and YouTube Analytics API. JavaScript resources are also available. The provided links help developers add API functionality to their site.\n"],null,["# Client Library Downloads, Sample Code and Tutorials\n\nGoogle Data client libraries are available to help you write client applications that use the YouTube Data API.\n\nClient libraries are available for Java, .NET, PHP, Python and Objective-C. For each language, the client library provides tools and an abstraction layer, letting you construct queries and use response data without having to create HTTP requests or process HTTP responses by hand. Each client library provides classes that correspond to the elements and data types that the API uses. Each client library also provides extensions for specific Google services that have Data APIs.\n\nThis page provides links to the documentation and tutorials, downloads and sample code available to help developes write client applications using any of the languages listed above. It also links to other documents and sample code explaining how to add API functionality to your site using JavaScript. Finally, this page lists additional resources that are not specific to a particular language.\n\nClient Libraries\n----------------\n\n### Java\n\nThe Java client library is provided by Google.\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| **Documentation** - [Getting Started Guide](/api-client-library/java) - [Reference Guide](/api-client-library/java/google-api-java-client/reference/1.20.0) (Javadoc) - [Setup Instructions](/api-client-library/java/google-api-java-client/setup) | **Downloads** - [Project main page](/api-client-library/java/google-api-java-client/download) |\n| **Sample code** - [YouTube Data API code samples](/youtube/v3/code_samples/java) - [YouTube Analytics API code samples](/youtube/analytics/v1/code_samples/java) ||\n\n### .NET\n\nThe .NET client library is provided by Google and allows desktop, web and mobile application development.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Documentation** - [Getting Started Guide](/api-client-library/dotnet/get_started) - [Reference Guide](/api-client-library/dotnet/release_notes) (NDoc) | **Downloads** - [Supported APIs](/api-client-library/dotnet/apis) - [Downloads page](https://www.nuget.org/packages?q=Google.Apis.youtube&prerelease=true&sortOrder=relevance) |\n| **Sample code** - [YouTube Data API code samples](/youtube/v3/code_samples/dotnet) ||\n\n### PHP\n\nThe PHP client library is provided by Google.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| **Documentation** - [Getting Started Guide](/api-client-library/php/start/get_started) - [Install the Library](/api-client-library/php/start/installation) | |\n| **Sample code** - [YouTube Data API code samples](/youtube/v3/code_samples/php) - [YouTube Analytics API code samples](/youtube/analytics/v1/code_samples/php) ||\n\n### Python\n\nThe Python client library is provided by Google.\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| **Documentation** - [Getting Started Guide](/api-client-library/python/start/get_started) - [Reference Guide](/api-client-library/python/reference/pydoc) (pyDocs) | **Downloads** - [Installation guide and sample downloads](/api-client-library/python/start/installation) |\n| **Sample code** - [API client library samples](/api-client-library/python/samples/samples) - [YouTube Data API code samples](/youtube/v3/code_samples/python) - [YouTube Analytics API code samples](/youtube/analytics/v1/code_samples/python) ||\n\n### Objective-C client library\n\nThe Objective-C client library is provided by Google.\n\n|---------------------------------------------------------------------------------------------------------------|\n| **Downloads** - [Project main page](https://github.com/google/google-api-objectivec-client-for-rest) (GitHub) |\n\n### JavaScript (JSON)\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Documentation** - [API Client library](/api-client-library/javascript/start/start-js) |\n| **Sample code** - [YouTube Data API code samples](/youtube/v3/code_samples/javascript) - [YouTube Analytics API code samples](/youtube/analytics/v1/code_samples/javascript) |\n\n[Back to top](#top)"]]