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
地域を識別する 2 文字の ISO 国コード。 |
snippet.name |
string
リージョンの名前。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-30 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"]],["最終更新日 2024-11-30 UTC。"],[[["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`."]]],[]]