कोड नमूने
यहां दी गई सूचियों में, YouTube Analytics API और YouTube Reporting API के लिए उपलब्ध कोड सैंपल की जानकारी दी गई है. आप इन सैंपल को GitHub की रिपॉज़िटरी से भी डाउनलोड कर सकते हैं.
Java
बल्क डेटा रिपोर्ट (YouTube Reporting API)
- रिपोर्टिंग जॉब बनाएं (
reportTypes.list
, jobs.create
)
- रिपोर्ट फिर से पाएं (
jobs.list
, jobs.reports.list
)
JavaScript
क्वेरी रिपोर्ट (YouTube Analytics API)
- चैनल के हर दिन के आंकड़े फिर से पाएं (
reports.query
)
PHP
बल्क डेटा रिपोर्ट (YouTube Reporting API)
- रिपोर्टिंग जॉब बनाना (
reportTypes.list
, jobs.create
)
- रिपोर्ट वापस पाना (
jobs.list
, jobs.reports.list
)
Python
बल्क डेटा रिपोर्ट (YouTube Reporting API)
- रिपोर्टिंग जॉब बनाएं (
reportTypes.list
, jobs.create
)
- रिपोर्ट वापस पाना (
jobs.list
, jobs.reports.list
)
क्वेरी रिपोर्ट (YouTube Analytics API)
- चैनल के हर दिन के आंकड़े फिर से पाएं (
reports.query
)
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-04 (UTC) को अपडेट किया गया."],[[["This page lists available code samples for the YouTube Analytics API and YouTube Reporting API, which can also be downloaded from the linked GitHub repository."],["Code examples for creating reporting jobs and retrieving reports using the YouTube Reporting API are available in Java, PHP, and Python."],["JavaScript and Python code samples are provided for querying and retrieving daily channel statistics through the YouTube Analytics API."],["The code samples provided in Java, PHP, and Python are used to list the available report types, as well as creating, and listing jobs and their reports."]]],["Code samples for YouTube's Analytics and Reporting APIs are available on GitHub. For the Reporting API, Java, PHP, and Python samples demonstrate creating reporting jobs using `reportTypes.list` and `jobs.create`, and retrieving reports using `jobs.list` and `jobs.reports.list`. For the Analytics API, JavaScript and Python examples illustrate retrieving daily channel statistics via `reports.query`.\n"]]