Call it
curl https://api.peume.com/v1/call/search-the-web-with-fetched-page-content \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "example pricing",
"numResults": 3,
"format": "markdown",
"allowedTypes": [
"text/html"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-web-with-fetched-page-content", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "example pricing",
"numResults": 3,
"format": "markdown",
"allowedTypes": [
"text/html"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-web-with-fetched-page-content",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "example pricing",
"numResults": 3,
"format": "markdown",
"allowedTypes": [
"text/html"
]
}
},
)
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-the-web-with-fetched-page-content.
Parameters
queryRequiredstringExample: example pricing
numResultsintegerExample: 3
formatRequiredstringmarkdown
Example: markdown
timeRangestringpast_hour · past_24_hours · past_week · past_month · past_year
locationGeoCodestringISO 3166-1 alpha-2 country code.
allowedTypesRequiredarrayExample: ["text/html"]
Other ways to do it
Same job, other sources.
Search the webBest sourceSearch the open web by meaning or keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Search the web by query — ranked pages and highlightsSearch the live web for ranked pages, highlights, and optional full page content.Search the web with BraveSearch Brave's independent web index for ranked pages and rich results.Search the web with rich resultsWeb search plus a rich block: follow-up questions, related queries, an entity card, videos, news and discussions.Web search engine results for a query: title, URL, snippetLive web search across several engines, ranked and cleaned: each result has a title, URL and snippet. When the live web returns fewer than 10 results, results from the index fill tSearch the open webSearch the web by keyword or meaning, with domain, language and date filters and a target country.
