Skip to content

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Alibaba Scraper

Scrape Alibaba.com products, wholesale prices, MOQs, suppliers and buyer reviews as clean JSON β€” 100% free and open source.

Repo stars

Alibaba Scraper turns any Alibaba.com page into structured JSON β€” 12 endpoints covering product search with 16 filters, full product pages (volume price ladder, every SKU with its own price and stock, lead times, certifications), supplier profiles, buyer reviews, and reverse image search.

Perfect for product research, price monitoring, dropshipping and supplier sourcing. Free forever, unlimited requests, runs on your machine.

πŸš€ Unlimited Free Alibaba Data β€” Run It in 60 Seconds

1️⃣ Clone and install:

git clone https://github.com/omkarcloud/alibaba-scraper
cd alibaba-scraper
python -m pip install -r requirements.txt

2️⃣ Start the API:

python run.py

3️⃣ Get your first data:

curl "http://localhost:8000/products/search?query=raspberry+pi"
{
  "count": 20301,
  "per_page": 48,
  "current_page": 1,
  "total_pages": 100,
  "next": "http://localhost:8000/products/search?query=raspberry+pi&page=2",
  "results": [
    {
      "id": 1601110348559,
      "title": "Original Raspberry Pi 4 Model B 1GB/ 2GB/ 4GB/ 8GB SDRAM Raspberry PI 4B",
      "link": "https://www.alibaba.com/product-detail/Original-Raspberry-Pi-4-Model-B_1601110348559.html",
      "price": { "min": 79.0, "max": 79.0, "currency": "USD", "formatted": "$79" },
      "moq": { "quantity": 1, "unit": "piece" },
      "rating": { "review_score": 5.0, "review_count": 14 },
      "supplier": { "name": "Shenzhen Silver Qiao Electronic Technology Co., Ltd.", "country_code": "CN", "years_on_alibaba": 5 }
    }
  ]
}

All 12 endpoints are now live at http://localhost:8000.

πŸ” Exploring Parameters

The same API is published on RapidAPI, and its playground is the easiest place to try parameters and see raw responses. Once a request looks right, run it locally.

  1. Subscribe to the free plan β€” 1,000 calls/month, no credit card.
  2. Try the endpoints in the playground β€” every param is pre-filled, so you see real data in one click.
  3. Copy the generated code and replace https://best-alibaba-scraper-free-1000-calls.p.rapidapi.com with http://localhost:8000. It now runs against your local API.
import requests

# generated by the playground, host swapped for the local API
response = requests.get(
    "http://localhost:8000/products/search",
    params={"query": "raspberry pi"},
)
print(response.json())

🚨 Use a Residential Proxy

Alibaba rate-limits by IP, so a bare home or server IP will get blocked. After a handful of requests you start getting 502s ("alibaba blocked the request") that clear on their own after a few minutes. Fine for trying things out β€” not for real scraping.

Fix it by pointing the scraper at any residential proxy provider:

export ALIBABA_PROXY="http://username:password@proxy.provider.com:port"
python run.py

πŸ“š Endpoints

Every path also works with an /alibaba prefix, and all of them are GET.

Endpoint Path Returns
Product Details /products/details Price ladder, MOQ, every SKU with stock, images, attributes, certifications, supplier
Search Products /products/search 48 products/page β€” 16 filters: price, MOQ, rating, country, badges, certifications
Products By Category /products/by-category A whole category, 48/page, with the same filters
Search By Image /products/search-by-image Matching products from any photo URL, 20/page, with crop regions
Product Reviews /products/reviews Buyer reviews β€” rating, translated text, photos, country, supplier reply
Autocomplete /autocomplete Search-bar keyword suggestions
Categories /categories The whole category tree with IDs
Trending Keywords /trending-keywords What buyers are searching for right now
Search Suppliers /suppliers/search 20 manufacturers/page β€” years, badges, rating, response time
Supplier Details /suppliers/details Company profile β€” verification, factory facts, markets, payment terms
Supplier Products /suppliers/products Everything one supplier sells, 16/page, searchable & sortable
Supplier Reviews /suppliers/reviews Every review across a supplier's catalog

Every product, supplier, category and image param takes either an ID or the alibaba.com link you copied from your browser. List endpoints return count, per_page, current_page, total_pages and ready-to-follow next / previous links. Prices are numbers with a separate currency, dates are ISO, and anything missing is null.

More Scrapers by Omkar Cloud

Support

Message us anytime and we'll solve your query within 1 working day β€” you talk to the engineers who built the scraper, not a support script.

Contact Us on WhatsApp about Alibaba Scraper

Email Us about Alibaba Scraper

Star the repo ⭐ and become a star hero!

It's just 1 click, but it means the world to me.

Star us on GitHub

Releases

Packages

Contributors

Languages