हम Data API को अपडेट कर रहे हैं, ताकि यह Shorts पर मिले व्यू की गिनती करने के तरीके से मेल खा सके.
ज़्यादा जानें
ChannelSections
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
channelSection
संसाधन में,
ऐसे वीडियो जिन्हें किसी चैनल ने दिखाने के लिए चुना है. उदाहरण के लिए, कोई सेक्शन आपके चैनल के
नए अपलोड, सबसे लोकप्रिय अपलोड या एक या ज़्यादा प्लेलिस्ट के वीडियो.
कोई चैनल ज़्यादा से ज़्यादा 10 शेल्फ़ बना सकता है.
तरीके
एपीआई, channelSections
संसाधनों के लिए इन तरीकों के साथ काम करता है:
- list
- यह फ़ंक्शन, एपीआई अनुरोध की शर्तों से मेल खाने वाले
channelSection
संसाधनों की सूची दिखाता है.
इसे अभी आज़माएं.
- डालें
- पुष्टि किए गए उपयोगकर्ता के चैनल में चैनल का सेक्शन जोड़ता है. कोई चैनल ज़्यादा से ज़्यादा 10 शेल्फ़ बना सकता है.
इसे अभी आज़माएं.
- अपडेट करें
- चैनल के किसी सेक्शन को अपडेट करता है.
इसे अभी आज़माएं.
- मिटाएं
- चैनल के किसी सेक्शन को मिटा देता है.
इसे अभी आज़माएं.
प्रॉपर्टी
नीचे दी गई टेबल में, इस संसाधन में मौजूद प्रॉपर्टी के बारे में बताया गया है:
प्रॉपर्टी |
kind |
string
यह एपीआई संसाधन के टाइप की पहचान करता है. वैल्यू youtube#channelSection होगी. |
etag |
etag
इस संसाधन का इटैग. |
id |
string
वह आईडी जिसे YouTube, चैनल सेक्शन की खास तरह से पहचान करने के लिए इस्तेमाल करता है. |
snippet |
object
snippet ऑब्जेक्ट में, चैनल सेक्शन के बारे में बुनियादी जानकारी होती है. जैसे, चैनल का टाइप और टाइटल. |
snippet.type |
string
चैनल सेक्शन का टाइप.
इस प्रॉपर्टी के लिए मान्य वैल्यू ये हैं:
allPlaylists
completedEvents
liveEvents
multipleChannels
multiplePlaylists
popularUploads
recentUploads
singlePlaylist
subscriptions
upcomingEvents
|
snippet.channelId |
string
वह आईडी जिसका इस्तेमाल YouTube, चैनल सेक्शन को पब्लिश करने वाले चैनल की खास पहचान करने के लिए करता है. |
snippet.title |
string
सेक्शन का टाइटल. चैनल के सिर्फ़ उस सेक्शन का टाइटल सेट किया जा सकता है जिसकी snippet.type वैल्यू multiplePlaylists या multipleChannels है. असल में, आपको चैनल के ऐसे सेक्शन को शामिल या अपडेट करते समय कोई टाइटल बताना होगा. अगर आप चैनल के दूसरे तरह के सेक्शन के लिए शीर्षक तय करते हैं, तो इस मान को नज़रअंदाज़ कर दिया जाएगा.
इस प्रॉपर्टी के मान में ज़्यादा से ज़्यादा 100 वर्ण हो सकते हैं. साथ ही, इसमें < और < को छोड़कर बाकी सभी मान्य UTF-8 वर्ण शामिल हो सकते हैं. |
snippet.position |
unsigned integer
चैनल पेज पर सेक्शन की जगह. इस प्रॉपर्टी के लिए, 0-आधारित इंडेक्स का इस्तेमाल किया जाता है. 0 वैल्यू, चैनल पर दिखने वाले पहले सेक्शन की पहचान करती है. 1 वैल्यू दूसरे सेक्शन की पहचान करती है. इसी तरह आगे के चरण दिए जाते हैं.
चैनल सेक्शन शामिल करते समय, इस प्रॉपर्टी के लिए कोई वैल्यू तय न करने पर, डिफ़ॉल्ट रूप से नए सेक्शन को आखिर में दिखाया जाता है. |
contentDetails |
object
contentDetails ऑब्जेक्ट में, चैनल सेक्शन के कॉन्टेंट के बारे में जानकारी होती है. जैसे, सेक्शन में मौजूद प्लेलिस्ट या चैनलों की सूची. |
contentDetails.playlists[] |
list
एक या इससे ज़्यादा प्लेलिस्ट आईडी की सूची, जिन्हें चैनल के सेक्शन में दिखाया जाता है. अगर channelSection संसाधन की snippet.type प्रॉपर्टी singlePlaylist या multiplePlaylists है, तो आपको प्लेलिस्ट आईडी की सूची बनानी होगी. साथ ही, इस प्रॉपर्टी को दूसरी तरह के सेक्शन के लिए नहीं बताया जाना चाहिए. अगर टाइप singlePlaylist है, तो इस सूची में सिर्फ़ एक प्लेलिस्ट आईडी होना चाहिए. |
contentDetails.channels[] |
list
एक या इससे ज़्यादा चैनल आईडी की सूची, जिन्हें चैनल सेक्शन में दिखाया जाता है. अगर channelSection संसाधन की snippet.type प्रॉपर्टी multipleChannels है, तो आपको चैनल आईडी की एक सूची बतानी होगी. साथ ही, इस प्रॉपर्टी को दूसरी तरह के सेक्शन के लिए नहीं बताया जाना चाहिए. सूची में अपना चैनल शामिल नहीं किया जा सकता. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eA \u003ccode\u003echannelSection\u003c/code\u003e resource contains information about a set of videos that a channel features, such as latest uploads, popular uploads, or playlists.\u003c/p\u003e\n"],["\u003cp\u003eChannels can manage their featured videos using the API, which allows creating, listing, updating, and deleting \u003ccode\u003echannelSection\u003c/code\u003e resources.\u003c/p\u003e\n"],["\u003cp\u003eA channel can have a maximum of 10 sections, each with a specified type like \u003ccode\u003esinglePlaylist\u003c/code\u003e, \u003ccode\u003emultipleChannels\u003c/code\u003e, or \u003ccode\u003epopularUploads\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003echannelSection\u003c/code\u003e has properties such as \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003esnippet\u003c/code\u003e, and \u003ccode\u003econtentDetails\u003c/code\u003e, which specify details about the section and its contents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econtentDetails\u003c/code\u003e property can contain a list of either playlists or channels featured in the section, depending on the \u003ccode\u003esnippet.type\u003c/code\u003e property.\u003c/p\u003e\n"]]],["Channel sections feature a curated set of videos, like latest or popular uploads, or playlists. API methods allow listing, inserting, updating, and deleting these sections. A channel can have up to 10 sections. Each section contains `snippet` and `contentDetails` objects which describes the type, title, position, and the featured channels/playlists. The type can be single or multiple playlists, or channels, amongst others. Specific titles are required for some types and cannot include \"\u003c\" or \"\u003e\".\n"],null,["# ChannelSections\n\nA **channelSection** resource contains information about a set of\nvideos that a channel has chosen to feature. For example, a section could feature a channel's\nlatest uploads, most popular uploads, or videos from one or more playlists. \n\n\nA channel can create a maximum of 10 shelves.\n\nMethods\n-------\n\nThe API supports the following methods for `channelSections` resources:\n\n[list](/youtube/v3/docs/channelSections/list)\n: Returns a list of `channelSection` resources that match the API request criteria.\n [Try it now](/youtube/v3/docs/channelSections/list#usage).\n\n[insert](/youtube/v3/docs/channelSections/insert)\n: Adds a channel section to the authenticated user's channel. A channel can create a maximum of 10 shelves.\n [Try it now](/youtube/v3/docs/channelSections/insert#usage).\n\n[update](/youtube/v3/docs/channelSections/update)\n: Updates a channel section.\n [Try it now](/youtube/v3/docs/channelSections/update#usage).\n\n[delete](/youtube/v3/docs/channelSections/delete)\n: Deletes a channel section.\n [Try it now](/youtube/v3/docs/channelSections/delete#usage).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `channelSections` resource: \n\n```carbon\n{\n \"#kind\": \"youtube#channelSection\",\n \"#etag\": etag,\n \"#id\": string,\n \"#snippet\": {\n \"#snippet.type\": string,\n \"#snippet.channelId\": string,\n \"#snippet.title\": string,\n \"#snippet.position\": unsigned integer\n },\n \"#contentDetails\": {\n \"#contentDetails.playlists[]\": [\n string\n ],\n \"#contentDetails.channels[]\": [\n string\n ]\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#channelSection`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube uses to uniquely identify the channel section. |\n| `snippet` | `object` The `snippet` object contains basic details about the channel section, such as its type and title. |\n| snippet.`type` | `string` The channel section's type. Valid values for this property are: - `allPlaylists` - `completedEvents` - `liveEvents` - `multipleChannels` - `multiplePlaylists` - `popularUploads` - `recentUploads` - `singlePlaylist` - `subscriptions` - `upcomingEvents` |\n| snippet.`channelId` | `string` The ID that YouTube uses to uniquely identify the channel that published the channel section. |\n| snippet.`title` | `string` The section's title. You can only set the title of a channel section that has a `snippet.type` value of either `multiplePlaylists` or `multipleChannels`, and, in fact, you must specify a title when inserting or updating either of those types of sections. If you specify a title for other types of channel sections, the value will be ignored. This property's value has a maximum length of 100 characters and may contain all valid UTF-8 characters except **\\\u003c** and **\\\u003e**. |\n| snippet.`position` | `unsigned integer` The section's position on the channel page. This property uses a 0-based index. A value of `0` identifies the first section that appears on the channel, a value of `1` identifies the second section, and so forth. If you do not specify a value for this property when inserting a channel section, the default behavior is to display the new section last. |\n| `contentDetails` | `object` The `contentDetails` object contains details about the channel section's content, such as a list of playlists or channels featured in the section. |\n| contentDetails.`playlists[]` | `list` A list of one or more playlist IDs that are featured in a channel section. You must specify a list of playlist IDs if the `channelSection` resource's `snippet.type` property is either `singlePlaylist` or `multiplePlaylists`, and this property should not be specified for other types of sections. If the type is `singlePlaylist`, this list must specify exactly one playlist ID. |\n| contentDetails.`channels[]` | `list` A list of one or more channel IDs that are featured in a channel section. You must specify a list of channel IDs if the `channelSection` resource's `snippet.type` property is `multipleChannels`, and this property should not be specified for other types of sections. You cannot include your own channel in the list. |"]]