Call it
curl https://api.peume.com/v1/call/search-yandex-images-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"orientation": "your orientation",
"color": "your color"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yandex-images-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"orientation": "your orientation",
"color": "your color"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yandex-images-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"orientation": "your orientation",
"color": "your color"
}
},
)
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-yandex-images-2.
Parameters
orientationstringFiltering images by orientation. It can be set to: `horizontal` - Horizontal `vertical` - Vertical `square` - Square
colorstringFiltering images by color. It can be set to: `color` - Color images only `gray` - Black and white `red` - Red color `orange` - Orange color `yellow` - Yellow color `cyan` - Cyan color `green` - Green color `blue` - Blue color `violet` - Violet color `white` - White color `black` - Black color
family_modestringEnables or disables Family Mode (safe search). It can be set to: - Off(`0`) - Moderate(`1`) - Strict(`2`). It defaults to Moderate(`1`).
crop_idstringFilter results by a specific section of an image. Parameter will only work with images uploaded by Yandex (e.g. `). `crop` and `crop_id` parameters should not be used together.
urlstringThe URL for an image to perform the reverse image search.
pstringThe page number. Pagination starts from `0`, and it can return up to 30 results.
yandex_domainstringThe Yandex Images domain to use. It defaults to `yandex.com`. Head to the Yandex domains for a full list of supported Yandex domains.
sitestringFiltering images by their source. Example value: `www.shutterstock.com`.
tabstringThe specific tab for the reverse image search. Yandex defaults to the 'About the image' tab. It can be set to: `about` - 'About the image' tab results `similar` - 'Similar images' tab results.
file_typestringFiltering images by file type. It can be set to: `jpg` - JPG file extension `png` - PNG file extension `gifan` - GIF file extension
widthstringThe width of an image. It can only be used in combination with `height` parameter.
textstringThe search query. You can use anything that you would use in a regular Yandex Images search. It can be optional if the `url` parameter is being used.
recentstringShowing images that appeared in the last 7 days.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
cropstringCrop the image and perform the reverse search on the cropped part of the image. E.g. `0.04;0.46;0.27;0.84`. These coordinates are formatted in the next order: `left edge;top edge;right edge;bottom edge`. The minimum and maximum for each coordinate are `0` and `1`, respectively.
heightstringThe height of an image. It can only be used in combination with `width` parameter.
image_typestringFiltering images by image type. It can be set to: `photo` - Photograph `clipart` - White background `lineart` - Drawings and sketches `demotivator` - Demotivator `face` - People
