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/callAu prix du fournisseur
- 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
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
sort | chaîne | Facultatif | Sort by latest or popular | latest |
handle | chaîne | Facultatif | YouTube channel handle | ThePatMcAfeeShow |
channelId | chaîne | Facultatif | YouTube channel ID | UC-9-kyTW8ZkZNDHQJ6FgpwQ |
includeExtras | chaîne | Facultatif | 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 | chaîne | Facultatif | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
is_paid_promotions | chaîne | Facultatif | 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 |
- Paramètres de requête
sortchaîneFacultatifSort by latest or popular
Exemple :
latesthandlechaîneFacultatifYouTube channel handle
Exemple :
ThePatMcAfeeShowchannelIdchaîneFacultatifYouTube channel ID
Exemple :
UC-9-kyTW8ZkZNDHQJ6FgpwQincludeExtraschaîneFacultatifThis 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...
Exemple :
falsecontinuationTokenchaîneFacultatifContinuation token to get more videos. Get 'continuationToken' from previous response.
Exemple :
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnBis_paid_promotionschaîneFacultatifSet 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,...
Exemple :
false
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.