YouTube Reporting API
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
YouTube Reporting API की मदद से, डेवलपर रिपोर्टिंग जॉब शेड्यूल कर सकते हैं. इसके बाद, जनरेट की गई एक साथ कई रिपोर्ट डाउनलोड कर सकते हैं. यह API, पहले से तैयार रिपोर्ट के सेट के साथ काम करता है. इनमें से हर रिपोर्ट में, किसी चैनल या कॉन्टेंट के मालिक के लिए YouTube Analytics का पूरा डेटा होता है.
रिपोर्टिंग जॉब शेड्यूल करने और रिपोर्ट वापस पाने का तरीका यहां बताया गया है:
reportTypes.list()
तरीके को कॉल करके, उन रिपोर्ट की सूची पाएं जिन्हें चैनल या कॉन्टेंट का मालिक ऐक्सेस कर सकता है. - किसी चैनल या कॉन्टेंट के मालिक के लिए जनरेट की जाने वाली रिपोर्ट की पहचान करने के लिए,
jobs.create()
तरीके को कॉल करें. इसके बाद, जनरेट की जा रही रिपोर्ट की सूची को वापस पाने या बदलने के लिए, एपीआई के jobs.list()
और jobs.delete()
का इस्तेमाल किया जा सकता है. - किसी खास नौकरी के लिए जनरेट की गई रिपोर्ट की सूची देखने के लिए,
jobs.reports.list()
तरीके को कॉल करें. रिस्पॉन्स में मौजूद हर रिसॉर्स में एक downloadUrl
प्रॉपर्टी होती है. इससे उस यूआरएल की जानकारी मिलती है जिससे रिपोर्ट डाउनलोड की जा सकती है. - डाउनलोड किए गए यूआरएल से रिपोर्ट वापस पाने के लिए, अनुमति वाला
GET
अनुरोध भेजें.
अनुमति देना
YouTube Reporting API के सभी अनुरोधों को स्वीकार किया जाना चाहिए. अनुमति से जुड़ी गाइड में, ऑथराइज़ेशन टोकन पाने के लिए OAuth 2.0 प्रोटोकॉल का इस्तेमाल करने का तरीका बताया गया है.
YouTube Reporting API के अनुरोध, अनुमति के इन दायरों का इस्तेमाल करते हैं:
स्कोप |
https://www.googleapis.com/auth/yt-analytics.readonly |
अपने YouTube कॉन्टेंट के लिए YouTube Analytics की रिपोर्ट देखें. इस स्कोप से, उपयोगकर्ता गतिविधि की मेट्रिक का ऐक्सेस मिलता है. जैसे, व्यू की संख्या और रेटिंग की संख्या. |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
अपने YouTube वीडियो से होने वाली आय की जानकारी देने वाली YouTube Analytics रिपोर्ट देखें. इस स्कोप में, उपयोगकर्ता गतिविधि की मेट्रिक के साथ-साथ, अनुमानित रेवेन्यू और विज्ञापन की परफ़ॉर्मेंस की मेट्रिक का ऐक्सेस मिलता है. |
संसाधन के टाइप
नीचे दिए गए सेक्शन में, एपीआई के संसाधनों और तरीकों के बारे में सामान्य जानकारी दी गई है. टेबल में दिखाए गए सभी यूआरआई, https://youtubereporting.googleapis.com
से जुड़े हुए हैं.
तरीके |
create |
POST /v1/jobs
रिपोर्टिंग जॉब बनाता है. रिपोर्टिंग जॉब बनाकर, YouTube को उस रिपोर्ट को रोज़ जनरेट करने का निर्देश दिया जाता है. रिपोर्ट, जॉब बनाने के 24 घंटे के अंदर उपलब्ध हो जाती है. |
delete |
DELETE /v1/jobs/{jobId}
रिपोर्टिंग जॉब मिटाता है. |
get |
GET /v1/jobs/{jobId}
किसी चैनल या कॉन्टेंट के मालिक के लिए शेड्यूल की गई, रिपोर्टिंग से जुड़ी किसी खास जॉब के बारे में जानकारी दिखाता है. |
list |
GET /v1/jobs
किसी चैनल या कॉन्टेंट के मालिक के लिए शेड्यूल की गई रिपोर्टिंग जॉब की सूची दिखाता है. रिस्पॉन्स में मौजूद हर रिसॉर्स में एक id प्रॉपर्टी होती है. इसमें वह आईडी होता है जिसका इस्तेमाल YouTube, जॉब की खास पहचान करने के लिए करता है. आपको उस आईडी की ज़रूरत है, ताकि नौकरी के लिए जनरेट की गई रिपोर्ट की सूची वापस पाई जा सके या नौकरी को मिटाया जा सके. |
तरीके |
get |
GET /v1/jobs/{jobId}/reports/{reportId}
किसी खास रिपोर्ट का मेटाडेटा दिखाता है. |
list |
GET /v1/jobs/{jobId}/reports
रिपोर्टिंग जॉब के लिए जनरेट की गई रिपोर्ट की सूची दिखाता है. |
तरीके |
list |
GET /v1/reportTypes
उन रिपोर्ट टाइप की सूची दिखाता है जिन्हें चैनल या कॉन्टेंट का मालिक ऐक्सेस कर सकता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe YouTube Reporting API allows developers to schedule and download bulk reports containing comprehensive YouTube Analytics data for channels or content owners.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the API to retrieve a list of available reports, create jobs to generate reports, and manage these jobs through listing and deletion.\u003c/p\u003e\n"],["\u003cp\u003eGenerated reports can be downloaded via a specified URL obtained from the API's response, after retrieving them by using the \u003ccode\u003ejobs.reports.list()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires OAuth 2.0 authorization, and provides scopes for viewing user activity metrics (\u003ccode\u003ehttps://www.googleapis.com/auth/yt-analytics.readonly\u003c/code\u003e) and monetary reports (\u003ccode\u003ehttps://www.googleapis.com/auth/yt-analytics-monetary.readonly\u003c/code\u003e).\u003c/p\u003e\n"]]],["Developers use the YouTube Reporting API to schedule and download bulk reports containing YouTube Analytics data. Key actions include: listing available report types via `reportTypes.list()`, creating reporting jobs with `jobs.create()`, and managing jobs using `jobs.list()` and `jobs.delete()`. To get data, retrieve generated reports for a specific job with `jobs.reports.list()`, each with a downloadable URL. Finally, you can request the download using the given URL. All actions require authorization via OAuth 2.0.\n"],null,["# YouTube Reporting API\n\nThe YouTube Reporting API enables developers to schedule reporting jobs and then download generated bulk reports. The API supports a predefined set of reports, each of which contains a comprehensive set of YouTube Analytics data for a channel or content owner.\n\nThe steps below explain how to schedule reporting jobs and retrieve reports:\n\n1. Call the [reportTypes.list()](/youtube/reporting/v1/reference/rest/v1/reportTypes/list) method to retrieve a list of reports that a channel or content owner can retrieve.\n2. Call the [jobs.create()](/youtube/reporting/v1/reference/rest/v1/jobs/create) method to identify a report that should be generated for a channel or content owner. You can subsequently use the API's [jobs.list()](/youtube/reporting/v1/reference/rest/v1/jobs/list) and [jobs.delete()](/youtube/reporting/v1/reference/rest/v1/jobs/delete) to retrieve or change the list of reports being generated.\n3. Call the [jobs.reports.list()](/youtube/reporting/v1/reference/rest/v1/jobs.reports/list) method to retrieve a list of reports that have been generated for a particular job. Each resource in the response contains a [downloadUrl](/youtube/reporting/v1/reference/rest/v1/jobs.reports#downloadUrl) property that specifies the URL from which the report can be downloaded.\n4. Send an authorized `GET` request to retrieve the report from the download URL.\n\n\u003cbr /\u003e\n\nAuthorization\n-------------\n\nAll YouTube Reporting API requests must be authorized. The [Authorization guide](/youtube/reporting/guides/authorization) explains how to use the OAuth 2.0 protocol to retrieve authorization tokens.\n\nYouTube Reporting API requests use the following authorization scopes:\n\n| Scopes ||\n|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| https://www.googleapis.com/auth/yt-analytics.readonly | View YouTube Analytics reports for your YouTube content. This scope provides access to user activity metrics, like view counts and rating counts. |\n| https://www.googleapis.com/auth/yt-analytics-monetary.readonly | View YouTube Analytics monetary reports for your YouTube content. This scope provides access to user activity metrics and to estimated revenue and ad performance metrics. |\n\nResource types\n--------------\n\nThe following sections provide general descriptions of the API's resources and methods. All method URIs shown in the tables are relative to `https://youtubereporting.googleapis.com`.\n\n### [jobs](/youtube/reporting/v1/reference/rest/v1/jobs)\n\n| Methods ||\n|---------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/youtube/reporting/v1/reference/rest/v1/jobs/create) | `POST /v1/jobs` Creates a reporting job. By creating a reporting job, you are instructing YouTube to generate that report on a daily basis. The report is available within 24 hours of the time that the job is created. |\n| [delete](/youtube/reporting/v1/reference/rest/v1/jobs/delete) | `DELETE /v1/jobs/{jobId}` Deletes a reporting job. |\n| [get](/youtube/reporting/v1/reference/rest/v1/jobs/get) | `GET /v1/jobs/{jobId}` Retrieves information about a specific reporting job that has been scheduled for a channel or content owner. |\n| [list](/youtube/reporting/v1/reference/rest/v1/jobs/list) | `GET /v1/jobs` Lists reporting jobs that have been scheduled for a channel or content owner. Each resource in the response contains an `id` property, which specifies the ID that YouTube uses to uniquely identify the job. You need that ID to retrieve the list of reports that have been generated for the job or to delete the job. |\n\n### [jobs.reports](/youtube/reporting/v1/reference/rest/v1/jobs.reports)\n\n| Methods ||\n|-------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [get](/youtube/reporting/v1/reference/rest/v1/jobs.reports/get) | `GET /v1/jobs/{jobId}/reports/{reportId}` Retrieves the metadata for a specific report. |\n| [list](/youtube/reporting/v1/reference/rest/v1/jobs.reports/list) | `GET /v1/jobs/{jobId}/reports` Lists reports that have been generated for the specified reporting job. |\n\n### [reportTypes](/youtube/reporting/v1/reference/rest/v1/reportTypes)\n\n| Methods ||\n|------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [list](/youtube/reporting/v1/reference/rest/v1/reportTypes/list) | `GET /v1/reportTypes` Returns a list of report types that the channel or content owner can retrieve. |"]]