vøiddo guidesAll Actors on Apify

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.

Open 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.

FieldLabelTypeExample
productIdProduct IDtext1601209913000
titleTitletextWholesale Custom Print logo Curve Arch Oval Shape Eco-friendly Yoga...
priceMinPrice fromnumber13.9
priceMaxPrice tonumber13.9
minOrderMin ordernumber1
minOrderUnitUnittextpiece
soldSoldnumber655
supplierNameSuppliertextHunan Sanmo Sports Goods Co., Ltd.
supplierCountryCountrytextChina
urlProduct URLURLhttps://www.alibaba.com/product-detail/wholesale-eco-friendly-custo...
searchTermtextyoga mat
pagenumber1
positionnumber1
currencytextUSD
priceTexttextUS $13.90
minOrderTexttext1 piece
quantityPriceslist[{"minQuantity": 1, "maxQuantity": null, "price": 13.9, "unit": "Pi...
soldTexttext655 sold
productRatingnumber4.9
supplierRatingnumber4.8
supplierReviewsnumber122
certificationslist["REACH"]
supplierCountryCodetextCN
supplierYearsnumber3
goldSuppliertrue/falsetrue
verifiedSuppliertrue/falsetrue
tradeAssurancetrue/falsetrue
responseRatenumber99.9
imagetexthttps://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 fieldTypeWhat it does
searchTermsarrayProducts as a buyer would type them, one per line, for example led strip lights.
searchUrlsarrayOptional alibaba.com keyword pages (https://www.alibaba.com/wholesale/....html).
maxPagesintegerHow many result pages (about 47 offers each) to read per keyword.
maxItemsintegerThe 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

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.

Open Alibaba Scraper on Apify

Related guides