{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Scraper: Winning Products, Niche Research & Variants",
    "description": "AliExpress product research: each search summed up as a niche (price bands, orders, Choice share) with its rising products, new listings selling fastest by orders a month. Plus every variant's price and stock, shipping to your country, store and reviews, with price alerts. No browser.",
    "version": "0.1",
    "x-build-id": "fsBxMI5qZDO1z2AMS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~aliexpress/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-aliexpress",
        "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/pikoulas~aliexpress/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-aliexpress",
        "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/pikoulas~aliexpress/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-aliexpress",
        "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, as you would type them into AliExpress's search box. Each is searched with the sort and filters below.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "AliExpress URLs",
            "type": "array",
            "description": "Search URLs (aliexpress.com/w/wholesale-...html) with any sort and filters set on the site, category URLs (aliexpress.com/category/...), or product URLs (aliexpress.com/item/...html, any country's site, aliexpress.us too). Products by URL always come with their details.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product ids",
            "type": "array",
            "description": "AliExpress product ids, like 1005009463232289. Always with their details.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSearch": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "Per search term or URL. AliExpress shows at most 60 pages of 60 results, 3,600 products, of a search.",
            "default": 100
          },
          "includeNicheSummary": {
            "title": "Niche summary",
            "type": "boolean",
            "description": "A row per search after its products, free: its price range and price bands with their orders, total and median orders, Choice and free-shipping shares, how many products are new (listed in the last 180 days) and the rising ones, selling the most orders a month since listed, and the best sellers. Not given with New and repriced only.",
            "default": true
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Get each product's page data too: reviews count, store (name, id, positive rate, followers, country), all images and video, shipping options with cost and delivery days, stock, specifications, variants with their prices and stock, and the description. Charged as a product with details; off gives the search cards only, cheaper and many times faster.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Reviews of every product the run gives, in AliExpress's own order: stars, text and its translation, photos, date, buyer's country and variant. 0 for none.",
            "default": 0
          },
          "shipTo": {
            "title": "Ship to",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "The country to ship to, as its two-letter code: US, GB, DE, FR, ES, IT, NL, PL, BR, CA, AU, JP, KR... Prices, shipping costs and delivery times are those for it.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "pattern": "^([A-Za-z]{3})?$",
            "type": "string",
            "description": "Three letters: USD, EUR, GBP, CAD, AUD, BRL, PLN, JPY, KRW... Empty for the ship-to country's own.",
            "default": ""
          },
          "language": {
            "title": "Language",
            "enum": [
              "en_US",
              "de_DE",
              "fr_FR",
              "es_ES",
              "it_IT",
              "pt_BR",
              "nl_NL",
              "pl_PL",
              "tr_TR",
              "ru_RU",
              "ja_JP",
              "ko_KR",
              "ar_MA",
              "iw_IL"
            ],
            "type": "string",
            "description": "The language of titles, specifications and review translations.",
            "default": "en_US"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "best-match",
              "orders",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "The order of the search results, for search terms.",
            "default": "best-match"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the run's currency, for search terms."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "In the run's currency, for search terms."
          },
          "shipFrom": {
            "title": "Ships from",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Only products shipped from this country, as its two-letter code (CN, US, FR, ES, DE...), for search terms. Empty for any.",
            "default": ""
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "AliExpress's free shipping filter, for search terms. It keeps products with free shipping over an order amount too.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "0",
              "4",
              "4.5",
              "4.8"
            ],
            "type": "string",
            "description": "Only products rated at least this many stars. Products without a rating are left out.",
            "default": "0"
          },
          "trackChanges": {
            "title": "New and repriced only",
            "type": "boolean",
            "description": "Give, and charge for, only the products no earlier run with the same memory gave, and those whose price changed since, marked as a price drop or rise with the earlier price. The unchanged ones get no details or reviews either. Schedule it daily for price alerts.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "One per alert, so two schedules don't share a memory. Kept in your account's key-value store aliexpress-memory; a product not seen for 30 days is forgotten.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed to start. AliExpress refuses an IP after a few dozen pages, and product details to most IPs: on the Apify platform the run then switches to Apify's residential proxy in the ship-to country by itself, adding its traffic to the cost. Search cards have stars and orders only for an IP in the ship-to country (or near it).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}