DEV Community

voiddo
voiddo

Posted on Originally published at voidd0.github.io

Made-in-China.com Product Scraper: how to get the data as JSON or CSV (Python, API, no code)

Made in China scraper for Made-in-China.com product search pages by keyword.

This tutorial shows what the Actor v0iddo/made-in-china-scraper returns, how to run it on the Apify Store without code, and how to call it from Python and cURL.

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
keyword Keyword text LED Light
page Page number 1
position Position number 1
name Product Name text 600W Solar Aurora LED Flood Light
category Category text Solar Light
lowPriceUsd Price Low (USD) number 30
highPriceUsd Price High (USD) number 20
supplierName Supplier text Jiangsu Shixin Electric Group Co., Ltd.
inStock In Stock true/false true
image Image image URL https://image.made-in-china.com/43f34j00UiQMNLEmOtbz/600W-Solar-Aur...
url URL URL https://www.made-in-china.com/products-search/hot-china-products/LE...

Real rows from a run of the Actor (fields that name people are left out):

[
  {
    "keyword": "LED Light",
    "page": 1,
    "position": 1,
    "name": "600W Solar Aurora LED Flood Light",
    "category": "Solar Light",
    "lowPriceUsd": 30,
    "highPriceUsd": 20,
    "supplierName": "Jiangsu Shixin Electric Group Co., Ltd.",
    "inStock": true,
    "image": "https://image.made-in-china.com/43f34j00UiQMNLEmOtbz/600W-Solar-Aurora-LED-Flood-Light.jpg",
    "url": "https://www.made-in-china.com/products-search/hot-china-products/LED_Light.html#product-1"
  },
  {
    "keyword": "LED Light",
    "page": 1,
    "position": 2,
    "name": "50W~300W Painted Matte Zijun Carton Customizable Pole Height Avaliable LED Solar Outdoor Light",
    "category": "Solar Light",
    "lowPriceUsd": 28.8,
    "highPriceUsd": 58.8,
    "supplierName": "Jiangsu Zijun Optoelectronic Technology Co., Ltd.",
    "inStock": true,
    "image": "https://image.made-in-china.com/43f34j00KGSvUAIJwBpF/50W-300W-Painted-Matte-Zijun-Carton-Customizable-Pole-Height-Avaliable-LED-Solar-Out...",
    "url": "https://www.made-in-china.com/products-search/hot-china-products/LED_Light.html#product-2"
  }
]
Enter fullscreen mode Exit fullscreen mode

No code: run it on the Apify Store

  1. Open the Made-in-China.com Product Scraper page on Apify.
  2. Fill in the input form. An example input is already filled in.
  3. Press Start, wait for the run to finish, and download the results as JSON, CSV or Excel from the Output tab.

The input that is pre-filled on the Actor page:

{
  "keywords": [
    "LED Light",
    "Solar Panel"
  ],
  "maxPages": 1,
  "maxItems": 20
}
Enter fullscreen mode Exit fullscreen mode

Python (apify-client)

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/made-in-china-scraper.

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'keywords': ['LED Light', 'Solar Panel'], 'maxPages': 1, 'maxItems': 20}

run = client.actor("v0iddo/made-in-china-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
Enter fullscreen mode Exit fullscreen mode

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~made-in-china-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["LED Light", "Solar Panel"], "maxPages": 1, "maxItems": 20}'
Enter fullscreen mode Exit fullscreen mode

Good to know

  • Each listing page returns about 20 products parsed from the structured JSON-LD schema embedded in the page HTML; no JavaScript execution is required.
  • Price fields reflect the FOB USD range shown on the search listing page; final negotiated prices may differ.
  • Use specific keywords (e.g. Solar Panel Monocrystalline) to narrow results; paginate with maxPages to collect more than 20 products per keyword.
  • Not affiliated with Made-in-China.com or Focus Technology Co., Ltd.

Price

$1.44 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 $1.01 per 1,000.

FAQ

What data does the Made-in-China.com Product Scraper return?

Each result is one row in an Apify dataset. Fields include keyword, page, position, name, category, lowPriceUsd, highPriceUsd, supplierName, and more. The table above shows every field with an example value.

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?

$1.44 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 $1.01 per 1,000. A new Apify account gets $5 of platform credit every month.

Links

Top comments (0)