Skip to content

About

Scrape Alibaba.com products, prices, MOQ and verified suppliers to JSON/CSV with Python (Apify actor example)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Alibaba Product Scraper in Python: export Alibaba.com products, prices, MOQ and suppliers to JSON/CSV

A short tutorial for pulling Alibaba.com search results (price range and quantity tiers, MOQ, units sold, lead time, supplier name, country, years, Verified/Gold status and rating) into Python with the Alibaba Product Search Scraper on Apify.

Disclosure: I built this actor; it's a paid tool on Apify ($1.50 per 1,000 products). The code in this repo is MIT-licensed.

How it works

The actor calls the same JSON endpoint Alibaba's own search page uses, over plain HTTPS through Apify Proxy. No headless browser, no cookies, no Alibaba account. Blocked requests are retried on a fresh session automatically.

Quick start (Python)

pip install apify-client
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("rel8ble/alibaba-product-search-scraper").call(run_input={
    "searchTerms": ["yoga mat", "custom tote bags"],
    "maxResultsPerSearch": 20,
    "maxMoq": 100,
    "verifiedSuppliersOnly": True,
})

for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["priceMin"], p["moq"], p["supplierName"], p["title"][:60])

example.py is the runnable version: it keeps low-MOQ products from verified suppliers and writes a CSV sorted by price.

Quick start (Node.js)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('rel8ble/alibaba-product-search-scraper').call({
    searchTerms: ['led strip lights'], maxResultsPerSearch: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'products');

Input

Field Default What it does
searchTerms ["led strip lights"] Alibaba keywords or search URLs
maxResultsPerSearch 100 Products per keyword; 0 = all Alibaba serves (~960)
minPrice / maxPrice - Unit price in whole USD
maxMoq - Maximum minimum order quantity, e.g. 100
verifiedSuppliersOnly false Only suppliers with Alibaba's third-party-inspected "Verified" badge
supplierCountry all 2-letter code: CN, IN, VN, TR, US...
includeAds true Sponsored listings are flagged isAd: true

Output sample (one real product, trimmed)

{
  "searchTerm": "bluetooth earbuds",
  "title": "ALOVA Latest Model Bluetooth 6.0 Earphone IPX7 Bone Conduction Headset Waterproof Headphone Wireless Earbuds with Mic",
  "url": "https://www.alibaba.com/product-detail/ALOVA-Latest-Model-Bluetooth-6-0_1601511059774.html",
  "priceMin": 6.5,
  "priceMax": 9.9,
  "priceTiers": [
    { "minQuantity": 10, "maxQuantity": 89, "price": 9.9, "unit": "pieces" },
    { "minQuantity": 90, "maxQuantity": 1999, "price": 8.5, "unit": "pieces" }
  ],
  "moq": 10,
  "moqUnit": "pieces",
  "soldCount": 2126,
  "leadTimeDays": 14,
  "productCertifications": ["FCC", "UKCA", "CE", "ROHS"],
  "isAd": false,
  "supplierName": "Shenzhen Alex Technology Co., Ltd.",
  "supplierCountryCode": "CN",
  "supplierYears": 10,
  "verifiedSupplier": true,
  "goldSupplier": true,
  "tradeAssurance": true,
  "supplierRating": 4.5,
  "supplierReviewCount": 65,
  "responseRate": "98.5%"
}

Each row has about 55 fields in total, including image URLs, category, supplier sub-ratings (product quality, service, on-time shipment), employees, factory size, main products, export countries and certifications.

Use cases

  • Sourcing shortlists: filter by maxMoq, verifiedSuppliersOnly and supplierCountry, then sort by priceMin.
  • Landed-cost planning: priceTiers shows how the unit price drops at each quantity break.
  • Supplier vetting: compare supplierYears, supplierRating, responseRate and certifications side by side.
  • Price monitoring: schedule the same keywords weekly and track priceMin and soldCount by productId.

Price

$1.50 per 1,000 products, pay per result. No start fee, no monthly rental. Apify's free plan includes $5 of monthly credit.

Limits

  • About 960 unique products per keyword: Alibaba serves 20 pages of 48 for any search. Use narrower keywords or the price/MOQ/country filters to slice further.
  • Alibaba matches loosely, so a narrow or misspelled keyword still returns related products. Check titles if precision matters.
  • Prices are USD list prices from the search card; final prices depend on quantity, options and shipping.
  • Supplier location is country level, and only search-result fields are returned (no full specs, SKU lists or review texts).
  • minPrice / maxPrice take whole dollars.

Links

License

MIT

About

Scrape Alibaba.com products, prices, MOQ and verified suppliers to JSON/CSV with Python (Apify actor example)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages