Alibaba scraper
The Zenrows Alibaba scraper turns any Alibaba product or search URL into structured JSON: product name, ID, brand, price tiers, minimum order quantity, lead times, customization options, supplier name, location, years on platform and store rating. You send the URL, Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
alibaba.com- Returns
- Wholesale products, price tiers, MOQ and supplier details
- Updated
{
"price_tiers": [
{ "currency": "EGP", "max_quantity": 49, "min_quantity": 2, "unit_price": 5258.61 },
{ "currency": "EGP", "max_quantity": 99, "min_quantity": 50, "unit_price": 5134.88 },
{ "currency": "EGP", "max_quantity": null, "min_quantity": 100, "unit_price": 5011.15 }
],
"lead_times": [
{ "lead_time_days": "10", "max_quantity": null, "min_quantity": null },
{ "lead_time_days": "35", "max_quantity": null, "min_quantity": null }
],
"customization_options": [
{ "type": "Drawing-based customization" },
{ "type": "Full customization" }
],
"packaging": { "gross_weight": null, "package_size": null, "selling_units": "Single item" },
"product": {
"id": "1601831268627",
"name": "Hot Sale 2.43*4.8M Hexagonal LED Honeycomb Light for Office & Garage Workshop Car Repair Portable",
"brand": "Tianfu",
"color": "White",
"model_number": "14 Honeycomb (with frame)",
"application": "Workshop, Car Repair, Garages, Warehouse, Office",
"availability": "in_stock",
"units_sold": 12
},
"supplier": {
"name": "Anhui Tianfu New Material Co., Ltd.",
"business_type": "Multispecialty Supplier",
"location": "Hefei, CN",
"years_on_platform": 3,
"store_rating": 3.7,
"store_rating_count": 43,
"on_time_dispatch_rate": "≥93%",
"response_time": "≤2h",
"reorder_rate": "10%"
}
}{
"url": "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html",
"mode": "auto",
"extract": "auto"
}Request and output of a live call to an Alibaba product page on Oct 29, 2026, trimmed for length. A field is returned when the page shows it, and the currency of the price tiers follows the location the page is opened from.
What data can you scrape from Alibaba?
Product pages and search results each come back as their own set of fields.
These are the ones sourcing and lead generation teams use most, with the path where each lives in the JSON.
| Field | What it holds | Example |
|---|---|---|
product. |
Alibaba's product ID, the key to join other datasets | 1601831268627 |
product. |
Full listing title | Hot Sale 2.43*4.8M Hexagonal LED Honeycomb Light… |
product. |
Brand name shown on the listing | Tianfu |
product. |
Model or variant label | 14 Honeycomb (with frame) |
product. |
Units sold, when the listing shows it | 12 |
price_ |
Unit price for each quantity band, with currency | { "min_quantity": 50, "unit_price": 5134.88 } |
lead_ |
Days to ship for each order size | { "lead_time_days": "10" } |
customization_ |
Customization the supplier offers | { "type": "Full customization" } |
packaging. |
How the item is sold | Single item |
supplier. |
Company name of the supplier | Anhui Tianfu New Material Co., Ltd. |
supplier. |
City and country of the supplier | Hefei, CN |
supplier. |
Years the supplier has sold on Alibaba | 3 |
supplier. |
Store rating and the number of ratings behind it | 3.7 |
supplier. |
Share of orders dispatched on time | ≥93% |
product_ (search) |
The price range shown for each result | $11.12-12.93 |
product_ (search) |
The minimum order shown for each result | Min. order: 100 meters |
product_ (search) |
Whether the result carries the verified supplier mark | true |
How to scrape Alibaba with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Pick the Alibaba URL. A product page (
/product-detail/…) or a search results page (/trade/search?SearchText=…) works the same way. - Send it with the default configuration: Adaptive Stealth Mode to open the page and Extract to return the fields.
- Read
parsedfrom the response. A product page returnsproduct,price_tiersandsupplier; a search page returnsproduct_listings. To keep only some fields, list their paths and the response returns just those. - Run your full list in Batch once one URL returns what you need, with the product ID as your own key.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
data = response.json()["parsed"]
supplier = data.get("supplier") or {}
tiers = data.get("price_tiers") or []
print(data["product"]["name"], supplier.get("name"))
for tier in tiers:
print(tier["min_quantity"], tier["unit_price"], tier["currency"])
print(json.dumps(data, indent=2))// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html",
mode: "auto",
extract: "auto",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
console.log(parsed.product.name, parsed.supplier?.name);
for (const tier of parsed.price_tiers ?? []) {
console.log(tier.min_quantity, tier.unit_price, tier.currency);
}curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.alibaba.com%2Fproduct-detail%2FHot-Sale-2-43-4-8M_1601831268627.html&mode=auto&extract=auto"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.alibaba.com%2Fproduct-detail%2FHot-Sale-2-43-4-8M_1601831268627.html&mode=auto&extract=auto&extract_fields=product.name%2Cprice_tiers%2Csupplier.name%2Csupplier.years_on_platform"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
response = client.get(
"https://www.alibaba.com/trade/search?SearchText=led+lights",
params={"mode": "auto", "extract": "auto"},
)
for item in response.json()["parsed"]["product_listings"]:
print(item["product_id"], item.get("price_range"), item.get("minimum_order_quantity"), item.get("supplier_name"))Input
The scraper takes one Alibaba URL per request, plus the options below.
The same parameters go into every task of a Batch job, so the input for a thousand products is a list of URLs with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | Any Alibaba page: a product (/product-detail/…) or a search (/trade/search?SearchText=…) |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the page's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as product.name,price_tiers |
proxy_ |
string | any | Two-letter country code. Alibaba shows the currency and some prices for the visitor's location |
wait_ |
string | none | A CSS selector to wait for before the page is read |
session_ |
integer | none | Reuse the same session across several requests, up to 10 minutes |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{ "url": "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html", "external_id": "1601831268627" },
{ "url": "https://www.alibaba.com/product-detail/Multicolour-LED-Neon-Flex-Rope-Light_1600954305924.html", "external_id": "1600954305924" },
{ "url": "https://www.alibaba.com/trade/search?SearchText=led+lights", "external_id": "search-led-lights" }
]
}
Output
Every response is JSON with two keys: html, the page as Alibaba served it, and parsed, the structured record. The shape of parsed follows the page type, so a product page and a search page return different groups. Both samples below are trimmed outputs of live requests.
Need a spreadsheet? Load parsed into pandas with pd.json_normalize(...) and write CSV or Excel. Need the page for an LLM? Ask for Markdown instead of JSON.
{
"images": [
{ "url": "//s.alicdn.com/@sc04/kf/H8dd2bb8c76544678adfd73407ba2d4a65.png_960x960q80.jpg" }
],
"price_tiers": [
{ "currency": "EGP", "max_quantity": 49, "min_quantity": 2, "unit_price": 5258.61 },
{ "currency": "EGP", "max_quantity": null, "min_quantity": 100, "unit_price": 5011.15 }
],
"lead_times": [
{ "lead_time_days": "10", "max_quantity": null, "min_quantity": null }
],
"product": {
"id": "1601831268627",
"name": "Hot Sale 2.43*4.8M Hexagonal LED Honeycomb Light for Office & Garage Workshop Car Repair Portable",
"brand": "Tianfu",
"color": "White",
"availability": "in_stock",
"units_sold": 12,
"place_of_origin": null
},
"ratings": null,
"sku_options": [],
"supplier": {
"name": "Anhui Tianfu New Material Co., Ltd.",
"business_type": "Multispecialty Supplier",
"location": "Hefei, CN",
"years_on_platform": 3,
"store_rating": 3.7,
"store_rating_count": 43,
"response_time": "≤2h"
}
}{
"product_listings": [
{
"product_id": "1600954305924",
"title": "Multicolour LED Neon Flex Rope Light 24V Colours Smart Home Night Lights LED Smart Neon RGB LED Strip Light for DIY Decoration",
"price_range": "$11.12-12.93",
"minimum_order_quantity": "Min. order: 100 meters",
"review_score": 5,
"review_count": 1,
"is_verified_supplier": true,
"supplier_name": "Shenzhen Lumimore Lighting Co., Ltd.",
"supplier_country": "CN",
"supplier_years_on_platform": 6,
"supplier_star_rating": 1,
"product_url": "//www.alibaba.com/product-detail/Multicolour-LED-Neon-Flex-Rope-Light_1600954305924.html",
"units_sold": null
},
{
"product_id": "1601831268627",
"title": "Hot Sale 2.43*4.8M Hexagonal LED Honeycomb Light for Office & Garage Workshop Car Repair Portable",
"price_range": "$81-85",
"minimum_order_quantity": "Min. order: 2 sets",
"review_score": 3.8,
"review_count": 26,
"is_verified_supplier": true,
"supplier_name": "Anhui Tianfu New Material Co., Ltd.",
"supplier_country": "CN",
"supplier_years_on_platform": 3,
"supplier_star_rating": 5,
"units_sold": "12 sold"
}
]
}Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.alibaba.com/trade/search?SearchText=led+lights"
Then ask your agent
Use Zenrows to open this Alibaba search, then list the suppliers with a
verified mark, their minimum order and price range, sorted by years on
the platform:
https://www.alibaba.com/trade/search?SearchText=led+lights
Scrape Alibaba from your coding agent
Claude Code, Cursor, Codex and any MCP client can scrape Alibaba from a prompt.
The agent calls the same Fetch and Extract request a developer would, so the JSON above is what it reads. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal.
Scrape Alibaba at scale with Batch and Crawl
Batch runs a list of Alibaba URLs as one job: thousands of product pages in parallel, with your own ID on each result. Use it to track price tiers and minimum orders across a shortlist of suppliers every week.
Crawl finds the URLs for you. Start it on a search results page, keep the links that contain /product-detail/, and it returns every product page it reaches. Send that list to Batch.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": { "mode": "auto", "extract": "auto" },
"tasks": [
{ "url": "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html", "external_id": "1601831268627" },
{ "url": "https://www.alibaba.com/product-detail/Multicolour-LED-Neon-Flex-Rope-Light_1600954305924.html", "external_id": "1600954305924" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# products.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create products.jsonl --wait
zenrows batch results <job-id> --out alibaba-products.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.alibaba.com/trade/search?SearchText=led+lights",
"depth": 1,
"max_pages": 100,
"include_patterns": ["/product-detail/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{
"url": "https://www.alibaba.com/product-detail/Hot-Sale-2-43-4-8M_1601831268627.html",
"external_id": "alibaba"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with Alibaba data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Supplier sourcing | Supplier name, location, years on platform, store rating, dispatch rate | Procurement and sourcing teams |
| Landed cost modeling | Price tiers, minimum order quantity, lead times, packaging | Importers and ecommerce operators |
| Wholesale price tracking | Price range and tier changes for the same product over time | Pricing analysts and resellers |
| Product and trend research | Units sold, ratings and listings per search keyword | Product managers and market researchers |
| Supplier lead lists | Company names, business type and location for a product category | B2B sales and lead generation teams |
| AI sourcing agents | The full product record, or the page as Markdown | AI and data teams |
Tips for scraping Alibaba
- Use the product ID as your key. The ID in
product.idandproduct_listings[].product_idis the number at the end of the product URL, so it joins search results to product pages without parsing titles. - Read price tiers, not a single price. A listing has one unit price per quantity band in
price_tiers[]. Pick the tier that matches your order size and readmin_quantityandmax_quantityto know where it applies. - Set the country you buy from. The currency and some prices follow the visitor's location, so keep the same country on every request when you compare over time. The sample above returned prices in EGP from an unset location.
- Search pages give the shortlist.
/trade/search?SearchText=…returns price range, minimum order and supplier basics for each result. Request the product pages only for the listings you keep. - Expect empty fields. Specification fields such as
product.rated_powerorproduct.weightappear on the categories that use them and come back asnullelsewhere, so read optional groups defensively. - Paginate searches with the page parameter. Add
&page=2to the search URL and request each page in Batch.
More Alibaba and lead generation scrapers
-
alibaba.com
Alibaba supplier scraper
Supplier profile with country, years on platform, verification status, response rate and product range.
-
alibaba.com
Alibaba search scraper
Wholesale products for any keyword with price range, MOQ and supplier name.
-
crunchbase.com
Crunchbase scraper
Company profiles with funding totals, rounds, investors, acquisitions and headcount ranges.
-
similarweb.com
Similarweb scraper
Website traffic estimates with visits, global rank, bounce rate and traffic sources per domain.
-
apollo.io
Apollo scraper
Public company directory pages with industry, headcount, location and technologies used.
-
indiamart.com
IndiaMART scraper
Indian B2B listings with product prices, supplier names, cities and GST status.
-
zoominfo.com
ZoomInfo scraper
Public company profiles with industry, revenue range, headcount, location and website.
-
clutch.co
Clutch scraper
B2B service provider profiles with client reviews, hourly rates, team size and services.
-
builtwith.com
BuiltWith scraper
Technology profiles of websites with detected tools, categories and first and last seen dates.
Frequently asked questions
-
Collecting publicly available data from Alibaba, such as product listings, price tiers and the business details suppliers publish, is common practice for sourcing and market research. Listings can include named individuals, and personal data is protected by laws such as the GDPR and the CCPA, so collect only what you have a legitimate reason to use. Check Alibaba's terms for your use case and ask your lawyer if you are unsure.
-
Alibaba.com has an Open Platform for sellers and approved partners, with access tied to a registered account and an approved application, and it focuses on managing your own products and orders. It does not return the public listing of any supplier on demand, which is why teams use a scraper for sourcing and competitor data.
-
Product pages (
/product-detail/…) and search results (/trade/search?SearchText=…) on alibaba.com. Send the URL as it appears in your browser. -
Yes. Product pages return every price tier with its quantity band and currency, and search results return the price range and the minimum order shown for each listing. Request from a fixed country so the currency stays the same between runs.
-
Send a GET request to
https://api.zenrows.com/v1/with your API key, the Alibaba URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response'sparsedkey holds the product as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Send one URL per request, or a whole list as a Batch job that runs the URLs in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, sent inline or as a CSV file.
-
No. Extract returns each field by name, so your code reads
parsedinstead of parsing Alibaba's HTML. For a field of your own, send a separate request with CSS selectors instead of Extract. -
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the suppliers or products you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your Alibaba URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. Send results to Google Sheets, a database or a data warehouse from the workflow tool you already use. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.