{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Scraper ($0.55/1K): Products, Variants & Prices",
    "description": "Scrape AliExpress search results priced for your country: price, discount, rating, units sold, Choice, ships-from. Optional variants with stock, shipping and store. Price history, deal score and price drop alerts to Telegram, Slack or Discord. Unofficial.",
    "version": "0.0",
    "x-build-id": "TZ4W1KA3lIpkIGhPy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsutseisoftware~aliexpress-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsutseisoftware-aliexpress-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/tsutseisoftware~aliexpress-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tsutseisoftware-aliexpress-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/tsutseisoftware~aliexpress-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tsutseisoftware-aliexpress-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Words to search on AliExpress, e.g. \"phone case\", \"led strip\", \"wireless earbuds\". Each is a separate search with the sort order and filters below.",
            "items": {
              "type": "string"
            }
          },
          "shipTo": {
            "title": "Deliver to",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BE",
              "AT",
              "IE",
              "PT",
              "FI",
              "GR",
              "LU",
              "SK",
              "SI",
              "EE",
              "LV",
              "LT",
              "HR",
              "CY",
              "MT",
              "BG",
              "CZ",
              "PL",
              "HU",
              "RO",
              "DK",
              "SE",
              "NO",
              "CH",
              "CA",
              "AU",
              "NZ",
              "MX",
              "BR",
              "CL",
              "JP",
              "KR",
              "IL",
              "SA",
              "AE",
              "TR",
              "UA",
              "SG",
              "MY",
              "TH",
              "VN",
              "PH",
              "PK",
              "HK",
              "TW",
              "CO",
              "AR",
              "PE",
              "ZA",
              "EG",
              "NG",
              "MA",
              "QA",
              "KW",
              "IS",
              "RS"
            ],
            "type": "string",
            "description": "The country AliExpress prices the products for, like the \"Ship to\" menu of the website. Prices come in the currency of the country; shipping, delivery dates and availability (with \"Add product details\") are for this country.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "",
              "AED",
              "ARS",
              "AUD",
              "BRL",
              "CAD",
              "CHF",
              "CLP",
              "COP",
              "CZK",
              "DKK",
              "EGP",
              "EUR",
              "GBP",
              "HKD",
              "HUF",
              "ILS",
              "ISK",
              "JPY",
              "KRW",
              "KWD",
              "MAD",
              "MXN",
              "MYR",
              "NGN",
              "NOK",
              "NZD",
              "PEN",
              "PHP",
              "PKR",
              "PLN",
              "QAR",
              "RON",
              "RSD",
              "SAR",
              "SEK",
              "SGD",
              "THB",
              "TRY",
              "TWD",
              "UAH",
              "USD",
              "VND",
              "ZAR"
            ],
            "type": "string",
            "description": "Prices in another currency than the one of \"Deliver to\", e.g. USD for every country. \"Min price\" and \"Max price\" are in this currency.",
            "default": ""
          },
          "language": {
            "title": "Language",
            "enum": [
              "en_US",
              "de_DE",
              "fr_FR",
              "es_ES",
              "it_IT",
              "nl_NL",
              "pl_PL",
              "pt_BR",
              "ru_RU",
              "tr_TR",
              "ja_JP",
              "ko_KR",
              "ar_MA",
              "iw_IL",
              "in_ID",
              "th_TH",
              "vi_VN"
            ],
            "type": "string",
            "description": "Language of the titles, specifications and shipping texts, as the website shows them in that language (independent of \"Deliver to\").",
            "default": "en_US"
          },
          "maxItems": {
            "title": "Max products",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of products saved. You pay per saved product. 0 = no limit. In monitoring mode it is the number of products watched per search instead: the first N in the website's order (see the Monitoring section).",
            "default": 100
          },
          "includeDetails": {
            "title": "Add product details",
            "type": "boolean",
            "description": "Read each product's own data: every variant (SKU) with its price, stock and image, the total stock, shipping cost, carrier and delivery dates to your \"Deliver to\" country, the store (name, ID, URL, country, opening date, positive rate and ratings), specifications, all photos, review count, category and coupons. AliExpress does not always give these data: a product without them is saved with its search data, and the details are charged only for products that have them (see the Pricing tab). Off: the data of the search (title, price, list price, discount, rating, units sold, Choice, free shipping, badges, ships from, photo).",
            "default": false
          },
          "includeComplianceContacts": {
            "title": "Manufacturer and EU contact (paid extra)",
            "type": "boolean",
            "description": "With \"Add product details\": the manufacturer and the person responsible for the product in the EU (name, address, e-mail, phone; manufacturer, euResponsiblePerson), as AliExpress publishes them under the EU product safety rules. Usually companies, sometimes a person: that is personal data, and you are responsible for using it lawfully (GDPR in the EU). Charged per product that has them (see the Pricing tab). The product identifier and EAN come with the details anyway.",
            "default": false
          },
          "includeShipping": {
            "title": "Add shipping options",
            "type": "boolean",
            "description": "For every product, every delivery option AliExpress offers to your \"Deliver to\" country (and to the countries in \"Shipping to countries\"): carrier, shipping fee and currency, delivery days and dates, the warehouse country, tracking, and whether AliExpress delivers the product there at all. Charged as \"Shipping\" per product and country (see the Pricing tab); with \"Add product details\" the \"Deliver to\" country is part of the details.",
            "default": false
          },
          "includeDescription": {
            "title": "Add product description",
            "type": "boolean",
            "description": "With \"Add product details\" (or product URLs): the seller's description of the product as plain text, and its photos (descriptionText, descriptionImages), at no extra cost. Makes runs a little slower.",
            "default": false
          },
          "shippingCountries": {
            "title": "Shipping to countries",
            "type": "array",
            "description": "More countries to get the shipping options for, any country as a two-letter code or English name, e.g. DE, France, Algeria (at most 10). Turns on \"Add shipping options\". Every row then has shippingByCountry with the fee, carrier and delivery days for each country.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product URLs or IDs",
            "type": "array",
            "description": "Products to read with their own data, e.g. https://www.aliexpress.com/item/1005006959700436.html (any AliExpress country site), just 1005006959700436, or a share or affiliate link from the app (https://a.aliexpress.com/_..., https://s.click.aliexpress.com/e/_...). Charged like a product with \"Add product details\". When AliExpress does not give a product's data, the run says so and nothing is charged for it.",
            "items": {
              "type": "string"
            }
          },
          "storeUrls": {
            "title": "Store URLs",
            "type": "array",
            "description": "Every product of these stores, e.g. https://www.aliexpress.com/store/1102530427 (any page of the store works, or just the store number). The products a store sells to your \"Deliver to\" country, with the filters below applied; \"Max products per search\" limits each store.",
            "items": {
              "type": "string"
            }
          },
          "storeSort": {
            "title": "Store products: order",
            "enum": [
              "default",
              "orders",
              "price_asc",
              "price_desc",
              "rating"
            ],
            "type": "string",
            "description": "Sorting other than the store's own order reads the whole store first (one request per 40 products).",
            "default": "default"
          },
          "startUrls": {
            "title": "AliExpress search URLs",
            "type": "array",
            "description": "Searches copied from the browser, with any filters and sort order set on the website, e.g. https://www.aliexpress.com/w/wholesale-phone-case.html?SortType=total_tranpro_desc. Product URLs category pages (https://www.aliexpress.com/category/100003109/women-clothing.html) and store pages work here too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "orders",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "The website's sort order of the keyword searches (pasted URLs keep their own).",
            "default": "default"
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Search within one AliExpress category: the number from a category URL of the website's category menu, e.g. 44 from https://www.aliexpress.com/category/44/consumer-electronics.html. With no keywords the whole category is listed. AliExpress lists some categories (many numbers in the categoryId of the results, and some menu categories in some countries) only together with keywords; such a category without keywords stops the run with a message that says so."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "The website's price filter, in the currency of the prices (see \"Currency\")."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "The website's price filter, in the currency of the prices (see \"Currency\")."
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "The website's \"Free shipping\" filter. The actor checks every product again and leaves out (free of charge) those the website shows without free shipping, except Choice products: AliExpress ships them free over the Choice minimum order and its own filter lists them (their freeShipping can be false).",
            "default": false
          },
          "choiceOnly": {
            "title": "Choice only",
            "type": "boolean",
            "description": "The website's \"Choice\" filter (AliExpress Choice products: faster delivery, free returns). Products the website shows without the Choice mark are left out, free of charge.",
            "default": false
          },
          "fourStarsUp": {
            "title": "4 stars & up",
            "type": "boolean",
            "description": "The website's rating filter: products rated 4 stars and more (products rated lower are left out).",
            "default": false
          },
          "saleOnly": {
            "title": "Sale only",
            "type": "boolean",
            "description": "The website's filter of its current sale event (e.g. 11.11 Sale): only products in the sale. When AliExpress runs no sale event, the search has no products.",
            "default": false
          },
          "shipFrom": {
            "title": "Ships from",
            "enum": [
              "",
              "CN",
              "US",
              "DE",
              "ES",
              "FR",
              "IT",
              "PL",
              "CZ",
              "GB",
              "BR",
              "KR",
              "TR",
              "MX",
              "AU",
              "BE",
              "NL",
              "SA",
              "AE"
            ],
            "type": "string",
            "description": "Only products shipped from this country (local warehouses, e.g. DE, ES, PL, US). AliExpress does not always keep this filter beyond the first page; the actor leaves out (free of charge) products that ship from elsewhere.",
            "default": ""
          },
          "shipsFromLocal": {
            "title": "Ships from your country",
            "type": "boolean",
            "description": "The website's \"Local+\" filter: only products shipped from a warehouse in the \"Deliver to\" country (where AliExpress offers it, e.g. the US). Checked on every product like \"Ships from\".",
            "default": false
          },
          "attributeFilters": {
            "title": "Website filters",
            "type": "array",
            "description": "The website's own filters of a search, e.g. one brand, a material or a colour, as the values \"Add search insights\" lists (2250-4201728 = brand Vention in \"usb c hub\"). Several values narrow the search together.",
            "items": {
              "type": "string"
            }
          },
          "includeSearchInsights": {
            "title": "Add search insights",
            "type": "boolean",
            "description": "For every search, in the SUMMARY record of the run: the number of results, related and popular searches, and the website's filters with their values (brands, materials, colours, ships from...), ready for \"Website filters\". Free.",
            "default": false
          },
          "maxItemsPerSearch": {
            "title": "Max products per search",
            "minimum": 0,
            "type": "integer",
            "description": "Save at most this many products of every search. 0 = no limit (only \"Max products\"). In monitoring mode: the number of products watched per search.",
            "default": 0
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Read at most this many pages (60 products each) of every search. AliExpress shows at most 60 pages. 0 = no limit.",
            "default": 0
          },
          "titleKeywords": {
            "title": "Title must contain",
            "type": "array",
            "description": "Keep only products whose title contains these words (see \"Keywords must match\").",
            "items": {
              "type": "string"
            }
          },
          "keywordsMode": {
            "title": "Keywords must match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "How \"Title must contain\" is applied.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Title must not contain",
            "type": "array",
            "description": "Skip products whose title contains any of these words, e.g. \"case\", \"film\", \"sticker\".",
            "items": {
              "type": "string"
            }
          },
          "excludeAds": {
            "title": "Exclude ads",
            "type": "boolean",
            "description": "Skip products the website shows as ads (every row has isAd either way).",
            "default": false
          },
          "excludeFreeGifts": {
            "title": "Exclude free gifts",
            "type": "boolean",
            "description": "Skip listings that AliExpress gives free with any purchase (they have no price of their own; every row has isFreeGift either way).",
            "default": true
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only products rated at least this (1-5). Products without a rating are left out."
          },
          "minSold": {
            "title": "Min units sold",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only products with at least this many units sold. Products without the number are left out."
          },
          "minDiscountPercent": {
            "title": "Min discount (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only products discounted by at least this many percent from the list price."
          },
          "onlyInStock": {
            "title": "Only in stock",
            "type": "boolean",
            "description": "With \"Add product details\": skip products whose stock is 0 (they are not charged). Products whose details AliExpress did not give are kept.",
            "default": false
          },
          "maxPriceVsMedianPercent": {
            "title": "Max price vs. usual price (%)",
            "type": "integer",
            "description": "Keep only products whose price is at most this many percent above (or, negative, below) the median of comparable products of the run, e.g. -20. Products without enough comparable products are left out."
          },
          "minDealScore": {
            "title": "Min deal score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only products with at least this deal score (50 = the usual price of comparable products, higher = cheaper). Products without enough comparable products are left out."
          },
          "excludeOutlierPrices": {
            "title": "Exclude implausible prices",
            "type": "boolean",
            "description": "Skip products priced at less than a fifth or more than five times the usual price of comparable products (accessories, placeholders).",
            "default": false
          },
          "includeReviews": {
            "title": "Add reviews",
            "type": "boolean",
            "description": "Add the reviews (reviews) and the star histogram with the review counts (reviewSummary) to every saved product. Without buyer names and profile photos unless \"Reviewer names\" is on.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews: max per product",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "The most reviews saved per product (after the review filters below). 0 = every review AliExpress shows (at most 5 000). You pay per saved review.",
            "default": 20
          },
          "reviewFilter": {
            "title": "Reviews: which ones",
            "enum": [
              "all",
              "withPhotos",
              "additional",
              "local"
            ],
            "type": "string",
            "description": "The website's review filter (\"local\": buyers in the \"Deliver to\" country).",
            "default": "all"
          },
          "reviewSort": {
            "title": "Reviews: order",
            "enum": [
              "default",
              "newest"
            ],
            "type": "string",
            "description": "The website's order of the reviews.",
            "default": "default"
          },
          "minReviewRating": {
            "title": "Reviews: min rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at least this many stars (e.g. 1 and max 2 for complaints)."
          },
          "maxReviewRating": {
            "title": "Reviews: max rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews rated at most this many stars."
          },
          "reviewsSince": {
            "title": "Reviews: since",
            "type": "string",
            "description": "Keep only reviews from this date on: YYYY-MM-DD or a number of days back, e.g. \"30 days\". With \"Newest first\" the older reviews are not read at all."
          },
          "reviewKeywords": {
            "title": "Reviews: must contain",
            "type": "array",
            "description": "Keep only reviews whose text (or its translation) contains any of these words, e.g. \"broken\", \"size\".",
            "items": {
              "type": "string"
            }
          },
          "reviewTranslationLanguage": {
            "title": "Reviews: translate into",
            "enum": [
              "",
              "en_US",
              "de_DE",
              "fr_FR",
              "es_ES",
              "it_IT",
              "nl_NL",
              "pl_PL",
              "pt_BR",
              "ru_RU",
              "tr_TR",
              "ja_JP",
              "ko_KR",
              "ar_MA",
              "iw_IL",
              "in_ID",
              "th_TH",
              "vi_VN"
            ],
            "type": "string",
            "description": "AliExpress translates every review into this language (translatedText); text keeps the original.",
            "default": ""
          },
          "includeReviewerNames": {
            "title": "Reviewer names (personal data)",
            "type": "boolean",
            "description": "Add the buyer's name as AliExpress shows it (reviewerName, usually shortened like \"J***n\"), profile photo (reviewerAvatarUrl) and gender (reviewerGender, when the buyer shows it) to every review. Anonymous buyers stay \"AliExpress Shopper\". This is personal data: you are responsible for using it lawfully (GDPR in the EU). Off = no names, photos or gender.",
            "default": false
          },
          "includePriceHistory": {
            "title": "Add price history",
            "type": "boolean",
            "description": "Every run remembers the prices it saw (in a key-value store of your account, per Monitoring key), and every product gets its price history: changes, lowest and highest price of 30 and 90 days, average, whether the price is the lowest in 90 days, and the list of changes. The history starts with your first run; schedule the same search with the same \"Deliver to\". Charged as \"Price history\" per saved product whose history goes back before the run (see the Pricing tab).",
            "default": false
          },
          "onlyNewOrChanged": {
            "title": "Monitoring: only new or changed products",
            "type": "boolean",
            "description": "Return only products that are new or whose title or price changed since the previous run with the same Monitoring key (changed products have previousPrice, priceChange and priceChangePercent). Each run watches the same products: the first \"Max products per search\" (else \"Max products\") of every search in the website's order (when a page lacks a product or two, the set is what the first pages give), so \"new\" means new among them. Prices are compared like with like: the regular price with the previous regular price, a new-shopper offer with the previous offer (priceChangeBasis). Every search page read in this mode is charged as \"Monitoring: search page checked\" (see the Pricing tab; one page = 60 products).",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring: key",
            "type": "string",
            "description": "Name of the saved state (and of the price history). Use a different key for each watched search (e.g. \"earbuds-de\"). Empty = \"default\". The value is stored encrypted."
          },
          "onlyNew": {
            "title": "Monitoring: only new products",
            "type": "boolean",
            "description": "Return only products not seen before, not price changes.",
            "default": false
          },
          "onlyPriceDrops": {
            "title": "Monitoring: only price drops",
            "type": "boolean",
            "description": "Of the changed products, return only those that got cheaper (new products are returned as usual).",
            "default": false
          },
          "minPriceDropPercent": {
            "title": "Monitoring: min price drop (%)",
            "minimum": 0,
            "type": "number",
            "description": "Of the changed products, return only those at least this many percent cheaper."
          },
          "newMeansNewListing": {
            "title": "Monitoring: new = newly listed",
            "type": "boolean",
            "description": "On: a product counts as new when AliExpress listed it since the previous run. A product listed earlier that only now shows among the watched ones (AliExpress reshuffles its top results from visit to visit, often half of them within minutes) is remembered and not returned, so it is not charged. Off: every product not seen before under this Monitoring key is returned as new.",
            "default": true
          },
          "minSoldIncrease": {
            "title": "Monitoring: min increase of units sold",
            "minimum": 0,
            "type": "integer",
            "description": "Also return products whose units sold grew by at least this many since the previous run (changeType salesIncrease, with soldCountChange and soldPerDay), e.g. to find products that start to sell. 0 = off."
          },
          "monitorStock": {
            "title": "Monitoring: stock changes",
            "type": "boolean",
            "description": "With \"Add product details\": also return products whose stock changed since the previous run (changeType stockChange, with previousStockTotal and stockChange). Reads the details of every watched product in every run; a product read only for its stock and not returned is charged as product details.",
            "default": false
          },
          "minStockChange": {
            "title": "Monitoring: min stock change",
            "minimum": 1,
            "type": "integer",
            "description": "The smallest change of the stock that counts (e.g. 10).",
            "default": 1
          },
          "monitorNewReviews": {
            "title": "Monitoring: new reviews",
            "type": "boolean",
            "description": "With \"Add reviews\": every watched product's reviews are checked, and only the reviews since the previous run are saved; a product with new reviews is returned (changeType newReviews). Each check of a product that is not returned costs one monitoring page.",
            "default": false
          },
          "skipFirstRun": {
            "title": "Monitoring: silent first run",
            "type": "boolean",
            "description": "The first run only remembers the products and returns none; later runs return what is new.",
            "default": false
          },
          "resetMonitoring": {
            "title": "Monitoring: start again",
            "type": "boolean",
            "description": "Forget what the earlier runs with this key saw (the next runs report everything as new).",
            "default": false
          },
          "slackWebhookUrl": {
            "title": "Notifications: Slack webhook URL",
            "type": "string",
            "description": "Incoming webhook of your Slack channel (https://hooks.slack.com/services/...). Stored encrypted."
          },
          "discordWebhookUrl": {
            "title": "Notifications: Discord webhook URL",
            "type": "string",
            "description": "Webhook of your Discord channel (https://discord.com/api/webhooks/...). In Discord: channel settings → Integrations → Webhooks → Copy Webhook URL. Stored encrypted."
          },
          "telegramBotToken": {
            "title": "Notifications: Telegram bot token",
            "type": "string",
            "description": "Token of your Telegram bot (from @BotFather). Used with \"Telegram chat ID\". Stored encrypted."
          },
          "telegramChatId": {
            "title": "Notifications: Telegram chat ID",
            "type": "string",
            "description": "Chat, group or channel ID the bot writes to (e.g. -1001234567890)."
          },
          "webhookUrl": {
            "title": "Notifications: webhook URL",
            "type": "string",
            "description": "Any HTTPS URL (Zapier, Make, n8n, your server): gets a POST with JSON {title, summary, totalSaved, runUrl, datasetUrl, items}."
          },
          "whatsappAccessToken": {
            "title": "Notifications: WhatsApp access token",
            "type": "string",
            "description": "Access token of the WhatsApp Cloud API of your Meta business account, used with \"WhatsApp phone number ID\" and \"WhatsApp recipient number\" (step by step in the README, section \"WhatsApp notifications: setup\"). For scheduled runs use a permanent token of a system user: Business settings → System users → Generate token, with the permissions whatsapp_business_messaging and whatsapp_business_management; the token of WhatsApp → API Setup expires within hours. Stored encrypted."
          },
          "whatsappPhoneNumberId": {
            "title": "Notifications: WhatsApp phone number ID",
            "type": "string",
            "description": "ID of your WhatsApp business number that sends the message (not the number itself), e.g. 106540352242922. In your Meta app: WhatsApp → API Setup → Phone number ID."
          },
          "whatsappTo": {
            "title": "Notifications: WhatsApp recipient number",
            "type": "string",
            "description": "Phone number that gets the message, in international format with the country code (e.g. +420601234567); up to 5 numbers separated by commas or new lines, each gets its own message and the notification is charged once per run. A test number of Meta sends only to numbers you added and confirmed under API Setup → To. Stored encrypted."
          },
          "whatsappTemplateName": {
            "title": "Notifications: WhatsApp template name",
            "type": "string",
            "description": "Name of your approved message template (WhatsApp Manager → Message templates, e.g. apify_results), recommended: WhatsApp delivers a template message at any time. Its body gets the run summary with the first results in {{1}} and the dataset link in {{2}} (a template with only {{1}} gets both in {{1}}). Empty: a plain text message, which WhatsApp delivers only when the recipient wrote to your business number in the last 24 hours, so a scheduled run usually needs a template. Meta charges your business account for template messages (step by step in the README, section \"WhatsApp notifications: setup\")."
          },
          "whatsappTemplateLanguage": {
            "title": "Notifications: WhatsApp template language",
            "type": "string",
            "description": "Language code of the template exactly as WhatsApp Manager → Message templates shows it next to the template, e.g. en_US, en_GB, cs, sk, pl or de. Used only with \"WhatsApp template name\".",
            "default": "en_US"
          },
          "notificationLimit": {
            "title": "Notifications: max products per message",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many products are listed in one notification (the rest as \"…and N more\").",
            "default": 10
          },
          "notifyOnlyChanges": {
            "title": "Notifications: only when something was saved",
            "type": "boolean",
            "description": "Send nothing when the run saved no product (e.g. a monitoring run without changes).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "AliExpress limits automated reading; the default Apify residential proxy is included in the price. Keep it unless you have your own proxies.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "exportFormats": {
            "title": "Extra export formats",
            "type": "array",
            "description": "Off by default. Printable HTML report: the results as a clean, branded table with the main columns, made for printing, saving as PDF or sending to someone; for working with the data use Excel or CSV, which have every field. Markdown table: the same columns as text for AI tools, docs or GitHub. The Output tab links the files. Each file has the overview columns of every saved row and nothing is left out, so a run with tens of thousands of rows makes a file of tens of MB that can be slow to open; for big runs use the dataset or its Excel export. Excel (XLSX), CSV and JSON are always in the Output tab and under Export, at no extra cost.",
            "items": {
              "type": "string",
              "enum": [
                "html",
                "markdown"
              ],
              "enumTitles": [
                "Printable HTML report",
                "Markdown table"
              ]
            },
            "default": []
          },
          "sendErrorReports": {
            "title": "Send error reports",
            "type": "boolean",
            "description": "When a run fails, send the developer a short error report: the error and your input with secrets left out (tokens, webhooks and e-mails are hidden). Your results are never sent. Reports are deleted after at most 120 hours. Turn off to send nothing.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}