Call it
curl https://api.peume.com/v1/call/list-a-youtube-playlist-s-cover-images \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxResults": 10,
"onBehalfOfContentOwner": "your onBehalfOfContentOwner"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-a-youtube-playlist-s-cover-images", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"maxResults": 10,
"onBehalfOfContentOwner": "your onBehalfOfContentOwner"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-a-youtube-playlist-s-cover-images",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxResults": 10,
"onBehalfOfContentOwner": "your onBehalfOfContentOwner"
}
},
)
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-a-youtube-playlist-s-cover-images.
Parameters
maxResultsintegerThe *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
onBehalfOfContentOwnerstring*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is inte
onBehalfOfContentOwnerChannelstringThis parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required whe
pageTokenstringThe *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
parentstringReturn PlaylistImages for this playlist id.
partstringThe *part* parameter specifies a comma-separated list of one or more playlistImage resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response.
