{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Image Search Scraper",
    "description": "[💰 $3.99 / 1K products] Find a product on AliExpress from any photo (Amazon, TikTok Shop, Shopify, 1688): each match with price, exact units sold, every variant's stock, shipping for 60 countries, store. Search fields only $1.99 / 1K. No fee per photo.",
    "version": "0.1",
    "x-build-id": "ojhb6aHxlQQUtBD8C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~aliexpress-image-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-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/sleepmodesystems~aliexpress-image-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-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/sleepmodesystems~aliexpress-image-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-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",
        "properties": {
          "imageUrls": {
            "title": "Photos (image search)",
            "maxItems": 100,
            "type": "array",
            "description": "Find a product by photo: public photo links, one per line (any JPG, PNG or WebP: an Amazon, Shopify, TikTok Shop or 1688 product photo works). Each gives the AliExpress products that look the same, about 80-100 per photo. Up to 100 photos.",
            "items": {
              "type": "string"
            }
          },
          "imageFile": {
            "title": "Or upload a photo",
            "type": "string",
            "description": "A photo from your computer, searched like the photo links above."
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Matches per photo, in the order you chose. AliExpress finds about 60 to 100 per photo.",
            "default": 100
          },
          "country": {
            "title": "Deliver to",
            "enum": [
              "US",
              "UK",
              "CA",
              "AU",
              "NZ",
              "IE",
              "FR",
              "DE",
              "ES",
              "IT",
              "NL",
              "BE",
              "PT",
              "AT",
              "CH",
              "PL",
              "CZ",
              "SK",
              "HU",
              "RO",
              "BG",
              "GR",
              "HR",
              "SI",
              "LT",
              "LV",
              "EE",
              "FI",
              "SE",
              "NO",
              "DK",
              "LU",
              "CY",
              "MT",
              "UA",
              "TR",
              "IL",
              "SA",
              "AE",
              "KR",
              "JP",
              "SG",
              "MY",
              "TH",
              "VN",
              "PH",
              "ID",
              "IN",
              "PK",
              "BR",
              "MX",
              "CL",
              "CO",
              "PE",
              "AR",
              "ZA",
              "NG",
              "EG",
              "MA",
              "KZ"
            ],
            "type": "string",
            "description": "The country AliExpress delivers to: it decides which products appear, their price, shipping options and delivery days, and which variants can be bought there. A product not delivered there is reported and not charged.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Prices in this currency (<code>USD</code>, <code>EUR</code>, <code>GBP</code>…). Empty: the country's own (euros for Germany, pounds for the UK)."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Titles and specifications in this language when the seller wrote one (<code>en</code>, <code>fr</code>, <code>de</code>, <code>es</code>, <code>pt</code>…). Empty: the country's own."
          },
          "sort": {
            "title": "Order",
            "enum": [
              "bestMatch",
              "bestSellers",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "The order of the matches as AliExpress shows them: best match, best sellers first, or lowest or highest price first. Each row's <code>position</code> is its rank.",
            "default": "bestMatch"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "In the chosen currency. Each match is filtered on its price; matches left out are not charged."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "In the chosen currency."
          },
          "minSold": {
            "title": "Minimum units sold",
            "minimum": 0,
            "type": "integer",
            "description": "Only matches with at least this many units sold. Photo search rows carry AliExpress's exact count (100,312 where the page says \"100K+ sold\"), so the floor is exact."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products rated at least this many stars (for example 4.5)."
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only matches with free shipping to your country, as AliExpress labels them.",
            "default": false
          },
          "details": {
            "title": "Complete rows",
            "type": "boolean",
            "description": "On: every product with every variant's price and stock, shipping options, the store card, specifications, the description, the review summary and the latest 10 reviews. Off: search fields only (price, exact units sold, rating, delivery days, photos), at a lower price and faster.",
            "default": true
          },
          "minItems": {
            "title": "Fail below this many products",
            "minimum": 0,
            "type": "integer",
            "description": "For scheduled runs: the run is marked failed when it saves fewer products, so your monitoring notices. 0 = never.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}