Call it
curl https://api.peume.com/v1/call/search-bing-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q",
"timeout": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/search-bing-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q",
"timeout": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-bing-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q",
"timeout": 50
}
},
)
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-bing-2.
Parameters
enginestringSelects the Bing web-search engine; 'bing' is the only value.
qRequiredstringSearch query, 1-2,048 characters. Bing syntax such as quoted phrases and exclusions works.
locationstringNamed city-level origin used to localize the request.
latnumberLatitude of the search origin.
lonnumberLongitude of the search origin.
mktstringLanguage-country market such as 'en-US'. Cannot be combined with cc.
ccstringTwo-letter country of origin such as 'US'. Cannot be combined with mkt.
firstintegerOne-based offset of the first organic result. Default 1.
safeSearchstringAdult-content policy. Default 'moderate'.
off · moderate · strict
filtersstringNative Bing display or date filter expression.
devicestringDevice layout Bing renders. Default 'desktop'.
desktop · tablet · mobile
timeoutnumberSeconds may spend before giving up (max 50, default 50). A timed-out call is not billed.
Example: 50
