I18nRegions
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
i18nRegion
資源會標示 YouTube 使用者可選取的偏好內容區域。內容區域也稱為內容語言代碼。在 YouTube 網站上,系統可根據 YouTube 網域或使用者的 IP 位置等推論法,自動選取內容區域。使用者也可以手動從 YouTube 網站頁尾選取所需的內容區域。
每個 i18nRegion
資源都會標示區域代碼和名稱。在呼叫 search.list
、videos.list
、activities.list
和 videoCategories.list
等 API 方法時,您可以使用區域代碼做為 regionCode
參數的值。
方法
這個 API 支援 i18nRegions
資源的下列方法:
- list
- 傳回 YouTube 網站支援的內容地區清單。立即試用。
資源表示法
以下 JSON 結構顯示 i18nRegions
資源的格式:
{
"kind": "youtube#i18nRegion",
"etag": etag,
"id": string,
"snippet": {
"gl": string,
"name": string
}
}
屬性
下表定義了這個資源中顯示的屬性:
屬性 |
kind |
string
識別 API 資源的類型。值為 youtube#i18nRegion 。 |
etag |
etag
這項資源的 Etag。 |
id |
string
YouTube 用來識別 i18n 區域的不重複 ID。 |
snippet |
object
snippet 物件包含 i18n 區域的基本詳細資料,例如區域代碼和名稱。 |
snippet.gl |
string
用於識別區域的兩個字母 ISO 國家/地區代碼。 |
snippet.name |
string
區域名稱。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-30 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-11-30 (世界標準時間)。"],[[["An i18nRegion resource specifies a geographic area that YouTube users can choose as their preferred content region."],["The i18nRegion includes a region code and a name, and the code can be used when calling API methods such as `search.list`."],["The YouTube API's `i18nRegions.list` method allows retrieval of a list of supported content regions."],["Each i18nRegion resource includes an `id`, `etag`, and `snippet` containing the region code (`gl`) and region `name`."]]],["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"]]