Call it
curl https://api.peume.com/v1/call/search-bing \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "bing",
"q": "pizza shops in New York",
"location": "New York, New York",
"lat": 40.7128,
"lon": -74.006,
"mkt": "en-US"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-bing", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "bing",
"q": "pizza shops in New York",
"location": "New York, New York",
"lat": 40.7128,
"lon": -74.006,
"mkt": "en-US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-bing",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "bing",
"q": "pizza shops in New York",
"location": "New York, New York",
"lat": 40.7128,
"lon": -74.006,
"mkt": "en-US"
}
},
)
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.
Parameters
enginestringSearch engine. Optional; the only accepted value is bing.
bing
Example: bing
qRequiredstringSearch query, up to 2,048 characters with no control characters. Bing search operators are preserved.
Example: pizza shops in New York
locationstringOptional city-level search origin, up to 256 characters.
Example: New York, New York
latnumberOptional search-origin latitude from -90 through 90. Independent of lon and location.
Example: 40.7128
lonnumberOptional search-origin longitude from -180 through 180. Independent of lat and location.
Example: -74.006
mktstringBing market in language-country form, such as en-US; case-insensitive. Mutually exclusive with cc.
Example: en-US
ccstringTwo-letter ISO country code of the search origin, such as US; case-insensitive. Mutually exclusive with mkt.
Example: US
firstintegerOne-based offset of the first organic result.
Example: 1
safeSearchstringAdult-content filtering: off, moderate, or strict. Case-insensitive.
off · moderate · strict
Example: moderate
filtersstringNative Bing display or date filters, up to 8,192 characters with no control characters.
Example: ex1:"ez5_20069_20433"
devicestringRequest profile: desktop, tablet, or mobile. Case-insensitive.
desktop · tablet · mobile
Example: desktop
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
Other ways to do it
Same job, other sources, cheapest first.
