{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Product Search & Details",
    "description": "Search AliExpress by keyword or paste search, category, store or product links. Get prices, ratings, orders and delivery for every product, plus opt-in full details: all variants with price and stock, specs, store rating, shipping options, video and reviews.",
    "version": "0.1",
    "x-build-id": "RhS5Ta3pJgxpMB9qA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~aliexpress-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-aliexpress-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/automatic~aliexpress-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-aliexpress-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/automatic~aliexpress-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-aliexpress-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 keywords, each searched on AliExpress like the search box (for example \"phone case\" or \"wireless earbuds\"). The sort and filter options below apply to these searches.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "AliExpress links or product ids",
            "maxItems": 1000,
            "type": "array",
            "description": "Up to 1,000 links: product pages (https://www.aliexpress.com/item/1005002625330272.html), search results, category pages or store pages (https://www.aliexpress.com/store/911424314). Bare product ids work too. Product links always come with full details. A typo or a removed product is skipped and named in the run summary; the others still run.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Products per search",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "How many products each keyword, search link, category or store returns (AliExpress shows up to 60 pages of 60).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full product details",
            "type": "boolean",
            "description": "Add every variant (SKU) with its own price and stock, specifications, store info and rating, shipping options with delivery dates, all images and the video, plus the review summary and top reviews. Charged per product with details (see Pricing).",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Also collect up to this many reviews for each product (0 = none). Each review is charged separately (see Pricing).",
            "default": 0
          },
          "shipTo": {
            "title": "Ship to country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BE",
              "PL",
              "PT",
              "IE",
              "AT",
              "CH",
              "SE",
              "NO",
              "DK",
              "FI",
              "CZ",
              "SK",
              "HU",
              "RO",
              "BG",
              "GR",
              "HR",
              "SI",
              "LT",
              "LV",
              "EE",
              "LU",
              "CA",
              "AU",
              "NZ",
              "MX",
              "BR",
              "CL",
              "CO",
              "PE",
              "AR",
              "UY",
              "IL",
              "SA",
              "AE",
              "QA",
              "KW",
              "KR",
              "JP",
              "SG",
              "MY",
              "TH",
              "PH",
              "VN",
              "ID",
              "TR",
              "UA",
              "KZ",
              "MA",
              "ZA",
              "NG",
              "EG",
              "IN",
              "PK"
            ],
            "type": "string",
            "description": "Prices, shipping and delivery dates are shown for this destination country.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "BRL",
              "MXN",
              "CLP",
              "COP",
              "PEN",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "TRY",
              "UAH",
              "ILS",
              "SAR",
              "AED",
              "KRW",
              "JPY",
              "SGD",
              "MYR",
              "THB",
              "PHP",
              "VND",
              "IDR",
              "INR",
              "KZT",
              "ZAR",
              "MAD"
            ],
            "type": "string",
            "description": "Currency of all prices.",
            "default": "USD"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "orders",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of keyword search and store results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Only products from this price (in the chosen currency)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Only products up to this price (in the chosen currency)."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products rated at least this many stars (0 to 5). Products without a rating yet are left out when set."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products with free shipping to your country.",
            "default": false
          },
          "choiceOnly": {
            "title": "Choice products only",
            "type": "boolean",
            "description": "Only AliExpress Choice products.",
            "default": false
          },
          "shipFrom": {
            "title": "Ships from",
            "enum": [
              "CN",
              "US",
              "ES",
              "FR",
              "DE",
              "IT",
              "PL",
              "GB",
              "CZ",
              "BE",
              "NL",
              "BR",
              "KR",
              "TR",
              "RU",
              "SA",
              "AE",
              "AU",
              "MX",
              "CL",
              "IL",
              "UA",
              "VN",
              "PT",
              "HU",
              "JP"
            ],
            "type": "string",
            "description": "Only products shipped from this country, for example from a US or EU warehouse for faster delivery."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}