jpskill.com
🎨 デザイン コミュニティ

google-image-api-skill

キーワードに合った画像をGoogle画像検索から自動で探し、競合の商品画像収集や市場調査、国ごとのトレンド把握、関連画像の収集、ロゴ抽出など、画像に関する様々な情報を効率的に集めて活用するSkill。

📜 元の英語説明(参考)

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 specific topics, looking up product pictures in different regions, collecting structured image metadata without opening detail pages.

🇯🇵 日本人クリエイター向け解説

一言でいうと

キーワードに合った画像をGoogle画像検索から自動で探し、競合の商品画像収集や市場調査、国ごとのトレンド把握、関連画像の収集、ロゴ抽出など、画像に関する様々な情報を効率的に集めて活用するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o google-image-api-skill.zip https://jpskill.com/download/17626.zip && unzip -o google-image-api-skill.zip && rm google-image-api-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17626.zip -OutFile "$d\google-image-api-skill.zip"; Expand-Archive "$d\google-image-api-skill.zip" -DestinationPath $d -Force; ri "$d\google-image-api-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して google-image-api-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → google-image-api-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Google Image API 自動化スキル

📖 はじめに

このスキルは、BrowserAct Google Image API テンプレートを使用して、Google 画像からワンクリックで画像データを抽出する機能を提供します。キーワードによる検索、国と言語の設定、スクロール深度と結果数の制限が可能で、クリーンで構造化された画像メタデータを API 経由で直接取得できます。

✨ 特徴

  1. ハルシネーション(誤った情報生成)がなく、安定した正確なデータ抽出を保証: 事前設定されたワークフローにより、生成 AI によるハルシネーションを回避します。
  2. CAPTCHA の問題なし: reCAPTCHA やその他の認証課題に対処する必要はありません。
  3. IP 制限やジオブロッキングなし: 地域的な IP 制限を処理する必要はありません。
  4. アジャイルな実行速度: 純粋な AI 駆動のブラウザ自動化ソリューションと比較して、タスクの実行が高速です。
  5. 高い費用対効果: 大量のトークンを消費する AI ソリューションと比較して、データ取得コストを大幅に削減します。

🔑 API キーガイド

実行する前に、BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、それ以上の操作は行わず、ユーザーが共同で提供するのを要求して待つ必要があります。 この時点で、エージェントはユーザーに通知する必要があります:

「BrowserAct API Key がまだ設定されていないため、BrowserAct Console にアクセスして、まずキーを取得してください。」

🛠️ 入力パラメータ

エージェントは、スクリプトを呼び出す際に、ユーザーのニーズに応じて以下のパラメータを柔軟に設定する必要があります。

  1. KeyWords (検索キーワード)

    • : string
    • 説明: Google 画像で使用される検索キーワード。
    • : flowerai agenttesla
  2. Country (国または地域バイアス)

    • : string
    • 説明: 結果の国または地域バイアス。
    • サポートされている値: usgbcaaudefresjpkr
    • デフォルト: us
  3. Language (UI 言語)

    • : string
    • 説明: Google 画像セッションおよび返されるテキストの UI 言語。
    • サポートされている値: enzh-CNzh-TWjakofrdees
    • デフォルト: en
  4. Scroll_count (スクロール回数)

    • : number
    • 説明: より多くの画像結果を読み込むためのスクロール回数。
    • デフォルト: 5
  5. Datelimit (最大アイテム数)

    • : number
    • 説明: 結果リストから抽出するアイテムの最大数。
    • デフォルト: 50

🚀 呼び出し (推奨)

エージェントは、以下の独立したスクリプトを実行して、「ワンコマンドで結果を得る」ことを実現する必要があります。

# 呼び出し例
python -u ./scripts/google_image_api.py "KeyWords" "Country" "Language" Scroll_count Datelimit

⏳ 実行状況の監視

このタスクは自動化されたブラウザ操作を伴うため、かなりの時間(数分)を要する場合があります。スクリプトは実行中にタイムスタンプ付きのステータスログを継続的に出力します(例:[14:30:05] Task Status: running)。 エージェントへの注意:

  • スクリプトが結果を返すのを待つ間、ターミナル出力を監視してください。
  • ターミナルが新しいステータスログを出力している限り、タスクは正常に実行されています。デッドロックや無応答と誤解しないでください。
  • ステータスが長時間変わらない場合、またはスクリプトが出力を停止して結果を返さない場合は、再試行メカニズムをトリガーすることを検討してください。

📊 データ出力

実行が成功すると、スクリプトは API レスポンスから直接結果を解析して出力します。結果には以下が含まれます。

  • is_product: 結果が製品スタイルのリストとして検出されたかどうか
  • link: 結果に関連付けられたクリックスルー URL
  • title: 画像結果のタイトルまたはキャプションテキスト
  • source_logo: ソースサイトのロゴ URL
  • source: 結果に表示されるソースサイト名
  • related_content_id: Google 画像の関連コンテンツ識別子
  • thumbnail: サムネイル画像 URL
  • index: リスト内の結果インデックス

⚠️ エラー処理と再試行

スクリプトの実行中にエラーが発生した場合(ネットワークの変動やタスクの失敗など)、エージェントは次のロジックに従う必要があります。

  1. 出力を確認する:

    • 出力に "Invalid authorization"含まれている場合、API キーが無効であるか期限切れであることを意味します。この場合、再試行しないでください。ユーザーに確認を促し、正しい API キーを提供してもらってください。
    • 出力に "Invalid authorization"含まれていないが、タスクの実行が失敗した場合(たとえば、出力が Error: で始まるか、結果が空の場合)、エージェントは自動的にスクリプトをもう一度実行する必要があります
  2. 再試行制限:

    • 自動再試行は1 回に制限されています。2 回目の試行でも失敗した場合は、再試行を停止し、特定のエラーメッセージをユーザーに報告してください。

🌟 代表的なユースケース

  1. ビジュアルコンテンツの調達: クリエイティブな調査やデザインコンテンツのための特定の画像を見つける。
  2. 競合他社の資産監視: Google 画像で競合他社の製品スタイルやロゴをスキャンする。
  3. 市場のビジュアルリサーチ: さまざまな国にわたる製品リストのデータセットを構築する。
  4. ローカライズされた画像トレンド: 日本 (jp) やフランス (fr) などの特定の用語で表示される画像を追跡する。
  5. E コマースの発見: クリックスルーリンクを抽出して、製品がどこで販売されているかを追跡する。
  6. データエンリッチメント: キーワードに関連付けられたサムネイルと高レベルのタイトルを取得する。
  7. ブランドトラッキング: 画像結果として表示される特定のブランドのインスタンスを見つける。
  8. SEO キーワードの視覚化: 選択した SEO キーワードでランク付けされる視覚的な結果を確認する。
  9. 自動化されたコンテンツ集約: 特定のトピックに関する日次のリストレベルのビジュアルメタデータを提供する。
  10. グローバル画像検索: グローバルなイベントやパーソナリティに関連する画像を、それぞれのネイティブ言語で検索する。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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

  1. No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
  2. No CAPTCHA issues: No need to deal with reCAPTCHA or other verification challenges.
  3. No IP restrictions or geo-blocking: No need to handle regional IP limitations.
  4. Agile execution speed: Faster task execution compared to pure AI-driven browser automation solutions.
  5. 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:

  1. KeyWords (Search keywords)

    • Type: string
    • Description: Search keywords used on Google Images.
    • Example: flower, ai agent, tesla
  2. 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
  3. 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
  4. Scroll_count (Number of scroll actions)

    • Type: number
    • Description: Number of scroll actions to load more image results.
    • Default: 5
  5. Datelimit (Maximum items)

    • Type: number
    • Description: Maximum number of items to extract from the results list.
    • Default: 50

🚀 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 listing
  • link: Click-through URL associated with the result
  • title: Image result title or caption text
  • source_logo: Source site logo URL
  • source: Source site name shown in results
  • related_content_id: Google Images related content identifier
  • thumbnail: Thumbnail image URL
  • index: 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:

  1. 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 with Error: or the result is empty), the Agent should automatically try executing the script one more time.
  2. 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

  1. Visual Content Sourcing: Finding specific imagery for creative research and design content.
  2. Competitor Asset Monitoring: Scanning Google Images for competitor product styles and logos.
  3. Market Visual Research: Building datasets of product listings across various countries.
  4. Localized Image Trends: Tracking what images appear for specific terms in Japan (jp) or France (fr).
  5. E-commerce Discovery: Extracting click-through links to track down where products are sold.
  6. Data Enrichment: Fetching thumbnails and high-level titles associated with keywords.
  7. Brand Tracking: Finding instances of specific brands appearing as image results.
  8. SEO Keyword Visualization: Checking the visual results that rank for chosen SEO keywords.
  9. Automated Content Aggregation: Delivering daily list-level visual metadata for specific topics.
  10. Global Image Search: Finding images related to global events or personalities in their native languages.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。