Call it
curl https://api.peume.com/v1/call/google-list-hotel-photos \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"property_token": "your property token"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-list-hotel-photos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"property_token": "your property token"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-list-hotel-photos",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"property_token": "your property token"
}
},
)
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: google-list-hotel-photos.
Parameters
next_page_tokenstringThe next page token needed to retrieve the next batch of photos of a particular section.
property_tokenRequiredstringUnique identifier used to identify a Google Property. You can find `property_token` from Google Hotels Properties API.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
