Call it
curl https://api.peume.com/v1/call/web-search-4 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/web-search-4", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/web-search-4",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword"
}
},
)
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: web-search-4.
Parameters
countrystringSets a country or region preference for search results using a code such as us. It affects geographic relevance, not the calling server's location, and does not guarantee that every result is located in that country.
limitintegerMaximum number of results, 1 to 10. For some actions it counts pages or items per parent rather than final rows.
languagestringSets the search interface and result-language preference, such as en or zh-cn. It does not translate the returned page content.
keywordRequiredstringSpecifies the web search query expression. Returns result titles, URLs, and snippets; it does not fetch the full page content of the search results or filter by platform name.
