{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Products Scraper",
    "description": "Search AliExpress by keyword, search or category link. Get price, discount, rating, exact sold count, sales per day, estimated revenue, shipping and delivery for every product as clean JSON. Find trending products. Bulk input, no account or cookies needed.",
    "version": "1.0",
    "x-build-id": "KraqIhyOBUaSTTJM7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~aliexpress-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-aliexpress-products-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/insights_data~aliexpress-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-aliexpress-products-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/insights_data~aliexpress-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-aliexpress-products-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": {
          "urls": {
            "title": "🛒 Keywords or AliExpress links",
            "type": "array",
            "description": "Search keywords (for example wireless earbuds), AliExpress search links or category links. Add as many as you like; every entry is collected on its own.",
            "default": [
              "wireless earbuds"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "📊 Max products per input",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Products to collect for each keyword or link. 0 = everything the site offers (up to about 3,600 per search).",
            "default": 20
          },
          "sortBy": {
            "title": "📈 Sort by",
            "enum": [
              "best_match",
              "orders",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "best_match"
          },
          "country": {
            "title": "🌎 Shopper country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "PL",
              "PT",
              "BR",
              "RU",
              "MX",
              "CA",
              "AU",
              "NZ",
              "SA",
              "AE",
              "IL",
              "TR",
              "IN",
              "JP",
              "KR",
              "SG",
              "MY",
              "TH",
              "ID",
              "PH",
              "VN",
              "ZA",
              "EG",
              "UA",
              "KZ",
              "SE",
              "NO",
              "DK",
              "CH",
              "CZ",
              "CL",
              "HU",
              "RO",
              "BG",
              "BE",
              "AT",
              "IE",
              "FI",
              "GR",
              "BD"
            ],
            "type": "string",
            "description": "Sets the currency, prices and free-shipping offers you see.",
            "default": "US"
          },
          "freeShipping": {
            "title": "🚚 Free shipping only",
            "type": "boolean",
            "description": "Keep only products with free shipping to your country.",
            "default": false
          },
          "choiceOnly": {
            "title": "🏅 Choice products only",
            "type": "boolean",
            "description": "Keep only products with the Choice badge.",
            "default": false
          },
          "onSaleOnly": {
            "title": "💸 Discounted products only",
            "type": "boolean",
            "description": "Keep only products that show a discount.",
            "default": false
          },
          "localWarehouseOnly": {
            "title": "🏭 Local warehouse only",
            "type": "boolean",
            "description": "Keep only products offered with local-warehouse delivery.",
            "default": false
          },
          "excludeSponsored": {
            "title": "🚫 Hide sponsored products",
            "type": "boolean",
            "description": "Remove sponsored (advertised) slots from the results.",
            "default": false
          },
          "shipFrom": {
            "title": "🛫 Ships from",
            "enum": [
              "any",
              "CN",
              "US",
              "ES",
              "FR",
              "DE",
              "PL",
              "IT",
              "GB",
              "NL",
              "CZ",
              "RU",
              "BR",
              "KR",
              "AU"
            ],
            "type": "string",
            "description": "Keep only products shipped from this country.",
            "default": "any"
          },
          "minRating": {
            "title": "⭐ Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep products rated at least this many stars (0 = any).",
            "default": 0
          },
          "minSold": {
            "title": "🔥 Minimum sold",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products sold at least this many times (0 = any).",
            "default": 0
          },
          "minPrice": {
            "title": "💵 Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest price in the shopper currency (0 = no minimum).",
            "default": 0
          },
          "maxPrice": {
            "title": "💰 Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Highest price in the shopper currency (0 = no maximum).",
            "default": 0
          },
          "skipKnownProducts": {
            "title": "🧹 Skip products from an earlier run",
            "type": "string",
            "description": "Pick a dataset from a previous run. Products already in it are skipped and not charged, so a repeat run returns only new products."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Leave off for automatic handling.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}