Call it
curl https://api.peume.com/v1/call/youtube-channel-videos-by-channel-id-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"channelId": "your channelId"
}
}'const res = await fetch("https://api.peume.com/v1/call/youtube-channel-videos-by-channel-id-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"channelId": "your channelId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/youtube-channel-videos-by-channel-id-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"channelId": "your channelId"
}
},
)
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: youtube-channel-videos-by-channel-id-2.
Parameters
channelIdRequiredstringThe unique identifier for a YouTube channel.
cursorstringThe cursor for pagination.
Other ways to do it
Same job, other sources, cheapest first.
List a channel's videos via its uploads playlist idList a channel's uploaded videos cheaply, via its uploads playlistList a channel's videosBest sourceList a channel's videos. Checks the cheapest source first and moves to the next one until it finds an answer.A YouTube channel's latest videosList the latest videos of a YouTube channel, newest first, with title, link, publish time, views and thumbnail.YouTube channel videos by channel idVideos of a YouTube channel by channel idYouTube channel videos by id or username — views, datesFetches 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.
