Call it
curl https://api.peume.com/v1/call/find-places-that-match-intents-near-a-location \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"categories": [
"Cappuccino"
],
"area_id": "New York",
"radius_km": 5,
"limit": 3
}
}'const res = await fetch("https://api.peume.com/v1/call/find-places-that-match-intents-near-a-location", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"categories": [
"Cappuccino"
],
"area_id": "New York",
"radius_km": 5,
"limit": 3
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/find-places-that-match-intents-near-a-location",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"categories": [
"Cappuccino"
],
"area_id": "New York",
"radius_km": 5,
"limit": 3
}
},
)
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: find-places-that-match-intents-near-a-location.
Parameters
categoriesRequiredarray1-5 category names or ids from.places.categories, most important first. A name must be exact; a near miss is refused with the close matches. Every result matches all of them; if none does, trailing ones are dropped (never the first) and dropped_categories names them.
Example: ["Cappuccino"]
area_idstringUp to 120 characters. An area id from.places.areas, or a city name such as "Austin" or "Boise, ID". Give this or lat and lon, not both.
Example: New York
latnumberWith lon (and optionally radius_km) instead of area_id.
lonnumberradius_kmnumberSearch radius around lat/lon in km, held to 0.2-50.
Example: 5
limitintegerPlaces to return.
Example: 3
place_typearrayWords matched as whole words against each place's Google place types, e.g. ["restaurant"]. Google's types are literal: for cafes pass ["cafe", "coffee"]. Use it for a kind of venue, not a dish or a feature.
