
Google Image API Automation
FreeExtract structured image data from Google Images effortlessly.
Free · Opens the source repo
What Google Image API Automation does
The Google Image API Automation skill allows users to efficiently extract structured image data directly from Google Images using the BrowserAct API. This skill is particularly useful for developers and designers who need to gather visual content for various applications, such as market research, competitor analysis, or creative projects. By leveraging this skill, users can automate the process of searching for images based on specific keywords, while also controlling parameters like country, language, and the number of results to retrieve.
One of the key benefits of this skill is its ability to bypass common obstacles associated with web scraping, such as CAPTCHA challenges and regional IP restrictions. This ensures that users can obtain data without interruptions or the need for complex workarounds. The skill is designed to execute tasks quickly and cost-effectively, making it a practical choice for those who need to gather large volumes of image data without incurring high costs associated with traditional AI-driven solutions.
The skill provides a straightforward command-line interface, allowing users to specify their search criteria and extract results in a structured format. The output includes essential metadata such as image titles, source logos, click-through URLs, and more, which can be invaluable for tasks like SEO analysis or content creation. Additionally, the skill is equipped with error handling and retry mechanisms to ensure reliability during execution, further enhancing its usability for developers and designers alike.
Whether you're looking to compile visual datasets, track trends in specific regions, or monitor competitors' visual assets, the Google Image API Automation skill offers a robust solution for your image data extraction needs.
When to use it
Use this skill when you need to gather images based on keywords for projects like market research, visual content sourcing, or competitor analysis.
When not to use it
This skill may not be suitable for real-time image searching or when immediate visual feedback is required, as it operates through automated scripts.
What you can build with it
Visual Content Sourcing
Utilize the skill to find specific imagery for creative research and design projects.
Competitor Asset Monitoring
Scan Google Images to gather competitor product styles and logos for analysis.
Market Visual Research
Build datasets of product listings across various countries to understand market trends.
How to install Google Image API Automation
View source1. Install with the skills CLI
npx skills add browser-act/skills/google-image-api-skill --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by browser-actGoogle 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 task execution fails (for example, the output starts withError:or the result is empty), the Agent should automatically try executing the script one more time.
- If the output contains
-
Retry limit:
- Automatic retry is limited to once. If the second attempt still fails, stop retrying and report the specific error message to the user.
🌟 Typical Use Cases
- Visual Content Sourcing: Finding specific imagery for creative research and design content.
- Competitor Asset Monitoring: Scanning Google Images for competitor product styles and logos.
- Market Visual Research: Building datasets of product listings across various countries.
- Localized Image Trends: Tracking what images appear for specific terms in Japan (
jp) or France (fr). - E-commerce Discovery: Extracting click-through links to track down where products are sold.
- Data Enrichment: Fetching thumbnails and high-level titles associated with keywords.
- Brand Tracking: Finding instances of specific brands appearing as image results.
- SEO Keyword Visualization: Checking the visual results that rank for chosen SEO keywords.
- Automated Content Aggregation: Delivering daily list-level visual metadata for specific topics.
- Global Image Search: Finding images related to global events or personalities in their native languages.
Frequently asked questions about Google Image API Automation
Similar skills
Single-Cell RNA-seq QC
Automate quality control for single-cell RNA-seq data.
Instrument Data to Allotrope Converter
Standardize lab data for seamless integration.
SQL Server Table Reconciliation
Efficiently compare SQL Server tables across instances.
Data Cleaning and Variable Screening
Streamline credit risk data preprocessing for modeling.
Arize Dataset
Manage and query Arize datasets efficiently.
Spreadsheet Management
Efficiently create, edit, and analyze spreadsheet files.
