{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Image Search Scraper - Find Products by Photo",
    "description": "Search AliExpress by image in bulk: for each photo link (or base64), the products AliExpress shows, with price, original price, discount, rating, number sold, Choice and ad flags, store of paid listings, rank and link. Any ship-to country, currency, sort. No account. Pay per product row.",
    "version": "0.1",
    "x-build-id": "nFZfB3qL5TEUPz00E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~aliexpress-image-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-aliexpress-image-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hexagone-data~aliexpress-image-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-aliexpress-image-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hexagone-data~aliexpress-image-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-aliexpress-image-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "imageUrls"
        ],
        "properties": {
          "imageUrls": {
            "title": "Image links (or base64)",
            "type": "array",
            "description": "One image per line: a direct https link to a JPEG, PNG, WebP, GIF, AVIF or HEIC image (for example the image link of a product page, an ad, a shop or a cloud drive file served to everyone), a data:image/...;base64,... URL, or base64 text. Each image is searched on AliExpress, like the camera icon of its search bar. HEIC is converted to JPEG and images over 1,000 px or 1 MB are reduced to 800 px before sending; images under 16 px are refused (AliExpress returns unrelated products for them), and so are images too large to decode in memory (over 178 megapixels for a standard JPEG; about 90 for a progressive JPEG, 70 if it is 4:2:2, 46 if full-colour 4:4:4, 35 if CMYK; 37 for HEIC; 52 for PNG and GIF, 1-bit black and white included, 157 for 8-bit greyscale PNG, 47 for 16-bit greyscale PNG, 33 for transparent PNG or GIF; 15 for AVIF, 17 for WebP). Up to 1,000 images per run; the same line twice is searched once.",
            "items": {
              "type": "string"
            }
          },
          "shipTo": {
            "title": "Ship to (country)",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code (US, GB, DE, FR, BR, JP, KR, CA, AU, ES...): AliExpress shows the products, prices and offers of that country. It also picks which products AliExpress returns for the photo.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "BRL",
              "JPY",
              "KRW",
              "CAD",
              "AUD",
              "NZD",
              "MXN",
              "CLP",
              "COP",
              "PEN",
              "CHF",
              "PLN",
              "CZK",
              "HUF",
              "SEK",
              "NOK",
              "DKK",
              "RON",
              "UAH",
              "TRY",
              "ILS",
              "SAR",
              "AED",
              "QAR",
              "KWD",
              "INR",
              "IDR",
              "MYR",
              "PHP",
              "THB",
              "VND",
              "SGD",
              "HKD",
              "TWD",
              "KZT",
              "ZAR",
              "NGN",
              "EGP",
              "MAD",
              "PKR"
            ],
            "type": "string",
            "description": "Currency of the prices. USD, EUR, GBP, BRL, JPY, KRW, CAD, AUD, PLN and MXN were measured; with another one, if AliExpress serves a different currency the rows say so (currency field) and the run gives a warning: prices are never converted.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en_US",
              "en_GB",
              "fr_FR",
              "de_DE",
              "es_ES",
              "it_IT",
              "pt_BR",
              "pt_PT",
              "nl_NL",
              "pl_PL",
              "tr_TR",
              "ru_RU",
              "ja_JP",
              "ko_KR",
              "ar_MA",
              "he_IL",
              "th_TH",
              "vi_VN",
              "id_ID",
              "uk_UA"
            ],
            "type": "string",
            "description": "Language of titles, sold texts and badges (AliExpress translates them).",
            "default": "en_US"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "best_match",
              "orders",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "best_match keeps AliExpress's order. For the other sorts the Actor reads every results page of the photo, then sorts all products itself (AliExpress only sorts inside each page of 60), then keeps the first maxResultsPerImage.",
            "default": "best_match"
          },
          "maxResultsPerImage": {
            "title": "Maximum products per image",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Products kept per image (rows in the dataset, the only charged rows). One search gives about 90 to 130 distinct products per photo (measured; up to 170 over two runs), so values above 130 rarely add rows; capped at 300.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default (every search uses a fresh IP address; measured reliable). Residential proxy is possible (its traffic is billed to your Apify account); its country does not need to match Ship to.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}