Skip to content

piotrv1001/yiwugo-scraper-nodejs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Scrape Yiwugo in Node.js

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.

Yiwugo scraper results

What this example does

  • Calls the piotrv1001/yiwugo-listings-scraper Apify 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

Prerequisites

Installation

npm install

Environment setup

Copy the example env file and add your Apify API token:

cp .env.example .env

Then edit .env:

APIFY_TOKEN=your_apify_token_here

Usage

npm start

Code example

import { 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/docs

Example output

A mock response is provided in sample-output.json. Each product item includes fields like:

  • id — Yiwugo product ID
  • productUrl — direct link to the product page
  • title — product title (Chinese)
  • sellPrice, unitprice, totalprice — pricing tiers in CNY
  • metric — sales unit (e.g. / piece)
  • saleNumber, dealQuantitys — sales volume signals
  • propertyList — variants such as color and model
  • shopId, shopName, years, shopCredit, shopIntegrityFraction — seller info
  • contacter, mobile, safeMobile, weixin, email — seller contact details
  • factoryAddress, marketCode, boothId, boothOwners — physical booth metadata

Use cases

  • 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

Try the actor on Apify

Open the Yiwugo Listings Scraper on Apify

Related resources

License

MIT

About

Node.js example showing how to scrape Yiwugo product listings using an Apify actor

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors