google-image-api-skill
它能做什么
该技能从 Google 图片搜索结果中提取结构化图片数据。适用于需要查看视觉案例或建立图片集的设计师、研究人员和营销人员。
适用场景
- ✓当你想为某个关键词收集图片,以查看视觉风格时。
- ✓当你需要查看竞争对手在某个国家使用的产品照片时。
- ✓当你正在为研究建立图片数据集时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/search-research/google-image-api-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请收集英国“极简厨房设计”的 50 条 Google 图片搜索结果,并附上图片详情。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能将你的关键词、国家、语言、滚动深度和结果数量限制发送给 BrowserAct 模板。模板读取 Google 图片搜索结果,并以结构化形式返回图片元数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Image API Automation Skill
📖 Introduction
This skill provides users with one-click image data extraction directly from Google Images using the BrowserAct Google Image API template. It allows you to search with keywords, set country and language, control scroll depth and result limits, returning clean, structured image metadata directly via API.
✨ Features
- No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
- No CAPTCHA issues: No need to deal with reCAPTCHA or other verification challenges.
- No IP restrictions or geo-blocking: No need to handle regional IP limitations.
- Agile execution speed: Faster task execution compared to pure AI-driven browser automation solutions.
- High cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of tokens.
🔑 API Key Guide
Before running, you must check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any further action; you should request and wait for the user to provide it collaboratively.
The Agent must inform the user at this point:
"Since you haven't configured the BrowserAct API Key yet, please go to the BrowserAct Console to get your Key first."
🛠️ Input Parameters
The Agent should flexibly configure the following parameters according to user needs when calling the script:
KeyWords (Search keywords)
- Type:
string - Description: Search keywords used on Google Images.
- Example:
flower,ai agent,tesla
- Type:
Country (Country or region bias)
- Type:
string - Description: Country or region bias for results.
- Supported values:
us,gb,ca,au,de,fr,es,jp,kr - Default:
us
- Type:
Language (UI language)
- Type:
string - Description: UI language for the Google Images session and returned text.
- Supported values:
en,zh-CN,zh-TW,ja,ko,fr,de,es - Default:
en
- Type:
Scroll_count (Number of scroll actions)
- Type:
number - Description: Number of scroll actions to load more image results.
- Default:
5
- Type:
Datelimit (Maximum items)
- Type:
number - Description: Maximum number of items to extract from the results list.
- Default:
50
- Type:
🚀 Invocation (Recommended)
The Agent should execute the following independent script to achieve "results with one command":
# Example invocation
python -u ./scripts/google_image_api.py "KeyWords" "Country" "Language" Scroll_count Datelimit
⏳ Execution Status Monitoring
Since this task involves automated browser operations, it may take a considerable amount of time (several minutes). The script will continuously output status logs with timestamps while running (e.g., [14:30:05] Task Status: running).
Agent Notice:
- While waiting for the script to return results, please keep an eye on the terminal output.
- As long as the terminal is outputting new status logs, it means the task is running normally; do not mistake it for a deadlock or unresponsiveness.
- If the status remains unchanged for a long time or the script stops outputting without returning a result, then consider triggering the retry mechanism.
📊 Data Output
After successful execution, the script will parse and print the results directly from the API response. The results include:
is_product: Whether the result is detected as a product-style listinglink: Click-through URL associated with the resulttitle: Image result title or caption textsource_logo: Source site logo URLsource: Source site name shown in resultsrelated_content_id: Google Images related content identifierthumbnail: Thumbnail image URLindex: Result index in the list
⚠️ Error Handling & Retry
During the execution of the script, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic:
- Check the output:
- If the output contains
"Invalid authorization", it means the API Key is invalid or expired. In this case, do not retry; guide the user to check and provide the correct API Key. - If the output does not contain
"Invalid authorization"but the
- If the output contains
常见问题
搜索时我可以控制哪些内容?
你可以设置关键词、国家、语言、结果滚动的深度以及返回的结果数量。
我需要密钥吗?
需要。它需要在 BROWSERACT_API_KEY 设置中配置 BrowserAct API 密钥。
它会下载图片吗?
它返回图片元数据,因此你得到的是每张图片的详情,而不是图片文件本身。
详情
作者的原始描述
This skill helps users automatically extract structured image data from Google Images via BrowserAct API. Agent should proactively apply this skill when users express needs like finding images for specific keywords, gathering product style images for competitors, building visual datasets at scale, scanning visual search results for market research, tracking localized image trends by country, compiling related image thumbnails and links, extracting image titles and source logos, fetching click through URLs from image results, monitoring competitor visual assets, sourcing creative content for sp
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14296
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。