DEV Community

frankxie
frankxie

Posted on Edited on

How to Compare Alibaba Wholesale Prices and MOQs Across Hundreds of Suppliers in a Spreadsheet

If you have ever sourced a product on Alibaba.com, you know how it goes. You search "silicone phone case", open a listing, note the price range and the minimum order quantity (MOQ), check whether the supplier is Verified and offers Trade Assurance, go back, and do it again. After 30 tabs you have a messy spreadsheet and you have seen maybe 2% of the suppliers.

This tutorial shows a faster route. You pull the search results into a table with an Apify Actor, then filter and sort them in Excel or pandas: lowest unit price at MOQ, MOQ under 100, Verified suppliers only, price at 1,000 units, and so on.

Disclosure: I built and maintain this Actor. It is a paid tool ($1.50 per 1,000 results). Everything below is based on a real test run, and the limitations section is at the end.

What you get per product

Each search result is one row. The fields that matter for sourcing:

  • priceMin, priceMax, priceText: the price range the supplier lists, in USD
  • minOrderQuantity, minOrderUnit: the MOQ, for example 10 and pieces
  • priceTiers: the quantity price breaks, e.g. 10–190 pcs at $0.68, 200–990 at $0.62
  • verifiedSupplier, verifiedSupplierPro, tradeAssurance, goldSupplier: the badges
  • supplierCountryCode, supplierYearsOnAlibaba, supplierRating, supplierResponseRate, supplierOrders6Months
  • keyword, position: which search found it and where it ranked

There is also a Product details mode. You give it product URLs or IDs and get attributes, variants, lead times per quantity, and package size and weight. It runs at about 40 products per minute, so the usual workflow is to search wide first and then fetch details only for your shortlist.

Step 1: Configure the run in Apify Console

Open the Alibaba Search Scraper store page and click Try for free. Then fill in:

  1. What to scrape: Search results (keywords).
  2. Search keywords: one per line, e.g. silicone phone case, liquid silicone case. You can also paste an Alibaba.com search URL.
  3. Max results per keyword and Max results in total: these limit how much you pay.
  4. Filters (optional, these are the same filters as on the website):
    • Verified suppliers only / Verified Pro suppliers only
    • Supplier country (China, Vietnam, India, Turkey, US and others)
    • Minimum / Maximum price (USD): whole dollars only
    • Max minimum order: e.g. 100 keeps products you can order in quantities of 100 or fewer
  5. Include price tiers: leave this on if you want the quantity price breaks.

Click Start. When the run finishes, open the dataset and export it as CSV, Excel or JSON. In CSV and Excel, the nested priceTiers list is flattened into columns such as priceTiers/0/price, which is fine for a quick look. For tier math, JSON plus pandas is easier.

Step 2: Look at the data

I ran one keyword, silicone phone case, with 20 results. The run took about 5 seconds. Here is one record. I removed some fields to keep it short, but the values are unchanged:

{
  "productId": "1601560752583",
  "title": "JOYPORODO S002 Wholesale Silicone Mobile Cover Cell Phone Case For IPhone 17 16 15 Pro Max Coque Telephone Capa De Celular",
  "url": "https://www.alibaba.com/product-detail/JOYPORODO-S002-Wholesale-Silicone-Mobile-Cover_1601560752583.html",
  "priceText": "US $0.52-$0.68",
  "priceMin": 0.52,
  "priceMax": 0.68,
  "currency": "USD",
  "minOrderQuantity": 10,
  "minOrderUnit": "pieces",
  "productCertifications": ["CE", "ROHS"],
  "supplierName": "Guangzhou Songdo Bird Technology Development Co., Ltd.",
  "supplierCountryCode": "CN",
  "supplierYearsOnAlibaba": 3,
  "verifiedSupplier": true,
  "tradeAssurance": true,
  "supplierRating": 4.6,
  "supplierResponseRate": "99.8%",
  "supplierOrders6Months": 699,
  "keyword": "silicone phone case",
  "position": 2,
  "priceTiers": [
    {"minQuantity": 10, "maxQuantity": 190, "price": 0.68, "promotionPrice": null, "unit": "pieces"},
    {"minQuantity": 200, "maxQuantity": 990, "price": 0.62, "promotionPrice": null, "unit": "pieces"},
    {"minQuantity": 1000, "maxQuantity": 7990, "price": 0.57, "promotionPrice": null, "unit": "pieces"},
    {"minQuantity": 8000, "maxQuantity": null, "price": 0.52, "promotionPrice": null, "unit": "pieces"}
  ]
}
Enter fullscreen mode Exit fullscreen mode

Even in 20 rows the spread is wide. MOQs went from 1 piece to 5,000 pieces, 18 of 20 had an MOQ of 100 or less, 17 were from Verified suppliers, and one listing had no price tiers at all. This spread is the reason to put the results in a table instead of reading them one by one.

Step 3: Run it from Python and rank suppliers with pandas

Install the official client and pandas:

pip install apify-client pandas
Enter fullscreen mode Exit fullscreen mode
from apify_client import ApifyClient
import pandas as pd

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("pipiagent/alibaba-search-scraper").call(run_input={
    "searchKeywords": ["silicone phone case", "liquid silicone case"],
    "maxResultsPerKeyword": 300,
    "verifiedSupplierOnly": True,
    "maxMinOrder": 100,
    "includePriceTiers": True,
})

items = list(client.dataset(run.default_dataset_id).iterate_items())
df = pd.DataFrame(items)
Enter fullscreen mode Exit fullscreen mode

Now the useful part is the unit price at a given quantity. The function picks the tier that applies to that quantity and falls back to the top of the listed range when there are no tiers:

def unit_price(row, qty):
    tiers = [t for t in (row["priceTiers"] or []) if (t["minQuantity"] or 0) <= qty]
    if not tiers:
        return row["priceMax"]  # no tiers listed: use the top of the range
    return max(tiers, key=lambda t: t["minQuantity"] or 0)["price"]

df = df.dropna(subset=["minOrderQuantity", "priceMax"])
df["price_at_moq"] = df.apply(lambda r: unit_price(r, r["minOrderQuantity"]), axis=1)
df["price_at_1000"] = df.apply(lambda r: unit_price(r, 1000), axis=1)
df["cost_of_first_order"] = df["minOrderQuantity"] * df["price_at_moq"]

shortlist = (
    df[df["tradeAssurance"].eq(True) & (df["minOrderQuantity"] <= 100)]
    .sort_values("price_at_moq")
    [["title", "supplierName", "minOrderQuantity", "price_at_moq",
      "price_at_1000", "cost_of_first_order", "supplierRating", "url"]]
)
shortlist.to_csv("shortlist.csv", index=False)
Enter fullscreen mode Exit fullscreen mode

For a rough margin check, add your own per-unit estimates for shipping, duties and platform fees. These numbers are yours to fill in; the scraper only gives you the supplier's listed price:

SHIPPING_PER_UNIT = 0.40   # your own estimate
FEES_PER_UNIT = 0.0        # duties, packaging, platform fees, etc.
SELL_PRICE = 9.99          # your planned retail price

shortlist["landed_cost"] = shortlist["price_at_1000"] + SHIPPING_PER_UNIT + FEES_PER_UNIT
shortlist["margin_pct"] = (SELL_PRICE - shortlist["landed_cost"]) / SELL_PRICE * 100
Enter fullscreen mode Exit fullscreen mode

From there, copy the URLs of your top 10 or 20 into Product details mode ("mode": "productDetails", "productUrls": [...]) to get lead times, variants and package weight before you message suppliers.

What it costs

Pricing is pay per result: $1.50 per 1,000 results, with no start fee. Search results and product pages cost the same.

  • My 20-result test: $0.03
  • Two keywords × 300 results = 600 results: $0.90
  • 100 product detail pages for a shortlist: $0.15

You can also set a maximum charge per run in the run options. The Actor stops when it reaches that amount.

Limitations

  • You get what a logged-out visitor sees. There are no supplier emails or phone numbers, and no prices that need a login or a quote request.
  • Prices are supplier-listed ranges, usually per unit and without shipping. Some product pages say "contact supplier" and have no price, so those fields are null. Treat every number as a starting point for negotiation.
  • Alibaba shows at most 100 pages per search, in its default "best match" order. There is no sorting option and no flag for sponsored listings. To go wider, split by keyword, country or price range.
  • Rare or misspelled keywords still return loosely related products, so check the titles.
  • Not every field appears on every listing. Missing values are null.
  • The site can change. If Alibaba changes its pages or starts blocking requests, runs can break until the Actor is updated. You can report problems in the Issues tab on the store page.

If you are comparing wholesale prices with retail prices, the sibling AliExpress Search Scraper returns AliExpress search results with price, discount, units sold, rating and delivery estimates, so you can see what similar products sell for at retail.

Questions or field requests are welcome in the comments or on the store page.

Top comments (0)