{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Search Scraper: Products, Prices & Sold Counts",
    "description": "AliExpress product scraper for dropshipping and price research: search by keyword or URL and get product id, title, price, discount, rating, exact sold count, sponsored flag, Choice, shipping and delivery days. Pick the ship-to country, currency and language; sort, price and free shipping filters.",
    "version": "0.1",
    "x-build-id": "dWbX1OMMs660ic4gs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteacs~aliexpress-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteacs-aliexpress-search",
        "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/siteacs~aliexpress-search/runs": {
      "post": {
        "operationId": "runs-sync-siteacs-aliexpress-search",
        "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/siteacs~aliexpress-search/run-sync": {
      "post": {
        "operationId": "run-sync-siteacs-aliexpress-search",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms, one per line, as a shopper types them into the AliExpress search box, in any language (\"phone case\", \"handyhülle\", \"capinha celular\"). Use Bulk edit to paste a long list. Duplicates are searched once.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional. AliExpress search result pages copied from the browser (https://www.aliexpress.com/w/wholesale-phone-case.html?...), with the sort, price range, free shipping, Choice and ships-from filters you set there. m.aliexpress.com links are read on www. AliExpress ignores the category and \"4 stars & up\" filters for a visitor who is not signed in: a search whose results do not match its filters gets a free filter_ignored row. A URL keeps its own sort and filters; the ones below are added only where the URL has none. Its site (de., fr., pt....) sets the language unless you pick one below. A URL that is not a search page (a product or category page) gets a free summary row saying why, and the rest of the run goes on.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Ship to",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BE",
              "AT",
              "IE",
              "PT",
              "FI",
              "GR",
              "PL",
              "CZ",
              "HU",
              "RO",
              "SE",
              "DK",
              "NO",
              "CH",
              "UA",
              "TR",
              "IL",
              "SA",
              "AE",
              "BR",
              "MX",
              "CL",
              "CO",
              "PE",
              "AR",
              "CA",
              "AU",
              "NZ",
              "JP",
              "KR",
              "SG",
              "MY",
              "TH",
              "PH",
              "ID",
              "VN",
              "IN",
              "ZA",
              "NG",
              "MA",
              "EG",
              "KZ"
            ],
            "type": "string",
            "description": "The country in the \"Ship to\" box of AliExpress. It decides which products are offered, the prices (VAT, local deals), shipping and delivery estimates, as a shopper there sees them.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "AED",
              "AUD",
              "BRL",
              "CAD",
              "CHF",
              "CLP",
              "COP",
              "CZK",
              "DKK",
              "EGP",
              "EUR",
              "GBP",
              "HUF",
              "IDR",
              "ILS",
              "INR",
              "JPY",
              "KRW",
              "KZT",
              "MAD",
              "MXN",
              "MYR",
              "NGN",
              "NOK",
              "NZD",
              "PEN",
              "PHP",
              "PLN",
              "RON",
              "SAR",
              "SEK",
              "SGD",
              "THB",
              "TRY",
              "UAH",
              "USD",
              "VND",
              "ZAR"
            ],
            "type": "string",
            "description": "Optional. The currency of the prices. Empty: the usual currency of the ship-to country (USD for the US, EUR for Germany, BRL for Brazil...). Each summary row says which currency AliExpress answered in."
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "pt",
              "it",
              "nl",
              "pl",
              "tr",
              "ja",
              "ko",
              "ar",
              "he",
              "th",
              "vi"
            ],
            "type": "string",
            "description": "Optional. The language of titles and labels, i.e. the AliExpress site that is read. Empty: English, or the site of a pasted search URL."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "best-match",
              "orders",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "The Sort by menu of AliExpress. It no longer offers a newest-first sort; each row carries its launchDate instead.",
            "default": "best-match"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. The AliExpress price filter, in the currency above (whole units)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. The AliExpress price filter, in the currency above (whole units)."
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "The AliExpress \"Free shipping\" filter, for the ship-to country.",
            "default": false
          },
          "choiceOnly": {
            "title": "Choice only",
            "type": "boolean",
            "description": "The AliExpress \"Choice\" filter: products in its Choice program.",
            "default": false
          },
          "shipFrom": {
            "title": "Ships from",
            "type": "string",
            "description": "Optional. The AliExpress \"Ships from\" filter: a two-letter country code such as CN, US, DE, ES or FR (the warehouse country). Cards that ship from another country (AliExpress falls back to them when a keyword has no offers there) are not saved or charged."
          },
          "maxPages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many result pages to read for each search, in order. A page holds up to 60 products. A search stops earlier at the last page AliExpress has.",
            "default": 1
          },
          "maxResultsPerKeyword": {
            "title": "Max products per search",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Optional: stop each search after this many product rows (sponsored ones included when kept). When set, it replaces \"Pages per search\": pages are read until the limit or the last page. 0 or empty: no limit. At most 3,600 (60 pages of 60)."
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "On: sponsored (ad) cards are saved too, with sponsored: true, in the place they hold on the page. Off: only organic products are saved (and charged); positions still count the sponsored places.",
            "default": true
          },
          "skipWelcomeGifts": {
            "title": "Skip welcome gifts",
            "type": "boolean",
            "description": "AliExpress shows first-time buyers some cards with no price: a free gift with any purchase (\"FREE with any purchase\"). Off (default): they are saved with isWelcomeGift: true and are not charged. On: they are left out of the results entirely. Positions still count their places on the page.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Searches at a time",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many searches run in parallel. The pages of one search are read in order, on one proxy session.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default). A page AliExpress refuses is retried on another IP.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry refused pages over residential proxy",
            "type": "boolean",
            "description": "On (default): a page AliExpress still refuses after 6 datacenter IPs is tried through Apify residential proxy, within a traffic budget per run. No extra charge to you.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}