This skill guides you on how to perform visual product searches on Amazon using an image URL, helping Amazon sellers and researchers find visually similar products across multiple marketplaces.
Core Concepts
Amazon Image-Based Search (visual search) allows you to submit a product image URL and retrieve Amazon listings that are visually similar. This is invaluable for competitive analysis, sourcing alternatives, identifying counterfeits, and discovering market opportunities based on product appearance.
The tool searches across 8 Amazon marketplaces and returns rich product data including ASIN, title, image, price, rating, review count, brand, and optionally Keepa-enriched data (sales rank, monthly sales, FBA fees, dimensions, etc.).
Supported Marketplaces
| Marketplace | Domain | Default Zip Code |
|---|---|---|
| United States | amazon.com | 10001 |
| United Kingdom | amazon.co.uk | EC1A 1BB |
| Germany | amazon.de | 10115 |
| France | amazon.fr | 75001 |
| Italy | amazon.it | 00100 |
| Spain | amazon.es | 28001 |
| Japan | amazon.co.jp | 100-0001 |
| India | amazon.in | 110034 |
Default marketplace is amazon.com (US). Use amazon.com when the user does not specify a marketplace.
Parameter Guide
| Parameter | Required | Description |
|---|---|---|
| imageUrl | Yes | A valid, publicly accessible image URL to search with |
| amazonDomain | Yes | Amazon marketplace domain (e.g., amazon.com, amazon.de). Defaults to amazon.com |
| sort | No | Sort order for results. Supported values: default, price-asc-rank, price-desc-rank, rating-asc-rank, rating-desc-rank, ratings-asc-rank, ratings-desc-rank |
| deliveryZip | No | Delivery address zip code within the marketplace country. Uses the marketplace default if not specified |
| countryOrAreaCode | No | Country/region code for cross-border delivery (e.g., CN, JP, KR). Cannot be used together with deliveryZip. Note: India marketplace does not support cross-border delivery |
| aggregateByKeepaData | No | Whether to enrich results with Keepa data (sales rank, monthly sales, FBA fees, dimensions, etc.) |
Sort Options
| Value | Description |
|---|---|
default |
Default relevance sorting |
price-asc-rank |
Price: low to high |
price-desc-rank |
Price: high to low |
rating-asc-rank |
Rating: low to high |
rating-desc-rank |
Rating: high to low |
ratings-asc-rank |
Review count: low to high |
ratings-desc-rank |
Review count: high to low |
Important: If the requested sort order is not in the supported list above, do NOT attempt to use any other tool or workaround to compensate. Inform the user of the supported sort options.
How to call
- API endpoint:
POST /amazon/searchByImage(for full parameters/responses/error codes seereferences/api.md) - Python script:
python scripts/amazon_search_by_image.py '<JSON 参数>' [--inline] - Cost constraints: This tool consumes compute; by default, the same parameter combination in the same session is called only once, and the script has a 24h local cache. On failure/empty results, do not automatically switch keywords, paginate, or change the zip code to probe repeatedly; if you need to continue searching, first explain to the user that additional consumption will be incurred.
Output strategy (default script behavior):
- Alwayswrite the full response to
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-search-by-image-<timestamp>.json(<cwd>is the working directory when the script is executed, which in Claude Code is the current project directory;<session>is taken from the environment variableSESSION_ID, automatically aggregated according to the user's task;writing to /tmp is prohibited, if the current directory is not writable, report an error) - Response body ≤ 8 KB: after saving to disk, print the full JSON to stdout
- Response body > 8 KB: after saving to disk, stdout outputs only a summary (top-level fields, common counts such as
total/costToken, the length of the largest list field + the first 3 samples) - Add
--inlineto force full printing to stdout (also saved to disk)
Data reading suggestions: First look at the summary to judge whether it is sufficient; when specific fields are needed, prefer to use jqorConvertFrom-Json to extract on demand from the saved json file, avoiding bringing the entire JSON into the context.
Resolve authentication and compute issues
When the following abnormal situations occur, use references/onboarding.md to guide problem resolution:
Abnormal situations
- API Key not configured: the environment variable is not configured
LINKFOX_AGENT_API_KEY, andLINKFOXAGENT_API_KEY。 - Response 401 or 402 status code
- Response indicates insufficient compute or balance: the message contains "insufficient compute balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/package expired/recharge required/please recharge", or similar meaning.
Local Image Upload
This tool requires a publicly accessible image URL. If the user provides a local image file path (e.g., C:\Users\...\photo.png, /home/.../image.jpg), you must upload it first to obtain a public URL.
Run the upload script:
python scripts/upload_image.py /path/to/local/image.png
The script will return a public URL (valid for 24 hours) that can be used as the image URL parameter.
Usage Examples
1. Basic image search on the US marketplace
Search Amazon US for products that look similar to this image:
https://m.media-amazon.com/images/I/61pAlIX8SZL._AC_SY575_.jpg
2. Find similar products on a specific marketplace
Search Amazon Germany (amazon.de) for products visually similar to this image:
https://example.com/product-photo.jpg
3. Image search sorted by price (low to high)
Find similar products on Amazon US for this image, sorted by price from low to high:
https://example.com/my-product.jpg
4. Image search with Keepa data enrichment
Search Amazon US for products matching this image and include Keepa sales data:
https://example.com/competitor-product.jpg
5. Cross-border delivery search
Search Amazon Japan for similar products to this image, with delivery to China:
https://example.com/item.jpg
6. Competitor lookalike discovery
I found this product image on a competitor's listing. Find me all similar-looking products on Amazon UK:
https://example.com/competitor.jpg
Display Rules
- Present data clearly: Show search results in a well-structured table. Key columns to prioritize: product image, title, ASIN, price, rating, review count, and brand
- Image display: When the response includes
imageUrlfor products, display them inline so users can visually compare results - Price and currency: Always show price alongside the currency code (e.g., $29.99 USD, 24.99 EUR)
- Keepa data: When
aggregateByKeepaDatais enabled and Keepa fields are present, show supplementary data (monthly sales, sales rank, FBA fees) in an expanded section or additional columns - Result count: Always inform the user of the total number of results found (
total/totalCount) - Error handling: When a query fails, explain the issue and suggest checking that the image URL is valid and publicly accessible
- Sort limitation: If the user requests a sort order not in the supported list, clearly explain which sort options are available rather than attempting unsupported workarounds
- No secondary processing: Results from this tool are not stored in a database, so secondary SQL processing is not available
User Expression & Scenario Quick Reference
Applicable -- Visual product search scenarios on Amazon:
| User Says | Scenario |
|---|---|
| "Find similar products to this image" | Basic image search |
| "Search by image", "reverse image search on Amazon" | Visual search |
| "Find competitor lookalikes", "find same-style products" | Competitor analysis by appearance |
| "What products on Amazon look like this" | Product discovery |
| "Find cheaper alternatives that look the same" | Price-based visual comparison |
| "Search Amazon JP/DE/UK for this product image" | Cross-marketplace visual search |
| "Show me Keepa data for similar products" | Enriched visual search |
| "Find products similar to this photo, sorted by rating" | Sorted visual search |
Not applicable -- Needs beyond image-based product search:
- Text-based keyword search on Amazon (use keyword search tools instead)
- ABA search term data analysis
- Product review analysis or listing optimization
- Sales estimation without a source image
- Image editing or image generation
- Searching with a local image file (the tool requires a publicly accessible URL)
Boundary judgment: When users say "find similar products" or "competitor analysis", if they provide an image URL and the intent is to find visually similar Amazon listings, this skill applies. If they are asking for keyword-based search, sales data analysis, or product research without an image, it does not apply.
Compute consumption rules
Billed according to dynamic rules: compute consumption = 15 + 0.045 × the Keepa tokens consumed by this product detail query. The Keepa portion unit price is 90 × the Keepa tokens consumed by this product detail query; if Keepa aggregation is not triggered, this portion is 0.; relevance api: linkfox-keepa-product-detail
Important: The services of this skill are dynamically calculated by a multiplier and may consume a large amount of compute at once. The user must be reminded, and the user decides whether to continue.
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
- The functionality or purpose described in this skill does not match actual behavior
- The skill's results do not match the user's intent
- The user expresses dissatisfaction or praise about this skill
- Anything you believe could be improved
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
For more high-quality, professional cross-border e-commerce skills, set LinkFox Skills.