Call it
curl https://api.peume.com/v1/call/web-search-2 \
-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/web-search-2", {
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/web-search-2",
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: web-search-2.
Parameters
queryRequiredstringSearch query. Accepts natural language and still honours site:/-site: operators, though include_domains / exclude_domains are preferred because they do not collide with other query syntax. Example: 'NVIDIA Q4 FY2025 revenue'.
purposestringOptional short statement of the task these results are for — the goal behind the request, not the request itself. uses it as an extra ranking signal. Example: 'Compare pricing tiers across vendors for a procurement report'. Max 2000 characters.
locationstringCountry code for geo-targeted results. Example: US, GB, FR, DE. Auto-resolves from `language` when omitted; defaults to US if neither is set.
languagestringLanguage code for result language. Example: en, fr, de. Auto-resolves from `location` when omitted; defaults to en if neither is set.
include_domainsstringComma-separated domains to restrict results to. Example: github.com,arxiv.org.
exclude_domainsstringComma-separated domains to exclude from results. Example: pinterest.com,quora.com.
recency_minutesintegerFreshness window in minutes, relative to now. Example: 60 for the last hour. Cannot be combined with after_date or before_date, and is not supported for domain_type=research_paper.
after_datestringLower calendar bound, YYYY-MM-DD. Example: 2026-06-01. Cannot be combined with recency_minutes, and is not supported for domain_type=research_paper.
before_datestringUpper calendar bound, YYYY-MM-DD. Example: 2026-06-18. Cannot be combined with recency_minutes, and is not supported for domain_type=research_paper.
domain_typestringCorpus to search. 'web' (default) returns general results; 'news' adds publisher and date; 'research_paper' searches academic work and adds authors, venue, year, cited_by_count, and pdf_url.
web · news · research_paper
pub_year_minintegerInclusive lower publication-year bound. Only supported for domain_type=research_paper. Example: 2017.
pub_year_maxintegerInclusive upper publication-year bound. Only supported for domain_type=research_paper. Example: 2024.
pageintegerZero-indexed result page. Example: 2 returns the third page. Maximum 10.
