Alibaba Scraper: how to get Prices, MOQ, Suppliers as JSON/CSV (API, Python, no code)
Scrape Alibaba.com product offers by keyword: title, price range and quantity price tiers, minimum order, units sold, ratings, certifications, and the supplier's name, country, years, Gold and verified badges, Trade Assurance and response rate. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/alibaba-scraper on Apify.
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
productId | Product ID | text | 1601209913000 |
title | Title | text | Wholesale Custom Print logo Curve Arch Oval Shape Eco-friendly Yoga... |
priceMin | Price from | number | 13.9 |
priceMax | Price to | number | 13.9 |
minOrder | Min order | number | 1 |
minOrderUnit | Unit | text | piece |
sold | Sold | number | 655 |
supplierName | Supplier | text | Hunan Sanmo Sports Goods Co., Ltd. |
supplierCountry | Country | text | China |
url | Product URL | URL | https://www.alibaba.com/product-detail/wholesale-eco-friendly-custo... |
searchTerm | text | yoga mat | |
page | number | 1 | |
position | number | 1 | |
currency | text | USD | |
priceText | text | US $13.90 | |
minOrderText | text | 1 piece | |
quantityPrices | list | [{"minQuantity": 1, "maxQuantity": null, "price": 13.9, "unit": "Pi... | |
soldText | text | 655 sold | |
productRating | number | 4.9 | |
supplierRating | number | 4.8 | |
supplierReviews | number | 122 | |
certifications | list | ["REACH"] | |
supplierCountryCode | text | CN | |
supplierYears | number | 3 | |
goldSupplier | true/false | true | |
verifiedSupplier | true/false | true | |
tradeAssurance | true/false | true | |
responseRate | number | 99.9 | |
image | text | https://s.alicdn.com/@sc04/kf/H5f8e09fbf6ac46dc8186def59e788754q.jpg |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"searchTerms": [
"led strip lights"
],
"maxPages": 1,
"maxItems": 20
}
| Input field | Type | What it does |
|---|---|---|
searchTerms | array | Products as a buyer would type them, one per line, for example led strip lights. |
searchUrls | array | Optional alibaba.com keyword pages (https://www.alibaba.com/wholesale/....html). |
maxPages | integer | How many result pages (about 47 offers each) to read per keyword. |
maxItems | integer | The run stops after this many result rows. |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"searchTerm": "yoga mat",
"page": 1,
"position": 1,
"productId": "1601209913000",
"title": "Wholesale Custom Print logo Curve Arch Oval Shape Eco-friendly Yoga Mats Pu Rubber Non-slip Pilates Mat Tapis Yoga Workout Mats",
"priceMin": 13.9,
"priceMax": 13.9,
"currency": "USD",
"priceText": "US $13.90",
"minOrder": 1,
"minOrderUnit": "piece",
"minOrderText": "1 piece",
"quantityPrices": [
{
"minQuantity": 1,
"maxQuantity": null,
"price": 13.9,
"unit": "Piece"
}
],
"sold": 655,
"soldText": "655 sold",
"productRating": 4.9,
"supplierRating": 4.8,
"supplierReviews": 122,
"certifications": [
"REACH"
],
"supplierName": "Hunan Sanmo Sports Goods Co., Ltd.",
"supplierCountry": "China",
"supplierCountryCode": "CN",
"supplierYears": 3,
"goldSupplier": true,
"verifiedSupplier": true,
"tradeAssurance": true,
"responseRate": 99.9,
"image": "https://s.alicdn.com/@sc04/kf/H5f8e09fbf6ac46dc8186def59e788754q.jpg",
"url": "https://www.alibaba.com/product-detail/wholesale-eco-friendly-custom-print-logo_1601209913000.html"
},
{
"searchTerm": "yoga mat",
"page": 1,
"position": 2,
"productId": "1601619033222",
"title": "Factory Wholesale Custom Logo Coconut Eco Friendly PU Rubber Yoga Mat Foldable PU Travel Yoga Mat Body Line Oval Pill Shape Mat",
"priceMin": 8.5,
"priceMax": 11.5,
"currency": "USD",
"priceText": "US $8.50-$11.50",
"minOrder": 5,
"minOrderUnit": "pieces",
"minOrderText": "5 pieces",
"quantityPrices": [
{
"minQuantity": 5,
"maxQuantity": 49,
"price": 11.5,
"unit": "pieces"
},
{
"minQuantity": 50,
"maxQuantity": 199,
"price": 10.9,
"unit": "pieces"
},
{
"minQuantity": 200,
"maxQuantity": 999,
"price": 10.1,
"unit": "pieces"
}
],
"sold": 699,
"soldText": "699 sold",
"productRating": 4.7,
"supplierRating": 4.7,
"supplierReviews": 21,
"supplierName": "Yiwu Chi'an Trading Co., Ltd.",
"supplierCountry": "China",
"supplierCountryCode": "CN",
"supplierYears": 2,
"goldSupplier": true,
"verifiedSupplier": true,
"tradeAssurance": true,
"responseRate": 100,
"image": "https://s.alicdn.com/@sc04/kf/Hca11ad78fa574389a2a122cae41e6966E.png",
"url": "https://www.alibaba.com/product-detail/Factory-Wholesale-Custom-Logo-Coconut-Eco_1601619033222.html"
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/alibaba-scraper.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'searchTerms': ['led strip lights'], 'maxPages': 1, 'maxItems': 20}
run = client.actor("v0iddo/alibaba-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"searchTerms": [
"led strip lights"
],
"maxPages": 1,
"maxItems": 20
};
const run = await client.actor('v0iddo/alibaba-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~alibaba-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["led strip lights"], "maxPages": 1, "maxItems": 20}'
Price
$0.75 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.53 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
Good to know
- Reads Alibaba's public keyword pages (alibaba.com/wholesale/...). Its search box pages are closed to automated access in robots.txt, so filters such as price range or supplier type are not offered.
- Most product keywords have a page. When one has none, the run tries the plural once and logs the keyword if that has none either.
- Prices are as shown to a visitor of the English site, usually in US dollars; quantityPrices lists the price per quantity tier when the offer has tiers.
- Supplier contact details are not collected.
FAQ
What data does the Alibaba Scraper return?
Each result is one row in an Apify dataset. Fields include productId, title, priceMin, priceMax, minOrder, minOrderUnit, sold, supplierName, and more. The table above shows every field with an example value.
How do I use the Alibaba Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/alibaba-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$0.75 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.53 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Related guides
- Coles Price Scraper: Scrape Coles Australia products by department, category or the specials pages: price, was price, unit price...
- Vinted Product Scraper: Collect public Vinted listings by search word or catalog link: title, brand, size, condition, price with cu...
- TikTok Shop Scraper: Scrape TikTok Shop product pages in the United States from product links or IDs: title, price, original pri...