{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Search Scraper: Price Drop Tracker & Exact Orders",
    "description": "Scrapes AliExpress search results with an AliExpress search scraper that tracks price changes. Give it keywords or search URLs; get each product's price, discount, exact orders, rating and whether the price is new, changed or same since the last run.",
    "version": "0.1",
    "x-build-id": "L0Mg0ulrR5WRFcBTY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-aliexpress-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-aliexpress-prices",
        "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/h1018y~anvil-aliexpress-prices/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-aliexpress-prices",
        "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/h1018y~anvil-aliexpress-prices/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-aliexpress-prices",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "One or more AliExpress search terms, one per line, e.g. wireless earbuds. Also accepted under the name searchQueries.",
            "default": [
              "wireless earbuds"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Products per keyword",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum number of products to return per keyword, as a whole number from 1 to 300, e.g. 20.",
            "default": 10
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "orders",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Best match, most orders, or price.",
            "default": "best"
          },
          "country": {
            "title": "Deliver to (country code)",
            "type": "string",
            "description": "Two-letter code, e.g. US, DE, KR.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code, e.g. USD, EUR.",
            "default": "USD"
          },
          "minOrders": {
            "title": "Minimum orders",
            "type": "integer",
            "description": "Keep products with at least this many orders (exact count when AliExpress gives it).",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "number",
            "description": "Keep only products rated at least this many stars, a number from 0 to 5, e.g. 4.5. Use 0 for no filter.",
            "default": 0
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "type": "integer",
            "description": "Keep products discounted at least this much.",
            "default": 0
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products tagged free shipping.",
            "default": false
          },
          "includeAds": {
            "title": "Include sponsored listings",
            "type": "boolean",
            "description": "Set true to also return sponsored (advertised) listings; false (default) skips them, e.g. false.",
            "default": false
          },
          "useApifyProxy": {
            "title": "Use Apify proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy (true/false). Recommended because the site limits plain data-center traffic, e.g. true.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Optional list of Apify Proxy group names to use, e.g. [\"RESIDENTIAL\"]. Leave empty for the default group.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "number",
            "description": "Keep products priced at least this much (in the chosen currency).",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "number",
            "description": "Keep products priced at most this much. 0 = no limit.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new or changed products",
            "type": "boolean",
            "description": "Return only products that are new or changed price since the last run with the same input. Use it on a schedule.",
            "default": false
          },
          "searchQueries": {
            "title": "Search queries (same as keywords)",
            "type": "array",
            "description": "Alias of keywords for drop-in use, one search term per line, e.g. phone case.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional full AliExpress search or category URLs, e.g. https://www.aliexpress.com/w/wholesale-lamp.html",
            "items": {
              "type": "string"
            }
          },
          "shipTo": {
            "title": "Ship-to country (same as country)",
            "type": "string",
            "description": "Two-letter delivery country code used when country is empty, e.g. DE."
          },
          "sort": {
            "title": "Sort (same as sortBy)",
            "type": "string",
            "description": "Alias of sortBy: best, orders, priceAsc or priceDesc, e.g. orders."
          },
          "choiceOnly": {
            "title": "Choice items only",
            "type": "boolean",
            "description": "Keep only AliExpress Choice listings, true or false, e.g. true.",
            "default": false
          },
          "webhookUrl": {
            "title": "Send results to (webhook URL)",
            "type": "string",
            "description": "Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}