Call it
curl https://api.peume.com/v1/call/search-news-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-news-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-news-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query"
}
},
)
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: search-news-3.
Parameters
queryRequiredstringThe search query.
max_resultsintegerResults to return (1-50, default 5).
crawl_resultsintegerFetch the full page content of this many top results in the same call (0-50, default 0; at most max_results). Each page that comes back adds the per-page price.
imagebooleanAlso return an `images` array (default false).
include_sitesarrayOnly return articles from these outlets, e.g. ['reuters.com']; a subdomain counts. Set search_service to bing, duckduckgo or yahoo with it: those search inside the list. With no search_service, or with google, the search is not limited to the list and drops every other row, which usually leaves none; the number dropped is reported as filteredOutResults.
exclude_sitesarrayDrop results from these domains (subdomains included).
languagestringResult language code, e.g. 'en', 'zh-CN', 'fr'. There is no country parameter.
time_rangestringOnly results from the last day, week, month, or year.
· day · week · month · year
search_servicestringNews source: google, bing, duckduckgo, yahoo, hackernews, or reuters. Omit to query several and their rankings.
· google · bing · duckduckgo · yahoo · hackernews · reuters
