DEV Community

Gio Rich
Gio Rich

Posted on

Finding low-MOQ best sellers in Alibaba's Top ranking lists with Python

I built this actor; it's a paid tool on Apify with a free trial credit. This article was drafted with AI and published by me.

Alibaba.com has a "Top ranking" section that most sourcing tools ignore. For each product niche it lists the top 20 products three ways: Hot selling (ranked by orders), Most popular (views and interested buyers) and Best reviewed (review volume over 180 days), each for global, US or European buyers. It is Alibaba's own answer to "what is actually selling here", which is a better starting point for product research than a keyword search sorted by relevance.

The catch is that it is a page made for scrolling, not for spreadsheets. I built Alibaba Top Ranking Scraper to turn those lists into rows. This post shows how to call it from Python and Node, what a row looks like, and a small script that picks the ranked products you can test-order cheaply.

How it works

The ranking pages carry their data in the HTML Alibaba renders, so the actor reads them over plain HTTP: no headless browser, no login, no cookies. You give it category names (Consumer Electronics, Beauty > Makeup & Tools), category IDs or Top ranking URLs, and pick the ranking types and buyer regions.

With no input it runs a demo: the 5 featured hot-selling niches of Consumer Electronics, 20 products each. On Apify that run (23 Nov 2026, 512 MB) saved 100 products in 6.1 seconds. Locally on my home connection it took 3.2 to 3.6 seconds.

Calling it from Python

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

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("rel8ble/alibaba-top-ranking-scraper").call(run_input={
    "categories": ["Consumer Electronics", "Pet Supplies"],
    "rankTypes": ["hot-selling"],
    "regions": ["global"],
    "maxRankingsPerCategory": 5,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rankingName"], item["rank"], item["priceText"], item["moqText"], item["soldText"])
Enter fullscreen mode Exit fullscreen mode

Calling it from Node

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('rel8ble/alibaba-top-ranking-scraper').call({
    categories: ['Jewelry, Eyewear, Watches & Accessories > Watches'],
    rankTypes: ['hot-selling', 'most-popular'],
    regions: ['us', 'eur'],
    maxRankingsPerCategory: 0, // every watch niche, not only the featured ones
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
Enter fullscreen mode Exit fullscreen mode

What a row looks like

A real row from a 21 Nov 2026 demo run, trimmed (46 fields in full):

{
  "rank": 1,
  "rankType": "hot-selling",
  "rankBasis": "Ranked by total number of orders",
  "region": "global",
  "rankingName": "Mobile Phone Housings",
  "categoryPath": ["Consumer Electronics", "Mobile Phone & Computer Repair Parts", "Mobile Phone Housings"],
  "productId": "1601846501351",
  "title": "For Infinix Tecno Itel Smart 20 X6840 Back Glass Battery Cover Back Case Mobile Phone Housing Replacement Parts",
  "priceText": "$0.88-1.08",
  "priceMin": 0.88,
  "priceMax": 1.08,
  "moq": 5,
  "moqUnit": "pieces",
  "orders": 180,
  "ordersText": "180+ orders",
  "sold": 4800,
  "soldText": "4.8K+ sold",
  "views": 2900,
  "rankScore": 4.5,
  "reviewScore": 5,
  "supplierCountryCode": "HK",
  "goldSupplier": true,
  "goldSupplierYears": 3,
  "otherRankings": [{ "rankType": "most-popular", "rank": 2, "rankingName": "Mobile Phone Housings", "region": "global" }]
}
Enter fullscreen mode Exit fullscreen mode

orders, sold and views are the rounded figures Alibaba shows ("4.8K+ sold" becomes 4800); the original text sits next to each number. otherRankings tells you where else the same product ranks, so a #1 hot seller that is also #2 most popular stands out.

Project: a test-order shortlist

The rankings are sorted by orders, but what I care about before sourcing is simpler: can I buy a handful to test, and has it sold real volume? This script keeps products with an MOQ of 10 or less and at least 500 units sold, then prints a per-niche summary and the shortlist:

from collections import defaultdict
from statistics import median
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("rel8ble/alibaba-top-ranking-scraper").call(run_input={
    "categories": ["Consumer Electronics"],
})
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())

by_niche = defaultdict(list)
for r in rows:
    by_niche[r["rankingName"]].append(r)

for niche, items in sorted(by_niche.items()):
    lows = [r["priceMin"] for r in items if r.get("priceMin") is not None]
    easy = sum(1 for r in items if r.get("moq") is not None and r["moq"] <= 10)
    print(f"{niche:<30} {len(items):>3} rows  median low price ${median(lows):,.2f}  MOQ<=10: {easy}")

picks = [r for r in rows
         if r.get("moq") is not None and r["moq"] <= 10 and (r.get("sold") or 0) >= 500]
picks.sort(key=lambda r: (r["rankingName"], -r["sold"]))

print(f"\nShortlist: {len(picks)} products")
for r in picks:
    per_order = round(r["sold"] / r["orders"]) if r.get("orders") else "-"
    print(f'[{r["rankingName"][:22]} #{r["rank"]}] {r["priceText"]:<12} MOQ {r["moqText"]:<10} '
          f'{r["sold"]:>6} sold / {r["orders"]:>3} orders (~{per_order}/order) '
          f'{r["supplierCountryCode"]} {r["goldSupplierYears"]} yrs  {r["title"][:50]}')
Enter fullscreen mode Exit fullscreen mode

Here is what it printed on the 100 real rows from the 23 Nov 2026 demo run:

Niche Rows Median low price MOQ 10 or less
Data Cables 20 $0.74 12
Graphics Cards 20 $762.50 20
Mobile Phone Housings 20 $1.88 18
Photographic Lighting 20 $21.43 18
Power Banks & Power Station 20 $8.50 15

30 of the 100 products passed the filter. The first few per niche:

Niche Rank Price MOQ Units sold / orders
Data Cables #16 $3.81-4.19 10 pieces 76,200 / 20
Data Cables #2 $0.90 2 pieces 2,700 / 60
Mobile Phone Housings #11 $1 5 pieces 11,700 / 20
Mobile Phone Housings #1 $0.88-1.08 5 pieces 5,100 / 170
Photographic Lighting #12 $3 1 piece 1,000 / 10
Power Banks & Power Station #2 $7.68-9.20 1 set 17,200 / 110
Power Banks & Power Station #9 $7-12 10 pieces 14,400 / 40

Two things jumped out. First, the rank and the volume tell different stories: the #16 data cable has sold 76,200 units across only 20 orders (a few big wholesale buyers), while #2 has 2,700 units across 60 orders (many small buyers, which is closer to how a test order behaves). Units per order is a rough split between "bulk buyers" and "lots of small buyers", worth a column in your sheet. Second, Graphics Cards passed the MOQ test 20 of 20 but no card sold 500 units, so the niche drops out entirely: low MOQ alone is not a signal.

Variations that are one input change away:

  • US vs Europe: regions: ["us", "eur"] on the same niche and join on productId to see what only one market buys.
  • Weekly tracker: schedule the run on Apify and store rank, orders and sold per productId; climbers show up within a few weeks.
  • Keyword walk: categories: ["Pet Supplies"], rankingKeywords: ["feeder"] keeps only rankings whose name matches, and skipped rankings are not charged.

Pricing and limits

$1.00 per 1,000 ranked products (live price on 24 Nov 2026), no start fee; categories that aren't found, duplicate lists and failed requests are not charged. The 100-row demo costs $0.10, so Apify's free $5 monthly credit covers about 5,000 products. Each ranking is 20 products, and not every niche has all three ranking types. Orders, sold and views are Alibaba's rounded figures, and views or review stars are missing on some products (in the 23 Nov demo run views were on 77 of 100 rows). Prices come in the currency Alibaba shows to the request's country; the runs above were USD. Alibaba rate-limits a single IP after a burst of ranking pages, so the actor paces itself and retries blocked pages through Apify Proxy.

For full specs, price tiers and supplier details of a shortlisted product, pass its url to Alibaba Product Details Scraper.

Store page: https://apify.com/rel8ble/alibaba-top-ranking-scraper

Need a custom scraper or a ready dataset? Hire me on Fiverr: https://www.fiverr.com/rel8ble

Top comments (0)