A simple Node.js example that shows how to scrape product listings from Yiwugo — the world's largest small commodity marketplace — using a ready-made Apify actor. No custom scraper, no headless browser, no captcha headaches — just pass a keyword and get structured product data back.
- Calls the
piotrv1001/yiwugo-listings-scraperApify actor - Passes a keyword input (e.g.
手机壳— phone cases) - Waits for the run to finish
- Fetches results from the run's dataset
- Prints each product item to the console
- Node.js 18 or newer
- An Apify account (free tier works)
- Your Apify API token
npm installCopy the example env file and add your Apify API token:
cp .env.example .envThen edit .env:
APIFY_TOKEN=your_apify_token_herenpm startimport { ApifyClient } from 'apify-client';
import 'dotenv/config';
// Initialize the ApifyClient with your Apify API token
// Set APIFY_TOKEN in your .env file (copy .env.example to get started)
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
// Prepare Actor input
const input = {
"keywords": [
"手机壳"
]
};
// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/yiwugo-listings-scraper").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsA mock response is provided in sample-output.json. Each product item includes fields like:
id— Yiwugo product IDproductUrl— direct link to the product pagetitle— product title (Chinese)sellPrice,unitprice,totalprice— pricing tiers in CNYmetric— sales unit (e.g.个/ piece)saleNumber,dealQuantitys— sales volume signalspropertyList— variants such as color and modelshopId,shopName,years,shopCredit,shopIntegrityFraction— seller infocontacter,mobile,safeMobile,weixin,email— seller contact detailsfactoryAddress,marketCode,boothId,boothOwners— physical booth metadata
- Product sourcing — find suppliers and wholesale pricing for niche goods
- Market research — track pricing, sales volume, and product trends in the Yiwu market
- Lead generation — build B2B contact lists of Chinese suppliers and booth owners
- Competitive monitoring — watch competitor catalogs and price changes
- E-commerce arbitrage — discover trending products for resale on Amazon, eBay, or Shopify
Open the Yiwugo Listings Scraper on Apify
- Full guide: How to scrape Yiwugo product listings
MIT
