Amazon Image Search
Find visually similar Amazon listings by product image URL in a target marketplace (such as US or JP), with extracted ASINs, links, images, and prices.
/v1 /amazon /products /image-searchAPI data samples
Inspect the request body and complete response shape used by this endpoint.
{
"imageUrl": "https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg",
"marketplace": "US",
"limit": 20
}{
"request_id": "53345b8a-de21-40c7-9ec7-b5842796c526",
"data": {
"marketplace": "US",
"total_visual_matches": 60,
"matched_count": 1,
"detail_batches_queried": 1,
"products": [
{
"asin": "B07H9PZDQW",
"asinUrl": "https://www.amazon.com/dp/B07H9PZDQW",
"availableDate": 1536595200000,
"brand": "Gaiam",
"bsrId": "sporting-goods",
"bsrLabel": "Sports & Outdoors",
"bsrRank": 45,
"dimensions": "72\"L x 24\"W x 0.39\"Th",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US200_.jpg",
"nodeLabelPath": "Sports & Outdoors:Exercise & Fitness:Yoga:Mats",
"parent": "B0FRG5TM2T",
"price": 22.15,
"rating": 4.6,
"ratings": 46989,
"reviews": 0,
"sellerName": "Amazon",
"fulfillment": "AMZ",
"marketplace": "US",
"title": "Gaiam Thick Yoga Mat, Exercise & Fitness Mat with Easy-Cinch Carrying Strap",
"updatedTime": 1795101494000,
"variations": 13,
"weight": "1.27 kg",
"zoomImageUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US600_.jpg",
"variationList": [
{
"asin": "B0FNXCBRGL",
"attribute": "Color: French Rose | Size: 2/5 inch"
},
{
"asin": "B0H7C6SFMJ",
"attribute": "Color: Purple | Size: 1 inch"
}
],
"features": [
"Extra-Thick Cushioning for Joint Comfort : Made with 10mm (2/5\") high-density NBR foam, this mat delivers plush cushioning that helps reduce pressure on knees, hips, and joints—ideal for beginners, low-impact yoga, Pilates, stretching, floor exercises, and home workouts on hard surfaces.",
"Comfort-Focused Surface for Controlled Movement : Textured foam surface helps reduce slipping on most hard floors during dry workouts and everyday exercise. The softer, cushioned feel prioritizes comfort and shock absorption over firmness, making it a great choice for floor-based and low-impact routines."
],
"badge": {
"bestSeller": "Y",
"amazonChoice": "Y",
"newRelease": "Y",
"ebc": "Y",
"video": "Y"
},
"brandUrl": "/stores/Gaiam/page/A9256F20-A989-462E-8455-BA8B29F7A245?lp_asin=B07H9PZDQW&ref_=ast_bln&store_ref=bl_ast_dp_brandlogo_sto",
"createdTime": 1606454204000,
"firstRatingDate": 1768924800000,
"lqs": 100,
"questions": 79,
"variantRatings": 0,
"variantReviews": 609,
"sellerId": "",
"sellers": 2,
"skuList": [
"Color: Black",
"Size: 2/5 inch"
],
"overviews": null,
"subcategories": [
{
"rank": 2,
"code": "3422301",
"label": "Yoga Mats"
}
],
"deliveryPrice": -1,
"primePrice": -1,
"coupon": "",
"position": 1,
"thumbnailUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US200_.jpg",
"detailsEnriched": true
}
]
}
}Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. Each call consumes 3 billing units, including calls that find nothing (
RESULT_NOT_FOUND).
POST /v1/amazon/products/image-search
The request and response fields below match the current public contract.
MCP
| Item | Value |
|---|---|
| MCP Code | amazon_products_image_search |
Quick call
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/amazon/products/image-search \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"imageUrl": "https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg",
"marketplace": "US",
"limit": 20
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "Amazon Image Search" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/en/docs/amazon/products/image-search
Endpoint: POST https://ecommercedataapi.com/v1/amazon/products/image-search
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"imageUrl": "https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg",
"marketplace": "US",
"limit": 20
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/amazon/products/image-search',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
imageUrl:
'https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg',
marketplace: 'US',
limit: 20,
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/amazon/products/image-search",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"imageUrl": "https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg",
"marketplace": "US",
"limit": 20,
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
imageUrl | String | Yes | Public image URL of the product to search for, such as an Amazon main image. | https://m.media-amazon.com/images/I/51qL7aQLvjL._AC_UL450_SY450_QL70_.jpg |
marketplace | String | No | Target Amazon marketplace code (US, UK, DE, FR, IT, ES, MX, CA, AU, JP, IN, AE, BR). Defaults to US. See Table 1.2. | US |
query | String | No | Optional text refinement combined with the visual search (for example material or color). | bronze padlock |
limit | Integer | No | Maximum number of deduplicated Amazon listings to return (1-60). Defaults to 20. Starts at 3 billing units (covers image search + first 20 ASIN details), plus 1 unit for each extra 20-ASIN batch (up to 5 units total). | 20 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
marketplace | String | Requested target Amazon marketplace code. Available values (Table 1.2): US, JP, UK, DE, FR, IT, ES, CA, IN, MX, BR, AU, AE | US |
total_visual_matches | Integer | Total visual matches returned before Amazon marketplace filtering. | 60 |
matched_count | Integer | Number of deduplicated Amazon products returned. | 20 |
detail_batches_queried | Integer | Number of 20-ASIN detail enrichment batches executed (0-3). Each batch adds 1 billing unit. | 1 |
products.asin | String | ASIN. | B08GHW4TBS |
products.asinUrl | String | ASIN URL. | https://www.amazon.com/dp/B08GHW4TBS |
products.availableDate | Integer | Available date. Date or timestamp value. | 1609059137000 |
products.badge | Object | Badge. Badge flags reflect the most recent data collection and can differ from what Amazon shows right now. | 包括了下面 5 个标识 |
products.badge.bestSeller | String | Best seller. | Y 或者 N |
products.badge.amazonChoice | String | Amazon choice. | Y 或者 N |
products.badge.newRelease | String | New release. | Y 或者 N |
products.badge.ebc | String | A+ content. | Y 或者 N |
products.badge.video | String | Video. | Y 或者 N |
products.brand | String | Brand. | mermaker |
products.brandUrl | String | Brand URL. | /stores/Mermaker/page/984A6448-1C68-4CCA-AD5A-D574EA2D65D5?ref_=ast_bln |
products.bsrId | String | BSR ID. | home-garden |
products.bsrLabel | String | BSR label. | Home & Kitchen |
products.bsrRank | Integer | BSR rank. | 1006 |
products.createdTime | Integer | Created time. Date or timestamp value. | 1606467137000 |
products.dimensions | String | Dimensions. | 7 x 6 x 0.6 inches |
products.firstRatingDate | Integer | First rating date. Date or timestamp value. | 1609059137000 |
products.imageUrl | String | Image URL. | https://images-na.ssl-images-amazon.com/images/I/412616zl5YL .AC_US200.jpg |
products.lqs | Integer | Listing quality score. | 97 |
products.nodeLabelPath | String | Node label path. | Home & Kitchen:Bedding:Blankets & Throws |
products.parent | String | Parent. | B07V5GB9B5 |
products.price | Number | Price. | 21.99 |
products.questions | Integer | Questions. | 5 |
products.rating | Number | Rating. | 4.8 |
products.ratings | Integer | Ratings. | 29229 |
products.reviews | Integer | Reviews. | 9229 |
products.variantRatings | Integer | Variant ratings. | 12454 |
products.variantReviews | Integer | Variant reviews. | 3211 |
products.sellerId | String | Seller ID. | A13AJ1GXFINAZ |
products.sellerName | String | Seller name. | Mermaker |
products.fulfillment | String | Fulfillment. | FBA |
products.sellers | Integer | Sellers. | 1 |
products.skuList | Array | Sku list. | ["Color: Beige","Size: 47 inches"] |
products.marketplace | String | Marketplace. Available values (Table 1.2): US, JP, UK, DE, FR, IT, ES, CA, IN, MX, BR, AU, AE | US, JP, UK |
products.title | String | Title. | mermaker Burritos Tortilla Blanket 2.0 Double Sided 47 inches for Adult and Kids,Giant Funny Realistic Food Throw Blanket,285 GSM Novelty Soft Flannel Taco Blanket (Yellow Blanket-Double Sided) |
products.features | Array | Features. | - |
products.overviews | String | Overviews. | - |
products.updatedTime | Integer | Updated time. Date or timestamp value. | 1609059137000 |
products.variationList | Array | Variation list. | [{"asin":"B07V5GB9B5","attribute":"Beige"},{"asin":"B08H86SSSF","attribute":"Cookie"}] |
products.variations | Integer | Variations. | 14 |
products.weight | String | Weight. | 15.2 ounces |
products.zoomImageUrl | String | Zoom image URL. | https://images-na.ssl-images-amazon.com/images/I/412616zl5YL .AC_US600.jpg |
products.subcategories | Object | Subcategories. | - |
products.subcategories.rank | Integer | Rank. | 1 |
products.subcategories.code | String | Code. | 17874234011 |
products.subcategories.label | String | Label. | Kids' Throw Blankets |
products.deliveryPrice | Number | Delivery price. | 4 |
products.primePrice | Number | Prime price. | 42 |
products.coupon | String | Coupon. | [save $20] |
products.coupon.amazonChoice | String | Amazon choice. | Y 或者 N |
products.position | Integer | Original visual match rank position. | 1 |
products.thumbnailUrl | String | Visual search thumbnail image URL. | - |
products.detailsEnriched | Boolean | Whether full ASIN details were successfully enriched for this product. | true |
Response example
{
"request_id": "53345b8a-de21-40c7-9ec7-b5842796c526",
"data": {
"marketplace": "US",
"total_visual_matches": 60,
"matched_count": 1,
"detail_batches_queried": 1,
"products": [
{
"asin": "B07H9PZDQW",
"asinUrl": "https://www.amazon.com/dp/B07H9PZDQW",
"availableDate": 1536595200000,
"brand": "Gaiam",
"bsrId": "sporting-goods",
"bsrLabel": "Sports & Outdoors",
"bsrRank": 45,
"dimensions": "72\"L x 24\"W x 0.39\"Th",
"imageUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US200_.jpg",
"nodeLabelPath": "Sports & Outdoors:Exercise & Fitness:Yoga:Mats",
"parent": "B0FRG5TM2T",
"price": 22.15,
"rating": 4.6,
"ratings": 46989,
"reviews": 0,
"sellerName": "Amazon",
"fulfillment": "AMZ",
"marketplace": "US",
"title": "Gaiam Thick Yoga Mat, Exercise & Fitness Mat with Easy-Cinch Carrying Strap",
"updatedTime": 1795101494000,
"variations": 13,
"weight": "1.27 kg",
"zoomImageUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US600_.jpg",
"variationList": [
{
"asin": "B0FNXCBRGL",
"attribute": "Color: French Rose | Size: 2/5 inch"
},
{
"asin": "B0H7C6SFMJ",
"attribute": "Color: Purple | Size: 1 inch"
}
],
"features": [
"Extra-Thick Cushioning for Joint Comfort : Made with 10mm (2/5\") high-density NBR foam, this mat delivers plush cushioning that helps reduce pressure on knees, hips, and joints—ideal for beginners, low-impact yoga, Pilates, stretching, floor exercises, and home workouts on hard surfaces.",
"Comfort-Focused Surface for Controlled Movement : Textured foam surface helps reduce slipping on most hard floors during dry workouts and everyday exercise. The softer, cushioned feel prioritizes comfort and shock absorption over firmness, making it a great choice for floor-based and low-impact routines."
],
"badge": {
"bestSeller": "Y",
"amazonChoice": "Y",
"newRelease": "Y",
"ebc": "Y",
"video": "Y"
},
"brandUrl": "/stores/Gaiam/page/A9256F20-A989-462E-8455-BA8B29F7A245?lp_asin=B07H9PZDQW&ref_=ast_bln&store_ref=bl_ast_dp_brandlogo_sto",
"createdTime": 1606454204000,
"firstRatingDate": 1768924800000,
"lqs": 100,
"questions": 79,
"variantRatings": 0,
"variantReviews": 609,
"sellerId": "",
"sellers": 2,
"skuList": ["Color: Black", "Size: 2/5 inch"],
"overviews": null,
"subcategories": [
{
"rank": 2,
"code": "3422301",
"label": "Yoga Mats"
}
],
"deliveryPrice": -1,
"primePrice": -1,
"coupon": "",
"position": 1,
"thumbnailUrl": "https://images-na.ssl-images-amazon.com/images/I/81mao7QZ1iL._AC_US200_.jpg",
"detailsEnriched": true
}
]
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.