{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Products Scraper",
    "description": "Alibaba Products Scraper SD - Alibaba Products Scraper is a B2B sourcing tool that extracts alibaba.com products by keyword or URL: prices, MOQ, sold count, ratings, certifications, price tiers, specs and verified-supplier data, with Alibaba's own filters.",
    "version": "1.0",
    "x-build-id": "bfDbebgqphefuv6v5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~alibaba-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-alibaba-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/neuro-scraper~alibaba-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-alibaba-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/neuro-scraper~alibaba-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-alibaba-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "What you would type into the Alibaba search box, one per line. Each keyword is searched separately and gets its own maxResults. Example: led lights",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Alibaba product pages, one per line, e.g. https://www.alibaba.com/product-detail/Durable-Heavy-Duty-LED-Bulkhead-Light_1601696875954.html (a bare product ID works too). Each one gives one row with every detail field.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max products per keyword",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "How many products to return for EACH keyword (2 keywords x 20 = 40 rows). Alibaba shows 60 products per results page and up to 100 pages; the Actor turns the pages until this number is reached. Example: 100",
            "default": 20
          },
          "maxPages": {
            "title": "Max result pages per keyword",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional safety limit on result pages per keyword (60 products each). 0 = no limit (Alibaba stops at 100 pages). Example: 3",
            "default": 0
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Result page to start from (1 = the first page). Useful to continue an earlier run. Example: 4",
            "default": 1
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "mostSold",
              "reviewScore"
            ],
            "type": "string",
            "description": "Order of the returned products per keyword. Alibaba's search has no sort option, so for anything but Best match the Actor collects twice maxResults products and sorts them itself.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Alibaba's price filter (lowest unit price). In the currency of the proxy country: GBP with the default UK proxy, USD with a US proxy. 0 = no minimum. Example: 1",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Alibaba's price filter (highest unit price), same currency as Min price. 0 = no maximum. Example: 5",
            "default": 0
          },
          "maxMOQ": {
            "title": "Max minimum order quantity",
            "minimum": 0,
            "type": "integer",
            "description": "Alibaba's 'Min. order' filter: only products whose minimum order is at most this. 0 = any. Example: 100",
            "default": 0
          },
          "tradeAssurance": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Alibaba's Trade Assurance filter (orders protected by Alibaba).",
            "default": false
          },
          "verifiedSupplier": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Alibaba's 'Verified Supplier' filter (suppliers assessed by a third-party inspection company).",
            "default": false
          },
          "verifiedProSupplier": {
            "title": "Verified PRO suppliers only",
            "type": "boolean",
            "description": "Alibaba's 'Verified PRO' supplier filter.",
            "default": false
          },
          "minReviewScore": {
            "title": "Store review score",
            "enum": [
              "any",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Alibaba's store review filter (5-star scale).",
            "default": "any"
          },
          "supplierCountries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Two-letter codes of the supplier's country/region, as in Alibaba's filter. Example: CN, VN, US",
            "items": {
              "type": "string"
            }
          },
          "productCertTags": {
            "title": "Product certifications",
            "type": "array",
            "description": "Product certifications as Alibaba lists them in its filter. Example: CE, ROHS",
            "items": {
              "type": "string"
            }
          },
          "companyAuthTags": {
            "title": "Supplier certifications",
            "type": "array",
            "description": "Supplier (management system) certifications as Alibaba lists them, when the search offers that filter. Example: ISO9001, BSCI",
            "items": {
              "type": "string"
            }
          },
          "maxDeliveryDays": {
            "title": "Max delivery days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Alibaba's 'Delivery by' filter: only products that can be delivered within this many days (Alibaba offers e.g. 18, 24, 30). 0 = any. Example: 24",
            "default": 0
          },
          "localStock": {
            "title": "Local stock country",
            "type": "string",
            "description": "Alibaba's 'Local stock' filter: products shipped from a warehouse in this country (two-letter code). Example: US"
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Alibaba category ID (e.g. 201713304) or a category name Alibaba shows for your keyword (e.g. Smart Strip Lights). Empty = all categories."
          },
          "excludeIds": {
            "title": "Exclude product or company IDs",
            "type": "array",
            "description": "Product IDs or company IDs to leave out (e.g. products you already have). Example: 1601696875954",
            "items": {
              "type": "string"
            }
          },
          "includeAds": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Alibaba mixes sponsored products into the results (flagged isSponsored). Off = organic results only.",
            "default": true
          },
          "fullDetails": {
            "title": "Full product details",
            "type": "boolean",
            "description": "Open every product page to add price tiers, specifications, variants, stock per variant, lead times, video, store rating and the verified-supplier profile (business type, staff, factory size, main markets, response time, on-time delivery, Trade Assurance limit, orders in the last 6 months). One extra request per product.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "type": "integer",
            "description": "Safety limit for the whole run (all keywords and URLs together). Example: 500",
            "default": 1000
          },
          "maxRequestRetries": {
            "title": "Max sessions per request",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many fresh sessions (new proxy IPs) a blocked request gets before it is skipped. Example: 4",
            "default": 4
          },
          "resultType": {
            "title": "Result type",
            "enum": [
              "products",
              "suppliers",
              "category"
            ],
            "type": "string",
            "description": "products = product rows (default). suppliers = Alibaba's supplier search for each keyword: one row per supplier with ratings, on-time delivery, response time, reorder rate, revenue band, main products and sample products. category = products of the keyword narrowed to the category given in 'category'.",
            "default": "products"
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "standard",
              "worldwide"
            ],
            "type": "string",
            "description": "standard = the normal product search. worldwide = Alibaba's Worldwide tab: regional supplies from suppliers outside mainland China.",
            "default": "standard"
          },
          "shipToCountry": {
            "title": "Ship to country",
            "type": "string",
            "description": "Two-letter country code (US, DE, GB, IN ...). Alibaba shows delivery and prices for the visitor's country, so the Actor browses from that country: prices come in its currency and shipToCountry in the rows shows the delivery country.",
            "default": "GB"
          },
          "guaranteed": {
            "title": "Only Alibaba Guaranteed",
            "type": "boolean",
            "description": "Only products with Alibaba Guaranteed (fixed price, guaranteed delivery date, money back). Uses Alibaba's own filter and checks each product's badge.",
            "default": false
          },
          "minMOQ": {
            "title": "Minimum order quantity (from)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products whose minimum order quantity is at least this number (use with Max MOQ for a range)."
          },
          "maxConcurrency": {
            "title": "Keywords in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keywords are searched at the same time, each with its own sessions and IPs.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy, UK by default (prices then show in GBP); US also works (USD). The country decides the price currency.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "GB"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}