Call it
curl https://api.peume.com/v1/call/youtube-channel-videos-by-channel-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"language_code": "en-US"
}
}'const res = await fetch("https://api.peume.com/v1/call/youtube-channel-videos-by-channel-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"language_code": "en-US"
}
}),
});
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",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"language_code": "en-US"
}
},
)
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.
Parameters
channel_idRequiredstringUC… channel id
Example: UCX6OQ3DkcsbYNE6H8uQQuVA
language_codestringdefault zh-CN
Example: en-US
country_codestringdefault US
continuation_tokenstringneed_formatbooleanOther 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 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.
