Call it
curl https://api.peume.com/v1/call/get-google-maps-photo-metadata \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL",
"hl": "en",
"gl": "us",
"google_domain": "google.com"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-google-maps-photo-metadata", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL",
"hl": "en",
"gl": "us",
"google_domain": "google.com"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-google-maps-photo-metadata",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"data_id": "CIABIhAAQr6KrxiC_knILBjf2RxL",
"hl": "en",
"gl": "us",
"google_domain": "google.com"
}
},
)
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: get-google-maps-photo-metadata.
Parameters
data_idRequiredstringRequired Google Maps photo ID. Follow a photo_meta_link from a Google Maps place response or copy the nested photo data_id.
Example: CIABIhAAQr6KrxiC_knILBjf2RxL
hlstringLanguage code such as en, en-GB, or de.
Example: en
glstringTwo-letter country code used to localize results.
Example: us
google_domainstringGoogle domain used for the request.
Example: google.com
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.
