Call it
curl https://api.peume.com/v1/call/youtube-list-a-channel-s-videos-via-its-uploads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"part": "snippet,contentDetails",
"playlistId": "UUX6OQ3DkcsbYNE6H8uQQuVA",
"maxResults": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/youtube-list-a-channel-s-videos-via-its-uploads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"part": "snippet,contentDetails",
"playlistId": "UUX6OQ3DkcsbYNE6H8uQQuVA",
"maxResults": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/youtube-list-a-channel-s-videos-via-its-uploads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"part": "snippet,contentDetails",
"playlistId": "UUX6OQ3DkcsbYNE6H8uQQuVA",
"maxResults": 50
}
},
)
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-list-a-channel-s-videos-via-its-uploads.
Parameters
partRequiredstringExample: snippet,contentDetails
playlistIdRequiredstringthe uploads playlist id — read it from youtube.channel.profile with part=contentDetails (contentDetails.relatedPlaylists.uploads); it is the channel id with UC… rewritten to UU…
Example: UUX6OQ3DkcsbYNE6H8uQQuVA
maxResultsinteger1–50, default 5
Example: 50
pageTokenstringOther ways to do it
Same job, other sources, cheapest first.
List 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.YouTube channel videos by channel idRetrieve public videos from a YouTube channel, with optional cursor-based pagination.
