{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Search Scraper — Prices & Orders",
    "description": "$1.50/1000 results. Give it keywords or AliExpress search URLs and get one row per product, in 24 countries: price, original price, discount, exact order count, rating, ships-from, Choice badge and ads flag.",
    "version": "0.1",
    "x-build-id": "n9sg6wzJgIKh7kxht"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/riseandcode~aliexpress-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-riseandcode-aliexpress-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/riseandcode~aliexpress-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-riseandcode-aliexpress-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/riseandcode~aliexpress-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-riseandcode-aliexpress-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search, one per line, as typed in the AliExpress search box. Each term is a separate search, charged per product delivered, up to \"Max products per search\". Provide search terms, search URLs, or both.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional: AliExpress search result URLs copied from the browser after filtering on the site (brand, color, category…); any AliExpress domain works. Each URL is one search, scraped as is: Sort by and the filters below don't apply to it, but Country (currency and language) does.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max products per search",
            "minimum": 20,
            "maximum": 3600,
            "type": "integer",
            "description": "Products to collect for each search term or URL: minimum 20, maximum 3600, default 100. Each product delivered is charged. AliExpress stops at 60 pages and repeats products on deep pages, so one search yields at most about 2,000–2,700 unique products; filters and narrow terms yield fewer.",
            "default": 100
          },
          "country": {
            "title": "Country",
            "enum": [
              "US",
              "BR",
              "GB",
              "CA",
              "AU",
              "MX",
              "CL",
              "CO",
              "ES",
              "FR",
              "DE",
              "IT",
              "PT",
              "NL",
              "BE",
              "CH",
              "PL",
              "UA",
              "TR",
              "IL",
              "SA",
              "AE",
              "KR",
              "JP"
            ],
            "type": "string",
            "description": "AliExpress country site (default US). Sets the currency of the prices, the language of the titles and which local warehouses count. Applies to search terms and search URLs. One country per run: start one run per country to compare markets.",
            "default": "US"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "orders",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Result order, as on the site: best match (default), most orders, price low to high, price high to low. Search terms only. Sponsored products (ads) appear only with best match.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or above this, in the selected country's currency (e.g. BRL for Brazil, EUR for Germany). Search terms only."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Only products priced at or below this, in the selected country's currency. Must not be lower than Min price. Search terms only."
          },
          "minOrders": {
            "title": "Min orders",
            "minimum": 0,
            "type": "integer",
            "description": "Only products with at least this many orders (the exact count in the orders field). Products without order data are left out. Applies to search terms and search URLs; products below it are never delivered or charged. With Most orders sorting, the search stops once the products drop below it."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products rated at least this many stars, e.g. 4.5. Products without a rating yet are left out. Applies to search terms and search URLs; products below it are never delivered or charged."
          },
          "choiceOnly": {
            "title": "Choice products only",
            "type": "boolean",
            "description": "Only products with the AliExpress Choice badge (AliExpress's own filter; a few featured-store products may slip in — check isChoice). Search terms only.",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products with free shipping to the selected country. Search terms only.",
            "default": false
          },
          "fourStarsAndUp": {
            "title": "4 stars & up only",
            "type": "boolean",
            "description": "Only products rated 4 stars or more (the same as Min rating 4). Products without a rating yet are left out. Applies to search terms and search URLs; products below it are never delivered or charged.",
            "default": false
          },
          "shipsFromCountryOnly": {
            "title": "Ships from the selected country only",
            "type": "boolean",
            "description": "Only products shipped from a warehouse in the selected country (faster delivery). Products from elsewhere are never delivered or charged. Local stock exists in US, BR, GB, AU, MX, ES, FR, DE, IT, PL, KR and JP; in other countries the search returns nothing. Search terms only.",
            "default": false
          },
          "excludeAds": {
            "title": "Exclude ads",
            "type": "boolean",
            "description": "Skip sponsored products. Skipped ads are not charged and don't count toward Max products per search. Ads only appear with best-match sorting, so this has no effect with other sort orders.",
            "default": false
          },
          "monitorPriceChanges": {
            "title": "Only new products and price changes",
            "type": "boolean",
            "description": "Price monitoring for scheduled runs. The first run delivers every product and saves it as the baseline; later runs with the same searches, country and watch name deliver only products new to the watch (changeType \"new\") and products whose price changed (changeType \"price_changed\", with previousPrice, priceChange and priceChangePercent). A new price is reported once it shows up on two runs in a row, which filters out short promotions. Max products per search is then how many products are checked; only the delivered ones are charged.",
            "default": false
          },
          "monitorName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name of the price watch, kept in a key-value store of your account. Use the same name on every run of one schedule, and a different name for each separate watch. Changing the search, country, sort or filters starts a new baseline. Default: \"default\"."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}