Call it
curl https://api.peume.com/v1/call/list-yahoo-trends \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"next_page_token": "your next page token",
"full_video_links": "your full video links"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-yahoo-trends", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"next_page_token": "your next page token",
"full_video_links": "your full video links"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-yahoo-trends",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"next_page_token": "your next page token",
"full_video_links": "your full video links"
}
},
)
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-yahoo-trends.
Parameters
next_page_tokenstringThe next page token. It is used for retrieving the next page of results. Leave it unset for the first page. Up to `100` results are returned per page; Yahoo! may return fewer. The next page token can be found in the JSON response: `pagination -> next_page_token`. It is only present while more results are available.
full_video_linksstringWhether to include playable video links. It can be set to `true` to include a `full_video_link` for each topic video, or `false` (default) to skip them. Enabling it performs an additional request to Yahoo!, which may increase the search response time. Full video links expire after one hour. To retrieve fresh links, run a new search with the `no_cache` parameter enabled.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
