Call it
curl https://api.peume.com/v1/call/search-yandex-by-image \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image_url": "your image url",
"include_matching_pages": true,
"include_similar_images": true,
"include_image_sizes": false,
"include_image_tags": false,
"include_shopping_results": false
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yandex-by-image", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"image_url": "your image url",
"include_matching_pages": true,
"include_similar_images": true,
"include_image_sizes": false,
"include_image_tags": false,
"include_shopping_results": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yandex-by-image",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"image_url": "your image url",
"include_matching_pages": True,
"include_similar_images": True,
"include_image_sizes": False,
"include_image_tags": False,
"include_shopping_results": False
}
},
)
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-by-image.
Parameters
image_urlRequiredstringProvide the public http(s) URL of the image to search by. Yandex fetches this URL, so it must be reachable from the internet (no localhost or private links). Example: `
cropstringOptionally crop the image before searching, as four ';'-separated fractions between 0 and 1 in the order left;top;right;bottom. Example: `0.1;0.2;0.9;0.8` searches only the middle of the image. Leave blank to search the whole image - do NOT put the image URL here.
include_matching_pagesbooleanReturn pages where this image (or a close match) appears online, with page title, link, and snippet. Rows with result_type 'matching_page'. On by default.
Example: true
include_similar_imagesbooleanReturn visually similar images from across the web. Each row carries a thumbnail, the full-size image URL, and the site hosting it. Yandex returns no page title or snippet for this result type, so those columns stay empty. Rows with result_type 'similar_image'. On by default.
Example: true
include_image_sizesbooleanReturn other resolutions of the same image, categorized large / medium / small. Rows with result_type 'image_size'. Off by default.
Example: false
include_image_tagsbooleanReturn suggested search terms describing what is in the image. Rows with result_type 'image_tag'. Off by default.
Example: false
include_shopping_resultsbooleanReturn e-commerce products that match the image content, with prices where available. Yandex only fills this section for a minority of images, so many searches return no product rows at all. Rows with result_type 'shopping_result'. Off by default.
Example: false
include_knowledge_graphbooleanReturn the entity card when the image contains a recognizable subject (a person, landmark, product, or brand). One row with result_type 'knowledge_graph'. Off by default.
Example: false
yandex_domainstringThe regional Yandex domain to search from. Defaults to 'yandex.com'. Results can differ by region.
yandex.com · yandex.ru · yandex.by · yandex.kz · yandex.uz · yandex.com.tr
Example: yandex.com
max_resultsintegerCap the total number of result rows returned by this run. Results are sold in blocks of 10: the minimum is 10, and any other value rounds up to the next multiple of 10 (15 becomes 20). Every search bills at least one block, and each further block of up to 10 rows bills in full even when Yandex fills only part of it, so ask for what you need. There is no unlimited setting; use a large value such as 500 to collect everything the search finds. Rows fill in section order (matching pages, similar images, other sizes, image tags, shopping matches, knowledge graph), so a low cap combined with several
Example: 50
