Call it
curl https://api.peume.com/v1/call/search-apple-places \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-apple-places", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-apple-places",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query"
}
},
)
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-apple-places.
Parameters
queryRequiredstringThe query you want to search. You can use anything that you would use in a regular Apple Maps search.
centerstringCoordinates of the center point of the region you want to search within. You can pass the coordinates as `latitude,longitude`. (e.g. `30.324639,-97.7304611` for Austin, TX). Either a `center` or a `location` parameter is required. These parameters can't be used together.
togglesstringThe toggle options for the search. A comma separated list of toggle `key` values can be passed to this parameter. See the `refinements.toggles` object of the response to see available toggles for a search.
locationstringThe GPS coordinates used for the search origin. (e.g. `Austin, Texas, United States`). Either a `center` or a `location` parameter is required. These parameters can't be used together.
sortstringThe sorting refinement for the search. Can be one of the following: `distance` - Sort by distance from the `center`/`location`. `ratings` - Sort by result ratings. `default` - Sort by best match for your query. This is the default.
multi_select_optionsstringThe options you want to filter by for multi select refinements. A comma separated list of toggle `key` values can be passed to this parameter. See the `refinement.multi_select.<type>.options` object of the response to see available multi select refinements for the search.
localestringThe locale the results should be localized for. Locales for Apple Maps are represented as `<LANGUAGE>-<REGION>`. (defaults to `en-US`, the locale for U.S. English). Head to Apple Maps Locales for the list of available locales.
open_atstringThe time at which result locations should be open at. The value must be a Unix timestamp that is in the future, and no more than 24 hours from the current time. (e.g. `1796194947`).
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
spanstringWidth and height of the search region as `latitudeDelta,longitudeDelta`. Smaller delta values correspond to a higher zoom level. (defaults to `0.5,0.5`).
