Call it
curl https://api.peume.com/v1/call/query-web-index \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/query-web-index", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/query-web-index",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q"
}
},
)
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: query-web-index.
Parameters
llstringThe anchor point for place results. It accepts `@lat,lng`, `@lat,lng,14z`, `@lat,lng,250m`, or `lat,lng`, and is only supported with `type=place`.
hlstringThe language as a two or three-letter language code, optionally followed by a region code (e.g., `en`, `fr`, `en-GB`). Web results are ranked with a preference for the language.
glstringThe country as a two-letter country code (e.g., `us` for the United States, `de` for Germany). Web results are ranked with a preference for the country. Product results are restricted to that market; without `gl`, products from all markets are searched.
product_sourcestringRestricts product results to one source. It is only supported with `type=product`.
numstringThe number of results to return. (default: `10`).
startstringThe result offset for pagination. (e.g., `0` (default) is the first page, `10` is the second page, etc.).
as_ylostringThe inclusive lower publication year. It must be a 4-digit year and is only supported with `type=publication`.
as_yhistringThe inclusive upper publication year. It must be a 4-digit year and is only supported with `type=publication`.
typestringThe result type. It can be set to `web` (default) to return organic results; typed results may also appear when typed mixing is enabled. Use `place`, `product`, `video`, or `publication` to request one typed corpus directly.
modestringThe search mode. Set to `deep` for expanded via parallel sub-query fan-out. Returns more diverse results by decomposing the query into multiple aspects.
qRequiredstringThe query you want to search.
safestringThe level of filtering for adult content. It can be set to `active` (default) or `off`.
radiusstringThe place search radius in kilometers. It must be greater than `0` and less than or equal to `20000`, and requires `ll`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
