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。
[null,null,["最終更新日 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`."]]],["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"]]