Call it
curl https://api.peume.com/v1/call/search-bing-maps \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee Austin Texas",
"cp": "30.2672~-97.7431",
"setlang": "en-US",
"first": 0,
"count": 30
}
}'const res = await fetch("https://api.peume.com/v1/call/search-bing-maps", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee Austin Texas",
"cp": "30.2672~-97.7431",
"setlang": "en-US",
"first": 0,
"count": 30
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-bing-maps",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee Austin Texas",
"cp": "30.2672~-97.7431",
"setlang": "en-US",
"first": 0,
"count": 30
}
},
)
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-maps.
Parameters
qstringSearch query, up to 2,048 characters. Required unless place_id is present.
Example: coffee Austin Texas
cpstringMap center in latitude~longitude form.
Example: 30.2672~-97.7431
setlangstringBing Maps interface language, such as en-US; up to 16 characters.
Example: en-US
place_idstringBing Maps place identifier from a listing row's place_id, up to 256 characters. Required unless q is present.
firstintegerListing offset from 0 through 10,000.
Example: 0
countintegerNumber of listings, 1 through 30.
Example: 30
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.
