Call it
curl https://api.peume.com/v1/call/search-bing-places \
-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/search-bing-places", {
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/search-bing-places",
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: search-bing-places.
Parameters
qRequiredstringThe search query. You can use anything that you would use in a regular Bing Maps search.
countstringControls the number of results per page. This parameter is only a suggestion and might not reflect the returned results. Maximum results per page is `25`
setlangstringThe language to search with. It follows the 2-character ISO_3166-1 format. (e.g., `us` for United States, `de` for Germany, `gb` for United Kingdom, etc.). You can view all supported language codes on Bing Maps.
cpstringGPS coordinates of location where you want your `q` (query) to be applied. It has to be constructed in the next sequence: `latitude` + `~` + `longitude` This will form a string that looks like this: e.g. `40.7455096~-74.0083012`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
place_idstringThe unique reference to a place on a Bing Map. Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. You can find the `place_id` using our Bing Maps API and Bing Local Pack API. `place_id` can be used without any other optional parameter including `q` parameter.
firststringControls the offset of the local results. This parameter defaults to `0`. (e.g. When `count=10`, the second page result start from `first=10`).
