{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Scraper - Products, Suppliers, MOQ, Image Search",
    "description": "Scrape Alibaba.com without login: keyword search in any language or search by image. 50+ fields: price tiers, MOQ, supplier country, years, staff, factory size, revenue, response rate, verified and Trade Assurance. MOQ, price and country filters really applied. Supplier mode.",
    "version": "0.1",
    "x-build-id": "PYIvujzf4wlPpB4X2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~alibaba-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-alibaba-com-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/scrapewise~alibaba-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-alibaba-com-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/scrapewise~alibaba-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-alibaba-com-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": "Products to search on Alibaba.com, one per line, for example \"coffee mug\", \"yoga mat\" or \"solar panel\". Any language works: English, German, Spanish or French go straight to Alibaba.com; Chinese, Japanese, Korean, Russian, Arabic and other scripts are translated to English first (see 'searchedAs' in each row). You can also paste an Alibaba.com search link (https://www.alibaba.com/trade/search?SearchText=...) and its filters are kept.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "What to return",
            "enum": [
              "products",
              "suppliers"
            ],
            "type": "string",
            "description": "Products: one row per product with price tiers, MOQ and its supplier. Suppliers: one row per company found for each keyword (name, country, years, staff, factory size, revenue on Alibaba.com, response rate, verified, Trade Assurance, main products) with a sample product. Each supplier row is charged as one result.",
            "default": "products"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Total number of products (or suppliers) for the whole run, counting keywords, images and links together, for example 20 for a quick test or 2000 for a full sourcing list. Every page of results is available on every Apify plan. 0 = no limit.",
            "default": 20
          },
          "maxItemsPerKeyword": {
            "title": "Max results per keyword (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Cap for each keyword, so one broad keyword does not use the whole 'Max results' budget, for example 100. Empty = no cap per keyword."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "bestSelling"
            ],
            "type": "string",
            "description": "Order Alibaba.com applies to the keyword search: relevance (default) or best selling in the last 180 days.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only products whose price reaches at least this value in US dollars, for example 1.5. Empty = no minimum."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only products whose lowest price is at or below this value in US dollars, for example 10. Empty = no maximum."
          },
          "maxMinOrderQuantity": {
            "title": "Max minimum order (MOQ)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products whose minimum order quantity (MOQ) is at or below this number, for example 1 or 10 to buy samples or small batches. Empty = any MOQ."
          },
          "supplierCountry": {
            "title": "Supplier country",
            "type": "string",
            "description": "Only suppliers located in one country, as a 2-letter code or English name, for example CN (China), IN (India), VN (Vietnam), TR (Turkey), PK (Pakistan) or US. Empty = any country."
          },
          "tradeAssurance": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Only suppliers that offer Alibaba.com Trade Assurance (order protection).",
            "default": false
          },
          "verifiedSupplier": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Only suppliers verified on site by an inspection company (Verified Supplier badge).",
            "default": false
          },
          "verifiedProSupplier": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Only Verified Pro suppliers, the stricter Alibaba.com badge. Narrows the results a lot (for example 817 of 67,000 for coffee mug).",
            "default": false
          },
          "minStoreRating": {
            "title": "Min store rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only suppliers whose store rating is at least this value, for example 4 or 4.5 (out of 5). Empty = any rating."
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Leave out products whose title contains any of these words, one per line, for example \"sample\" or \"used\". Excluded products are not charged.",
            "items": {
              "type": "string"
            }
          },
          "excludeAds": {
            "title": "Leave out sponsored listings",
            "type": "boolean",
            "description": "Alibaba.com mixes paid placements into the results (isAd: true in each row). On: sponsored listings are skipped and not charged.",
            "default": false
          },
          "imageUrls": {
            "title": "Image links (search by image)",
            "type": "array",
            "description": "Find Alibaba.com suppliers from a product photo, one image link per line: any public JPG, PNG or WebP up to 10 MB (an Amazon, Etsy, Shopify or Temu photo, or your own). Returns similar products with price, MOQ and supplier.",
            "items": {
              "type": "string"
            }
          },
          "imageFile": {
            "title": "Or upload one image",
            "type": "string",
            "description": "Upload a product photo (JPG, PNG or WebP) from your computer instead of pasting a link. It is searched exactly like an image link."
          },
          "similarToProducts": {
            "title": "Similar to these Alibaba.com products",
            "type": "array",
            "description": "Alibaba.com product links (https://www.alibaba.com/product-detail/..._1601236370764.html) or numeric product ids, one per line. Returns visually similar products from other suppliers, to compare prices for the same item.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerImage": {
            "title": "Max products per image",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Products returned for each image or 'similar to' product, up to 100 (Alibaba.com's own limit). Empty = 20. Each image search is charged once and includes the first 60 products."
          },
          "productUrls": {
            "title": "Product links or ids",
            "type": "array",
            "description": "Alibaba.com products to read directly, one per line: product links (https://www.alibaba.com/product-detail/..._1601236370764.html) or just the numeric id. Each comes with the full product page (variants, lead time, package size, supplier capabilities).",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include full product page",
            "type": "boolean",
            "description": "Off (default): rows come from the search cards (title, price tiers, MOQ, sales, supplier, images). On: also opens each product page and adds variants, all attributes, lead time per quantity, package size and weight, customization options, supplier business type, on-time delivery rate, response time, ratings by aspect, orders in the last 6 months. Charged once more per product with 'Full product page delivered'.",
            "default": false
          },
          "translateKeywords": {
            "title": "Translate non-Latin keywords to English",
            "type": "boolean",
            "description": "On (default): keywords in Chinese, Japanese, Korean, Russian, Arabic, Thai and other non-Latin scripts are translated to English before the search, because Alibaba.com returns off-topic products for them. Off: the keyword is sent as typed.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default, with a fresh IP whenever Alibaba.com refuses one. If the datacenter keeps being refused, the run switches to residential IPs by itself.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}