{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress All-in-One Scraper: Products, Prices & Reviews",
    "description": "Scrape AliExpress in one Actor: search by keyword, pull full product detail (prices, every SKU, shipping, specs, store) and collect buyer reviews with photos and a 1-5 star breakdown. 70+ fields, exclusive deal & seller-trust scores, any currency and ship-to country. No account or cookies.",
    "version": "0.1",
    "x-build-id": "nicR697lYoaWhvgOB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~aliexpress-all-in-one/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-aliexpress-all-in-one",
        "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/trakk~aliexpress-all-in-one/runs": {
      "post": {
        "operationId": "runs-sync-trakk-aliexpress-all-in-one",
        "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/trakk~aliexpress-all-in-one/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-aliexpress-all-in-one",
        "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": {
          "mode": {
            "title": "🛒 What to scrape",
            "enum": [
              "SEARCH",
              "SEARCH_DETAIL",
              "PRODUCT_DETAIL",
              "REVIEWS"
            ],
            "type": "string",
            "description": "SEARCH returns product cards for each keyword. PRODUCT DETAIL returns the full product (price, SKUs, shipping, specs, description, store) for each URL/ID. REVIEWS returns buyer reviews. SEARCH + DETAIL does both: finds products by keyword, then enriches each with full detail (and reviews if enabled).",
            "default": "SEARCH"
          },
          "searchQueries": {
            "title": "🔎 Search queries",
            "type": "array",
            "description": "Keywords to search on AliExpress, one per row.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "default",
              "orders",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Order search results.",
            "default": "default"
          },
          "minPrice": {
            "title": "💵 Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep products at or above this price (in the selected currency)."
          },
          "maxPrice": {
            "title": "💵 Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep products at or below this price."
          },
          "minRating": {
            "title": "⭐ Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep products with at least this star rating (1–5)."
          },
          "minSold": {
            "title": "📈 Min orders",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep products with at least this many orders/sales."
          },
          "freeShippingOnly": {
            "title": "🚚 Free shipping only",
            "type": "boolean",
            "description": "Keep only products offering free shipping.",
            "default": false
          },
          "choiceOnly": {
            "title": "✅ AliExpress Choice only",
            "type": "boolean",
            "description": "Keep only AliExpress Choice products.",
            "default": false
          },
          "productUrls": {
            "title": "📦 Product URLs",
            "type": "array",
            "description": "AliExpress product URLs for the detail and reviews modes. Full URLs like https://www.aliexpress.com/item/1005006....html.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "productIds": {
            "title": "🔢 Product IDs",
            "type": "array",
            "description": "AliExpress numeric product IDs, if you have them instead of URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeReviews": {
            "title": "💬 Include reviews with each product",
            "type": "boolean",
            "description": "In the detail modes, attach buyer reviews and a rating breakdown to every product.",
            "default": false
          },
          "maxReviews": {
            "title": "💬 Max reviews per product",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap on reviews collected per product (Reviews mode, and detail with reviews).",
            "default": 20
          },
          "reviewsSort": {
            "title": "↕️ Reviews sort",
            "enum": [
              "default",
              "newest",
              "rating_desc",
              "rating_asc"
            ],
            "type": "string",
            "description": "Order the reviews returned for each product.",
            "default": "default"
          },
          "reviewsFilter": {
            "title": "🖼️ Reviews filter",
            "enum": [
              "all",
              "withPictures",
              "additionalFeedback"
            ],
            "type": "string",
            "description": "Limit reviews to all, only those with photos, or additional (follow-up) feedback.",
            "default": "all"
          },
          "maxResults": {
            "title": "🎯 Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum products written for the run (per the whole run).",
            "default": 100
          },
          "currency": {
            "title": "💱 Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "AUD",
              "CAD",
              "BRL",
              "RUB",
              "PLN",
              "SEK",
              "AED",
              "SAR",
              "INR"
            ],
            "type": "string",
            "description": "Currency prices are returned in.",
            "default": "USD"
          },
          "shipToCountry": {
            "title": "🌍 Ship to country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BR",
              "AU",
              "CA",
              "PL",
              "SA",
              "AE",
              "IN",
              "MX"
            ],
            "type": "string",
            "description": "Destination country — affects price, shipping and availability.",
            "default": "US"
          },
          "language": {
            "title": "🗣️ Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pt",
              "pl",
              "ru",
              "ar"
            ],
            "type": "string",
            "description": "Language for titles, specs and descriptions.",
            "default": "en"
          },
          "includeRaw": {
            "title": "🧪 Include raw payload",
            "type": "boolean",
            "description": "Attach the untouched source payload to detail records for debugging.",
            "default": false
          },
          "maxConcurrency": {
            "title": "⚡ Max concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel product lookups in the detail modes.",
            "default": 5
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retry budget per request. For product detail this is the number of connection rotations used to clear AliExpress's risk check — more rotations means a higher share of products returning full detail.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Proxy settings. Residential proxy is strongly recommended; product detail needs it.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}