हम Data API को अपडेट कर रहे हैं, ताकि यह Shorts पर मिले व्यू की गिनती करने के तरीके से मेल खा सके.
ज़्यादा जानें
I18nRegions
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
i18nRegion
रिसॉर्स से किसी भौगोलिक इलाके की पहचान होती है. YouTube का कोई उपयोगकर्ता, कॉन्टेंट के लिए अपने पसंदीदा इलाके के तौर पर इस इलाके को चुन सकता है. कॉन्टेंट के क्षेत्र को कॉन्टेंट लोकेल भी कहा जा सकता है. YouTube की वेबसाइट के लिए, कॉन्टेंट का क्षेत्र अपने-आप चुना जा सकता है. यह क्षेत्र, YouTube डोमेन या उपयोगकर्ता की आईपी लोकेशन जैसे हेयुरिस्टिक्स के आधार पर चुना जाता है. उपयोगकर्ता, YouTube साइट के फ़ुटर से भी कॉन्टेंट के लिए मनमुताबिक क्षेत्र को मैन्युअल तरीके से चुन सकता है.
हर i18nRegion
संसाधन, क्षेत्र के कोड और नाम की पहचान करता है. search.list
, videos.list
, activities.list
, और videoCategories.list
जैसे एपीआई तरीकों को कॉल करते समय, क्षेत्र कोड का इस्तेमाल regionCode
पैरामीटर की वैल्यू के तौर पर किया जा सकता है.
तरीके
एपीआई, i18nRegions
संसाधनों के लिए इन तरीकों का इस्तेमाल करता है:
- list
- इससे उन देशों/इलाकों की सूची मिलती है जहां YouTube वेबसाइट काम करती है.
इसे अभी आज़माएं.
संसाधन का प्रतिनिधित्व
यहां दिया गया JSON स्ट्रक्चर, i18nRegions
संसाधन का फ़ॉर्मैट दिखाता है:
{
"kind": "youtube#i18nRegion",
"etag": etag,
"id": string,
"snippet": {
"gl": string,
"name": string
}
}
प्रॉपर्टी
इस टेबल में, इस संसाधन में दिखने वाली प्रॉपर्टी के बारे में बताया गया है:
प्रॉपर्टी |
kind |
string
एपीआई संसाधन के टाइप की पहचान करता है. वैल्यू youtube#i18nRegion होगी. |
etag |
etag
इस संसाधन का Etag. |
id |
string
यह आईडी, i18n क्षेत्र की खास तौर पर पहचान करने के लिए YouTube का इस्तेमाल करता है. |
snippet |
object
snippet ऑब्जेक्ट में, i18n क्षेत्र की बुनियादी जानकारी होती है. जैसे, क्षेत्र का कोड और नाम. |
snippet.gl |
string
आईएसओ के हिसाब से, देश का दो अक्षरों वाला कोड, जो इलाके की पहचान करता है. |
snippet.name |
string
इलाके का नाम. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eAn i18nRegion resource specifies a geographic area that YouTube users can choose as their preferred content region.\u003c/p\u003e\n"],["\u003cp\u003eThe i18nRegion includes a region code and a name, and the code can be used when calling API methods such as \u003ccode\u003esearch.list\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe YouTube API's \u003ccode\u003ei18nRegions.list\u003c/code\u003e method allows retrieval of a list of supported content regions.\u003c/p\u003e\n"],["\u003cp\u003eEach i18nRegion resource includes an \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003esnippet\u003c/code\u003e containing the region code (\u003ccode\u003egl\u003c/code\u003e) and region \u003ccode\u003ename\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `i18nRegion` resource represents a YouTube content region, selectable by users or automatically determined. Each resource has a unique ID, region code, and name. The region code is usable in API methods like `search.list`. The resource can be retrieved via the `i18nRegions.list` method, which provides the supported content regions. The resource's properties include `kind` (`youtube#i18nRegion`), `etag`, `id`, and a `snippet` object containing the region's code (`gl`) and name.\n"],null,["# I18nRegions\n\nAn **i18nRegion** resource identifies a geographic area that a YouTube user can select as the preferred content region. The content region can also be referred to as a content locale. For the YouTube website, a content region could be automatically selected based on heuristics like the YouTube domain or the user's IP location. A user could also manually select the desired content region from the YouTube site footer. \n\nEach `i18nRegion` resource identifies a region code and a name. The region code can be used as the value of the `regionCode` parameter when calling API methods like `search.list`, `videos.list`, `activities.list`, and `videoCategories.list`.\n\nMethods\n-------\n\nThe API supports the following methods for `i18nRegions` resources:\n\n[list](/youtube/v3/docs/i18nRegions/list)\n: Returns a list of content regions that the YouTube website supports.\n [Try it now](/youtube/v3/docs/i18nRegions/list#usage).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `i18nRegions` resource: \n\n```text\n{\n \"kind\": \"youtube#i18nRegion\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"gl\": string,\n \"name\": string\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#i18nRegion`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube uses to uniquely identify the i18n region. |\n| `snippet` | `object` The `snippet` object contains basic details about the i18n region, such as its region code and name. |\n| snippet.`gl` | `string` The two-letter ISO country code that identifies the region. |\n| snippet.`name` | `string` The name of the region. |"]]