{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Scraper + AI Analysis",
    "description": "AI-powered AliExpress scraper with fake review detection, sentiment analysis, and quality scoring. Scrape products, reviews, seller data, shipping info, and variants. 4 modes: Search, Category, Product URLs, Store. AI analysis powered by Claude — no API key needed.",
    "version": "1.0",
    "x-build-id": "rypMbiXGJc1newLQo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/buseta~aliexpress-advanced-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-buseta-aliexpress-advanced-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/buseta~aliexpress-advanced-scraper/runs": {
      "post": {
        "operationId": "runs-sync-buseta-aliexpress-advanced-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/buseta~aliexpress-advanced-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-buseta-aliexpress-advanced-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",
        "required": [
          "scrape_type"
        ],
        "properties": {
          "scrape_type": {
            "title": "Scraping Type",
            "enum": [
              "search",
              "category",
              "product",
              "store"
            ],
            "type": "string",
            "description": "Type of scraping to perform: Search, Category, Product List, or Store"
          },
          "search": {
            "title": "Search Keyword",
            "type": "string",
            "description": "(if Search): Keyword to search on AliExpress"
          },
          "category_url": {
            "title": "Category URL",
            "type": "string",
            "description": "(if Category): AliExpress category URL to scrape"
          },
          "product_urls": {
            "title": "Product URLs",
            "type": "array",
            "description": "(if Product List): List of AliExpress product URLs to scrape",
            "default": [
              "https://www.aliexpress.com/item/1005006474515657.html"
            ]
          },
          "store_url": {
            "title": "Store URL",
            "type": "string",
            "description": "(if Store): AliExpress store/seller URL to scrape all products from"
          },
          "country": {
            "title": "Ship-To Country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "AU",
              "CA",
              "ES",
              "IT",
              "NL",
              "BR",
              "RU",
              "TR",
              "PL",
              "SE"
            ],
            "type": "string",
            "description": "Destination country for shipping estimates and pricing",
            "default": "US"
          },
          "sort_by": {
            "title": "Sort Products By",
            "enum": [
              "best_match",
              "orders",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Products will be sorted by this option (search/category only)",
            "default": "best_match"
          },
          "min_price": {
            "title": "Minimum Price (USD)",
            "type": "integer",
            "description": "Minimum price filter in USD"
          },
          "max_price": {
            "title": "Maximum Price (USD)",
            "type": "integer",
            "description": "Maximum price filter in USD"
          },
          "max_products": {
            "title": "Maximum Products",
            "type": "integer",
            "description": "Maximum number of products to scrape",
            "default": 50
          },
          "get_reviews": {
            "title": "Get Reviews",
            "type": "boolean",
            "description": "Also scrape reviews from each product (via AliExpress review API)",
            "default": true
          },
          "max_reviews_per_product": {
            "title": "Maximum Reviews Per Product",
            "type": "integer",
            "description": "Maximum number of reviews to scrape per product",
            "default": 20
          },
          "ai_analysis": {
            "title": "AI Review Analysis",
            "type": "boolean",
            "description": "AI-powered review analysis for each product: sentiment summary (top pros/cons), fake review detection (authenticity score 0-100), quality trend, and overall quality score. Powered by Claude AI — no API key needed, billed through your Apify account.",
            "default": true
          },
          "proxy_config": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are required for AliExpress. Without proxy, pages will be blocked by anti-bot protection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}