Call it
curl https://api.peume.com/v1/call/list-youtube-comments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"startUrls": [
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
],
"maxComments": 100,
"sortCommentsBy": "NEWEST_FIRST",
"oldestCommentDate": "2026-03-01"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-youtube-comments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"startUrls": [
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
],
"maxComments": 100,
"sortCommentsBy": "NEWEST_FIRST",
"oldestCommentDate": "2026-03-01"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-youtube-comments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"startUrls": [
{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
],
"maxComments": 100,
"sortCommentsBy": "NEWEST_FIRST",
"oldestCommentDate": "2026-03-01"
}
},
)
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-comments.
Parameters
startUrlsRequiredarrayEnter a link to a specific Youtube video <a href='https://www.youtube.com/watch?v=xObhZ0Ga7EQ' target='_blank' rel='noopener'>YouTube video</a>. You can also import a CSV file or Google Sheet with a list of URLs.<br>
Example: [{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}]
maxCommentsintegerLimit the number of comments you want to scrape per video.
Example: 100
sortCommentsBystringSelect Youtube sorting parameter for comments
TOP_COMMENTS · NEWEST_FIRST
Example: NEWEST_FIRST
oldestCommentDatestringOnly comments published after or on this date will be scraped. Alternatively, specify how old the scraped comments should be. Putting <code>1 day</code> will get you only today's comments, <code>2 days</code> - yesterday's and today's, and so on. Note, that if you select this, sorting parameter will be auto-reset to newest first
Example: 2026-03-01
