{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Product & Supplier Scraper",
    "description": "Scrape Alibaba.com products and suppliers: price tiers, MOQ, specs, lead times, certificates, plus each supplier's contact person, response time and 6-month order volume. Filter by country, Trade Assurance, MOQ and price. Pay only for results.",
    "version": "1.0",
    "x-build-id": "h0OfpERXfZOHC85OL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~alibaba-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-alibaba-product-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/axlymxp~alibaba-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-alibaba-product-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/axlymxp~alibaba-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-alibaba-product-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": {
          "mode": {
            "title": "What to return",
            "enum": [
              "products",
              "suppliers"
            ],
            "type": "string",
            "description": "<b>Products</b>: one row per product. <b>Suppliers</b>: one row per unique supplier found by your search (contact person, job title, response time, on-time delivery, orders in the last 6 months), plus one sample product.",
            "default": "products"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One search per keyword, e.g. <code>stainless steel tumbler</code>, <code>led strip lights</code>. Each product (or supplier) is returned once per run.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Alibaba URLs",
            "type": "array",
            "description": "Optional. Paste a search results page (<code>alibaba.com/trade/search?SearchText=…</code> with your filters), a showroom page (<code>alibaba.com/showroom/led-light.html</code>) or a product page (<code>alibaba.com/product-detail/…_1600123456789.html</code>).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "supplierCountries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Only suppliers located in these countries (two-letter codes such as <code>CN</code>, <code>IN</code>, <code>VN</code>, <code>TR</code>). Each country runs as its own search, so you get up to the per-keyword limit for every country.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerQuery": {
            "title": "Max items per keyword / URL",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop each keyword or search URL after this many rows. Without filters Alibaba serves about 20,000 results per keyword; with filters about 4,800.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard limit for the whole run across all keywords and URLs.",
            "default": 1000
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Open every product page to add the price tiers, specs, SKU options, lead time, certificates and the supplier block (contact person, response time, on-time delivery, 6-month orders). Billed per product as an extra event. Always on for <b>Suppliers</b> (billed per supplier).",
            "default": true
          },
          "tradeAssuranceOnly": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Only products from suppliers that offer Alibaba Trade Assurance order protection.",
            "default": false
          },
          "verifiedSuppliersOnly": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Only suppliers whose credentials were inspected by a third-party company.",
            "default": false
          },
          "samplesAvailableOnly": {
            "title": "Sample orders available",
            "type": "boolean",
            "description": "Only products that can be ordered as a sample.",
            "default": false
          },
          "minOrderQuantityFrom": {
            "title": "Minimum order quantity: at least",
            "minimum": 0,
            "type": "integer",
            "description": "Only products whose minimum order is at least this many units."
          },
          "minOrderQuantityTo": {
            "title": "Minimum order quantity: at most",
            "minimum": 0,
            "type": "integer",
            "description": "Only products you can buy in a quantity of this many units or fewer (for example 10 to find low-MOQ products)."
          },
          "minPrice": {
            "title": "Min unit price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Lowest unit price. Prices are in US dollars when the default US proxy country is kept."
          },
          "maxPrice": {
            "title": "Max unit price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Highest unit price."
          },
          "minSupplierRating": {
            "title": "Min supplier rating",
            "enum": [
              "any",
              "4",
              "4.5",
              "5"
            ],
            "type": "string",
            "description": "Only suppliers with at least this store rating (out of 5).",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "salesVolume",
              "responseRate"
            ],
            "type": "string",
            "description": "Order of the results. <b>Sales volume</b> ranks by units sold in the last 180 days; <b>Response rate</b> ranks by supplier response rate.",
            "default": "relevance"
          },
          "maxConcurrency": {
            "title": "Parallel product pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many product pages are opened at the same time. Lower it if you see blocks.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Alibaba shows a slider after a few requests from one IP, so the actor needs a new IP for every request: keep Apify <b>Residential</b> proxies with country <b>US</b> (also gives US-dollar prices).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}