Call it
curl https://api.peume.com/v1/call/list-youtube-channel-videos \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"handle": "your handle",
"includeExtras": "your includeExtras"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-youtube-channel-videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"handle": "your handle",
"includeExtras": "your includeExtras"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-youtube-channel-videos",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"handle": "your handle",
"includeExtras": "your includeExtras"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: list-youtube-channel-videos.
Parameters
handlestringYouTube channel handle
includeExtrasstringThis will get you the like + comment count and the description. To get the full details of the video, use the /youtube/video endpoint. Honestly, if you use this param, the error rate is higher. We might deprecate this param in the future.
sortstringSort by latest or popular
latest · popular
channelIdstringYouTube channel ID
continuationTokenstringContinuation token to get more videos. Get 'continuationToken' from previous response.
