Call it
curl https://api.peume.com/v1/call/web-search \
-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", {
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",
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.
Parameters
queryRequiredstringSearch query. Accepts natural language as well as Google-style operators: site:, -site:, inurl:, intitle:, quoted phrases, OR. Ask about ONE entity or case per call, in a few words — long multi-keyword or multi-entity queries drift off topic. site: keeps the results on one domain; quoted phrases and a name, employer or handle in plain words do not restrict them.
numResultsintegerNumber of results to request and return (1-100, default 10). This is also what sizes the admission hold — one credit per 10 results, plus one per result when Markdown is enabled.
includeDomainsarrayAllowlist — only return results from these domains. The reliable way to keep results on a known official site (a company's own domain, a docs host).
excludeDomainsarrayBlocklist — drop results from these domains.
freshnessstringRestrict results to content published within this window.
last_24_hours · last_week · last_month · last_year
countrystringTwo-letter ISO 3166-1 alpha-2 country code (e.g. 'us', 'gb', 'de'). Must be one of supported countries.
languagesstringOnly return results in these languages — BCP 47 codes such as ['en', 'de'] — or 'all' (default).
descriptionMaxCharactersintegerTruncate each result's description to this many characters.
queryFanoutbooleanAccepted for compatibility; currently ignores it, so it does not change the results.
markdownOptionsobjectInline Markdown scraping for each result. Set enabled: true to activate.
timeoutMSintegerUpstream deadline in milliseconds (1000-110000). stops the call when it passes; the cap leaves the run time to return the answer within the endpoint's budget.
