SuperAPI AI 工具集

apify-yandex-image-search-api

编程与开发

查看项目

更新于 10-15 19:57

技能介绍

用途:通过 Apify 的 Yandex 图片垂直搜索 Actor(johnvc/Scrape-Yandex)以编程方式搜索 Yandex 图片,获取原图全尺寸 URL 而非缩略图,适合按主题、颜色、方向或精确尺寸采集图片数据集,或限定某站点、仅取近期图片。不适用于反向图片搜索、Google 图片或普通网页结果。

主要能力:每个数据集条目对应一页图片结果,标记 item_type 为 image_search,内含约 30 行的 image_results 数组,每行含 original(全尺寸图片 URL)、link(托管页面)、thumbnail、title、source、size、snippet、position;条目还带 total_results_found、page_number、pages_processed 等分页元数据。

使用方式:需 Apify 账号,通过 apify login 或 APIFY_TOKEN 环境变量认证。基本调用:apify actors call "johnvc/Scrape-Yandex" -i '{"text":"aurora borealis","include_image_search":true,"include_organic_results":false,"max_pages":2}' --json --user-agent apify-awesome-skills/apify-yandex-image-search-api 2>/dev/null。可加 image_type、image_color、image_orientation、image_file_type、image_width/image_height、image_site、image_recent 等筛选,并用 yandex_domain、lang、lr 定位市场。text 为必填,需将 include_image_search 设为 true。也可通过 MCP 服务器 https://mcp.apify.com/?tools=actors,docs,johnvc/Scrape-Yandex 在 AI 代理中调用。运行后读取默认数据集,过滤 item_type = "image_search",再读取嵌套的 image_results 数组。

限制:计费为每次运行的小额启动费加按页费用,成本大致与 max_pages 成正比,默认两页费用远低于一美元,具体价格见资料中的 references/gotchas.md。结果 URL 指向第三方图片文件,可能失效,需在许可允许时自行持久化;版权合规由使用者负责,Actor 不检查使用权限;严格组合筛选可能返回很少或零结果。若没有图片行,确认 include_image_search 为 true 并读取嵌套数组;结果过少可逐个放宽筛选;市场不符可同时设置 yandex_domain、lang、lr。