List a YouTube channel's page sections
youtube.x.youtube-channelsections-listchannelSections.list — Retrieves a list of resources, possibly filtered.
- Price
- freeカタログ価格で提供
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/youtube.x.youtube-channelsections-listBeta- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
hl | 文字列 | 任意 | Return content in specified language | |
id | 文字列 | 任意 | Return the ChannelSections with the given IDs for Stubby or Apiary. | |
mine | 真偽値 | 任意 | Return the ChannelSections owned by the authenticated user. | |
part | 文字列 | 必須 | The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child prope | |
channelId | 文字列 | 任意 | Return the ChannelSections owned by the specified channel ID. | |
onBehalfOfContentOwner | 文字列 | 任意 | *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is inte | |
- クエリパラメータ
hl文字列任意Return content in specified language
id文字列任意Return the ChannelSections with the given IDs for Stubby or Apiary.
mine真偽値任意Return the ChannelSections owned by the authenticated user.
part文字列必須The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child prope
channelId文字列任意Return the ChannelSections owned by the specified channel ID.
onBehalfOfContentOwner文字列任意*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is inte
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.x.youtube-channelsections-list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/youtube.x.youtube-channelsections-list",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/youtube.x.youtube-channelsections-list", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。