Call it
curl https://api.peume.com/v1/call/search-live-web \
-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-live-web", {
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-live-web",
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-live-web.
Parameters
queryRequiredstringThe search query.
search_depthstringLatency vs relevance: 'basic' (default), 'fast', 'ultra-fast' (one credit each) or 'advanced' (highest relevance, two credits — see the price card).
basic · advanced · fast · ultra-fast
chunks_per_sourceintegerMax relevant snippets per result in `content` (1-3, default 3).
max_resultsintegerMax results to return (0-20, default 10).
topicstringSearch category (default 'general'); 'news' for current events.
general · news · finance
time_rangestringKeep results published or updated within this window.
day · week · month · year · d · w · m · y
start_datestringResults published or updated after this date (YYYY-MM-DD).
end_datestringResults published or updated before this date (YYYY-MM-DD).
include_published_datebooleanAdd each result's estimated `published_date` (on for 'news').
filter_by_published_datebooleanDrop results outside the date window, and results with no detectable date.
max_age_hoursintegerMax age of cached page copy: 1-720 hours, 0 = always fetch live, -1 = never fetch live. Same price either way.
include_answerstringAdd an LLM-written answer to the query: true / 'basic' (quick) or 'advanced' (detailed). No extra charge.
include_raw_contentstringAdd each result's full page content: true / 'markdown' or 'text'. No extra charge; responses grow large.
include_imagesbooleanAdd query-related images and per-result images.
include_image_descriptionsbooleanWith include_images, add a description to each image.
include_faviconbooleanAdd each result's favicon URL.
include_domainsarrayDomains to restrict (or prefer) results to; max 300.
exclude_domainsarrayDomains to exclude from results; max 150.
include_domains_modestring'restrict' (default) keeps only include_domains; 'prefer' ranks them first but searches the rest of the web too.
restrict · prefer
countrystringBoost results from this country (lowercase English name, e.g. 'united states'). Topic 'general' only.
afghanistan · albania · algeria · andorra · angola · argentina · armenia · australia · austria · azerbaijan · bahamas · bahrain …
languagestringBoost results in this language: ISO 639-1 code ('en', 'zh-cn') or English name ('french').
filter_by_languagebooleanDrop results not in `language` instead of only boosting.
exact_matchbooleanOnly results containing the quoted phrase(s) in the query.
safe_searchbooleanFilter adult or unsafe content (not with 'fast' / 'ultra-fast').
