{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Supplier Scraper: Manufacturers & Ratings",
    "description": "Find Alibaba.com suppliers by keyword, search link, store or product link, no login. Get company facts, Verified status, store rating, on time delivery, response time, reorder rate, revenue band, certificates, products and the company profile. JSON, CSV, a real-time API; pay per supplier.",
    "version": "0.1",
    "x-build-id": "WVpOP2tQNny7RPfH3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~alibaba-supplier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-alibaba-supplier-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/automation_craft~alibaba-supplier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-alibaba-supplier-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/automation_craft~alibaba-supplier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-alibaba-supplier-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": "Keywords",
            "type": "array",
            "description": "Product or supplier words, for example yoga mat or cnc machine: each is searched in Alibaba's own supplier search (its Suppliers tab), 20 suppliers a page, and every supplier is delivered once as one row with its company facts, verification, ratings and trade figures. A keyword that is an Alibaba supplier search link, store link or product link is read as that link.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Supplier search links",
            "type": "array",
            "description": "Links of Alibaba's supplier search, copied from the browser: alibaba.com/search/page?SearchScene=suppliers&SearchText=... or alibaba.com/trade/search?SearchText=...&IndexArea=company_en. Their words and filters are read (the page itself is never loaded).",
            "items": {
              "type": "string"
            }
          },
          "storeUrls": {
            "title": "Store links",
            "type": "array",
            "description": "Supplier stores, one per line: https://<name>.en.alibaba.com or https://<name>.trustpass.alibaba.com, with any page of the store (company_profile.html, productlist.html) or the mobile m. form. Each store's home page is read for its company profile and its supplier search card is looked up by the company's exact name; one row per store, billed as Supplier and Company profile. A store that does not exist is a free row.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product links or ids",
            "type": "array",
            "description": "Alibaba product pages (alibaba.com/product-detail/..._<id>.html, a language site, a mobile link) or bare product ids: the supplier behind each product is delivered as a store link would be. A product Alibaba does not show is a free row.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Suppliers per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most supplier rows one search delivers (1 to 1,000; Alibaba shows 20 a page and orders them anew on every call, so a deep search meets repeats, which are free).",
            "default": 20
          },
          "maxPagesPerKeyword": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "The most supplier search pages one search reads (1 to 50). Left out: up to 50, or 1 with the response time order."
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "The page of Alibaba's supplier search to start from (1 to 50)."
          },
          "maxItems": {
            "title": "Most suppliers in the run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most supplier rows the whole run delivers (1 to 5,000), from searches and links together.",
            "default": 1000
          },
          "supplierCountries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Two letter codes or English names (CN, IN, VN, TR, US). Each search is read once per country with Alibaba's own country filter, and every row is checked.",
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Verified suppliers only",
            "type": "boolean",
            "description": "Suppliers checked by a third party inspection company (Alibaba's Verified badge; Verified Pro suppliers count, as in Alibaba's own filter), sent to Alibaba and checked on every row."
          },
          "verifiedProOnly": {
            "title": "Verified Pro suppliers only",
            "type": "boolean",
            "description": "Alibaba's top verification tier, sent to Alibaba and checked on every row."
          },
          "manufacturersOnly": {
            "title": "Manufacturers only",
            "type": "boolean",
            "description": "Alibaba's verified manufacturer search; every row carries the manufacturer flag."
          },
          "tradeAssuranceOnly": {
            "title": "Trade Assurance only",
            "type": "boolean",
            "description": "Alibaba's Trade Assurance filter, sent to Alibaba (the supplier card shows no Trade Assurance figure, so sponsored cards are left out under it)."
          },
          "minStoreRating": {
            "title": "Lowest store rating",
            "minimum": 0.1,
            "maximum": 5,
            "type": "number",
            "description": "Only suppliers with at least this store rating out of 5 (4, 4.5 and 5 use Alibaba's own filter; every value is checked on each row, and a supplier without a rating is left out)."
          },
          "minYearsOnAlibaba": {
            "title": "Fewest years on Alibaba",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only suppliers on Alibaba for at least this many years (1 to 50; 5, 10 and 15 use Alibaba's own filter, every row is checked)."
          },
          "minOnTimeDeliveryRate": {
            "title": "Lowest on time delivery rate (%)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Only suppliers with at least this on time delivery rate (1 to 100; 90, 95 and 100 use Alibaba's own filter, every row is checked, a supplier without the figure is left out)."
          },
          "maxResponseHours": {
            "title": "Longest response time (hours)",
            "minimum": 1,
            "maximum": 72,
            "type": "integer",
            "description": "Only suppliers whose average response time is at most this many hours (1 to 72; 1, 2 and 4 use Alibaba's own filter, every row is checked, a supplier without the figure is left out)."
          },
          "minReorderRate": {
            "title": "Lowest reorder rate (%)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Only suppliers with at least this reorder rate (1 to 100; 15, 30 and 50 use Alibaba's own filter, every row is checked, a supplier without the figure is left out)."
          },
          "managementCertifications": {
            "title": "Management certifications",
            "type": "array",
            "description": "For example ISO, BSCI, SEDEX (up to 10). Alibaba's filter takes the first; a supplier is kept when its card lists any of them.",
            "items": {
              "type": "string"
            }
          },
          "productCertifications": {
            "title": "Product certifications",
            "type": "array",
            "description": "For example CE, ROHS, FCC (up to 10). Alibaba's filter takes the first; a supplier is kept when its card lists any of them.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Product price from (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Suppliers selling products in this price range: sent to Alibaba, and a supplier is kept only when one of the products its card lists is priced in the range (those are its matchedProducts)."
          },
          "maxPrice": {
            "title": "Product price to (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "The top of the price range above."
          },
          "maxMoq": {
            "title": "Highest minimum order",
            "minimum": 1,
            "maximum": 100000000,
            "type": "integer",
            "description": "Suppliers with a product you can order in this quantity or less: sent to Alibaba, and a supplier is kept only when one of the products its card lists has a minimum order at or under it."
          },
          "excludeAds": {
            "title": "Leave out sponsored suppliers",
            "type": "boolean",
            "description": "Leave out the cards Alibaba marks as sponsored (they are included and flagged isAd by default). Left out rows are free."
          },
          "excludeSupplierIds": {
            "title": "Supplier ids to leave out",
            "type": "array",
            "description": "Company ids (supplierId of earlier rows) to leave out, free; up to 100,000.",
            "items": {
              "type": "string"
            }
          },
          "excludeSupplierUrls": {
            "title": "Store links to leave out",
            "type": "array",
            "description": "Store links of suppliers to leave out, free; up to 10,000.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "best_match",
              "response_time"
            ],
            "type": "string",
            "description": "best_match: Alibaba's own order. response_time: the suppliers this run read, fastest response first (Alibaba serves no such order; each row says so), reading one page per search unless Pages per search is set."
          },
          "includeCompanyProfile": {
            "title": "Company profile",
            "type": "boolean",
            "description": "Add each supplier's company profile from its store home page: year established, employees, annual revenue, main markets, business type, address, factory size, certifications, payment terms, trade shows, orders in 6 months, description, photos and the contact people the store shows. Billed as Company profile per row that carries it; about half of the stores show the full overview. Store and product links carry it always.",
            "default": false
          },
          "includeRawCard": {
            "title": "Raw supplier card",
            "type": "boolean",
            "description": "Add Alibaba's own supplier card object under raw (free).",
            "default": false
          },
          "shipToCountry": {
            "title": "Delivery country",
            "type": "string",
            "description": "The buyer's country (two letter code, for example DE, GB, AU), sent with Alibaba's own country setting on every request. Product prices on the cards stay in the currency set below (US dollars by default). Left out: a buyer in the United States."
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "INR",
              "BRL",
              "MXN",
              "AED",
              "SAR",
              "JPY",
              "KRW",
              "SGD",
              "ZAR",
              "RUB",
              "TRY"
            ],
            "type": "string",
            "description": "The currency of Alibaba's own site setting: the prices of the products on each supplier card are shown in it, exactly as Alibaba shows them (never converted), with their low and high figures (priceMin, priceMax, priceCurrency). US dollar figures (priceMinUsd, priceMaxUsd) come with USD only, and the price filters (minPrice, maxPrice, in US dollars) need USD. Left out: USD."
          },
          "saveCsvFile": {
            "title": "Save a CSV file",
            "type": "boolean",
            "description": "Also write the supplier rows as a CSV file to the run's key-value store at the end of the run (free). The dataset exports CSV, Excel and JSON as well.",
            "default": false
          },
          "csvOutputMode": {
            "title": "CSV files",
            "enum": [
              "combined",
              "per_search",
              "both"
            ],
            "type": "string",
            "description": "combined: one file of every supplier; per_search: one file per search (the first 20 searches); both. Needs Save a CSV file."
          },
          "csvFileName": {
            "title": "CSV file name",
            "type": "string",
            "description": "Letters, digits, dot, hyphen and underscore, ending in .csv (default suppliers.csv). Needs Save a CSV file."
          },
          "feedback": {
            "title": "Feedback",
            "type": "string",
            "description": "For you or an AI agent: what you needed and did not get. Kept in the run's key-value store (FEEDBACK) for the developer; the run delivers the same data with or without it (at most 2,000 characters)."
          },
          "extendOutputFunction": {
            "title": "Extend output function",
            "type": "string",
            "description": "A JavaScript function that gets each supplier row and returns an object stored under custom on that row, for example ({ name, country }) => ({ label: name + ' ' + country }). It runs in an isolated child process with no network and no access to the run, at most 1 s per row; an error is a note on the row."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave the default: the run reads from its own address with one Apify datacenter session behind it. Apify datacenter from the start is also accepted. Residential exits and own proxies are not used."
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Times a failed request is asked again (0 to 5).",
            "default": 2
          },
          "maxRunSeconds": {
            "title": "Time limit (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "The run stops reading after this many seconds and writes its rows and summaries (30 to 86,400)."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Write detailed log lines.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}