Call it
curl https://api.peume.com/v1/call/search-duckduckgo-maps \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "coffee",
"bbox": "30.35,-97.90,30.10,-97.50",
"lat": 30.2672,
"lon": -97.7431,
"strict_bbox": true
}
}'const res = await fetch("https://api.peume.com/v1/call/search-duckduckgo-maps", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "coffee",
"bbox": "30.35,-97.90,30.10,-97.50",
"lat": 30.2672,
"lon": -97.7431,
"strict_bbox": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-duckduckgo-maps",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "coffee",
"bbox": "30.35,-97.90,30.10,-97.50",
"lat": 30.2672,
"lon": -97.7431,
"strict_bbox": True
}
},
)
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-duckduckgo-maps.
Parameters
qRequiredstringPlace or category query, 1 to 500 characters.
Example: coffee
bboxstringMap rectangle as top,left,bottom,right (latitude,longitude of the top-left corner, then of the bottom-right corner); must not wrap the antimeridian. Use instead of lat/lon; one of the two is required.
Example: 30.35,-97.90,30.10,-97.50
latnumberMap center latitude from -90 through 90. Requires lon; use instead of bbox.
Example: 30.2672
lonnumberMap center longitude from -180 through 180. Requires lat; use instead of bbox.
Example: -97.7431
strict_bboxbooleanExclude results outside the requested bounds.
Example: true
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.
