Call it
curl https://api.peume.com/v1/call/search-the-open-web-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "example API documentation",
"mode": "pro",
"site": "docs.example.ai",
"acquired_after": "7d",
"published_after": "30d",
"snippet_max_length": 500
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-open-web-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "example API documentation",
"mode": "pro",
"site": "docs.example.ai",
"acquired_after": "7d",
"published_after": "30d",
"snippet_max_length": 500
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-open-web-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "example API documentation",
"mode": "pro",
"site": "docs.example.ai",
"acquired_after": "7d",
"published_after": "30d",
"snippet_max_length": 500
}
},
)
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-open-web-3.
Parameters
queryRequiredstringExample: example API documentation
modestringpro performs deeper retrieval; realtime returns faster. The response echoes the mode actually used.
pro · realtime
Example: pro
sitestringRestrict results to one domain.
Example: docs.example.ai
acquired_afterstringRFC 3339 date, ISO 8601 timestamp, or relative delta such as 7d, 30min, 2h, 6mo, or 1y.
Example: 7d
acquired_beforestringRFC 3339 date, ISO 8601 timestamp, or relative delta. A bare date includes that full UTC day.
published_afterstringRFC 3339 date, ISO 8601 timestamp, or relative delta.
Example: 30d
published_beforestringRFC 3339 date, ISO 8601 timestamp, or relative delta. A bare date includes that full UTC day.
query_timestringSearch the index as it existed at this date or timestamp; relative filters are rebased to it.
snippet_max_lengthintegerExample: 500
max_resultsintegerExample: 10
Other ways to do it
Same job, other sources.
