Call it
curl https://api.peume.com/v1/call/google-get-related-images \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"related_content_id": "your related content id"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-get-related-images", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"related_content_id": "your related content id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-get-related-images",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"related_content_id": "your related content id"
}
},
)
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-get-related-images.
Parameters
qstringThe search query. To get the most precise results it is recommended to use the same query you used in the original Google Images search.
hlstringThe language to use for the Google Images search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
related_content_idRequiredstringThe unique ID for retrieving the Related Content of an image. You can acquire the ID by using our Google Images API.
glstringThe country to use for the Google Images search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France).
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
