API Reference
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توفر Google عدة أدوات تساعدك في تطوير تطبيقات لاسترداد بيانات YouTube Analytics.
- يجب أن تستخدم التطبيقات واجهة برمجة التطبيقات لإعداد التقارير في YouTube إذا كانت تسترد البيانات وتخزنها في مستودع بيانات، ثم توفر أدوات لفلترة تلك البيانات وفرزها واستخراجها.
- يجب أن تستخدم التطبيقات واجهة برمجة تطبيقات YouTube Analytics لاسترداد التقارير المخصصة من YouTube استجابةً لتفاعل المستخدم.
الأدوات |
مستكشف واجهات برمجة التطبيقات |
يمكنك استخدام مستكشف واجهات برمجة التطبيقات لاختبار طلبات بحث واجهة برمجة التطبيقات وتصحيح أخطائها. تتيح لك الأداة تفويض الطلبات والاطّلاع على ردود واجهة برمجة التطبيقات.
- بالنسبة إلى التقارير المجمّعة، تحدد بعض ردود واجهة برمجة التطبيقات عناوين URL يمكنك من خلالها استرداد التقارير الفعلية.
- بالنسبة إلى تقارير طلبات البحث المستهدفة، تحتوي استجابات واجهة برمجة التطبيقات على بيانات فعلية من YouTube Analytics.
|
مكتبات العملاء |
يمكن لمكتبات عميل واجهة برمجة تطبيقات Google، المتوفرة للعديد من لغات البرمجة، أن تبسط تنفيذ واجهة برمجة التطبيقات بدرجة كبيرة. إضافةً إلى ذلك، يوفّر قسم النماذج من المستندات عددًا من نماذج الرموز التي تستخدم مكتبات العملاء لاسترداد بيانات YouTube Analytics.
تشير الروابط أدناه إلى وثائق لمكتبات عملاء Google API:
|
نماذج الرموز |
يتضمّن مستودع GitHub في youtube/api-samples كل نماذج الرموز التي يمكن الوصول إليها من خلال علامة التبويب النماذج. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eGoogle offers tools to facilitate the development of applications that access YouTube Analytics data.\u003c/p\u003e\n"],["\u003cp\u003eThe YouTube Reporting API is designed for applications that store and analyze large amounts of data.\u003c/p\u003e\n"],["\u003cp\u003eThe YouTube Analytics API is for applications retrieving customized reports from YouTube in response to user actions.\u003c/p\u003e\n"],["\u003cp\u003eThe APIs Explorer allows users to test, debug API queries, authorize requests, and view API responses.\u003c/p\u003e\n"],["\u003cp\u003eGoogle API client libraries and code samples simplify API implementation, available for various languages like Go, Java, JavaScript, .NET, PHP, Python, and Ruby.\u003c/p\u003e\n"]]],["Google offers tools for developing applications that access YouTube Analytics data. Use the YouTube Reporting API for data warehousing and bulk processing. Utilize the YouTube Analytics API to create customized reports in response to user actions. APIs Explorer allows testing and debugging queries, while client libraries in multiple languages simplify API implementation. Code samples, found in the documentation and the youtube/api-samples GitHub repository, demonstrate how to retrieve analytics data using the libraries.\n"],null,["# API Reference\n\nGoogle provides several tools to help you develop applications that retrieve YouTube Analytics data.\n\n- Applications should use the YouTube Reporting API if they retrieve data and store it in a data warehouse, then provide tools to filter, sort, and mine that data.\n- Applications should use the YouTube Analytics API to retrieve customized reports from YouTube in response to user interaction.\n\n| Tools ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| APIs Explorer | You can use the APIs Explorer to test and debug API queries. The tool enables you to authorize requests and see API responses. - For [bulk reports](https://developers.google.com/apis-explorer/#p/youtubereporting/v1/), some API responses specify URLs from which you can retrieve the actual reports. - For [targeted query reports](https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/), API responses contain actual YouTube Analytics data. |\n| Client libraries | Google API client libraries, which are available for many programming languages, can greatly simplify your API implementation. In addition, the [Samples](/youtube/reporting/v1/code_samples) section of the documentation provides a number of code samples that use the client libraries to retrieve YouTube Analytics data. The links below point to documentation for Google API client libraries: - [Go](https://github.com/google/google-api-go-client) - [Java](/api-client-library/java) - [JavaScript](/api-client-library/javascript/start/start-js) - [.NET](/api-client-library/dotnet/get_started) - [PHP](/api-client-library/php) - [Python](/api-client-library/python) - [Ruby](/api-client-library/ruby/start/get_started) |\n| Code samples | The [youtube/api-samples](https://github.com/youtube/api-samples) GitHub repository contains all of the [code samples](https://developers.google.com/youtube/reporting/v1/code_samples/) accessible via the **Samples** tab. |"]]