YouTube channel videos by id or username — views, dates
scrapecreators.x.v1-youtube-channel-videosFetches a paginated list of videos uploaded by a YouTube channel, including each video's title, URL, thumbnail, view count (views), publish date, duration, and description.
- Price
- $0.00188/callPelo preço do provedor
- Success rate
- 99,1%Last 30 days · 27.283 calls
- Latency p50
- 5.5 sp95 9.4 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-channel-videos?channelId=UC-9-kyTW8ZkZNDHQJ6FgpwQPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
sort | string | Opcional | Sort by latest or popular | latest |
handle | string | Opcional | YouTube channel handle | ThePatMcAfeeShow |
channelId | string | Opcional | YouTube channel ID | UC-9-kyTW8ZkZNDHQJ6FgpwQ |
includeExtras | string | Opcional | This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. Honestly, if you use this param, the error rate is higher. We might deprecate t... | false |
continuationToken | string | Opcional | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
is_paid_promotions | string | Opcional | Set to 'true' to search YouTube's public paid product placement / sponsorship / endorsement search surface. This returns normal YouTube videos where the creator declared paid promotion. Cannot be combined with filter,... | false |
- Parâmetros de consulta
sortstringOpcionalSort by latest or popular
Exemplo:
latesthandlestringOpcionalYouTube channel handle
Exemplo:
ThePatMcAfeeShowchannelIdstringOpcionalYouTube channel ID
Exemplo:
UC-9-kyTW8ZkZNDHQJ6FgpwQincludeExtrasstringOpcionalThis will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. Honestly, if you use this param, the error rate is higher. We might deprecate t...
Exemplo:
falsecontinuationTokenstringOpcionalContinuation token to get more videos. Get 'continuationToken' from previous response.
Exemplo:
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnBis_paid_promotionsstringOpcionalSet to 'true' to search YouTube's public paid product placement / sponsorship / endorsement search surface. This returns normal YouTube videos where the creator declared paid promotion. Cannot be combined with filter,...
Exemplo:
false
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-channel-videos?channelId=UC-9-kyTW8ZkZNDHQJ6FgpwQ' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-channel-videos?channelId=UC-9-kyTW8ZkZNDHQJ6FgpwQ",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-channel-videos?channelId=UC-9-kyTW8ZkZNDHQJ6FgpwQ", {
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.