Call it
curl https://api.peume.com/v1/call/get-youtube-video-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hl": "your hl",
"next_page_token": "your next page token"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-youtube-video-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hl": "your hl",
"next_page_token": "your next page token"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-youtube-video-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hl": "your hl",
"next_page_token": "your next page token"
}
},
)
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: get-youtube-video-3.
Parameters
hlstringThe language to use for the Youtube video. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
next_page_tokenstringThe next page token. It is used for retrieving the next page results for related videos, comments or replies. It should be one of - `related_videos_next_page_token` - `comments_next_page_token` - `comments_sorting_token.token` - `replies_next_page_token` from the search results.
glstringThe country to use for the YouTube video. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France)
vstringThe Video ID.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
