Programmatic China & SEA Sourcing: Comparing 1688 Wholesale, Goofish (闲鱼) & Lazada Prices in Python & n8n
Cross-border sourcing teams spend hours every week tab-switching between 1688.com (China factory wholesale), Goofish / Xianyu (闲鱼) (China's largest secondhand & arbitrage marketplace), AliExpress , and Lazada (6 SEA markets) just to verify real supplier margins. Automating those platforms directly is notoriously brittle: login walls, captcha loops, mobile-only pricing, and region locks break…
Cross-border sourcing teams struggle to compare real supplier margins across multiple platforms such as 1688.com, Goofish/Xianyu, AliExpress, and Lazada. Automating this process with traditional methods often encounters issues like login walls, captcha loops, mobile-only pricing, and region locks, causing homegrown Playwright scripts to fail.
To address this challenge, the authors developed sub-second Cloudflare Edge REST APIs, a zero-dependency bilingual SDK (pip install china-sourcing-sdk / npm i china-sourcing-sdk), and ready-to-import n8n workflows. These tools are available for free on GitHub at github.com/jistudio-dev. The MIT-licensed SDKs and n8n templates connect to the authors' hosted RapidAPI Edge APIs and Apify Store Actors.
The APIs provide several capabilities:
1. Live Edge REST APIs (Zero Cookie · Sub-500ms · Free Tier): These APIs allow direct calls to 1688, Goofish, and Lazada without needing a browser or proxy pool. 1688 China Wholesale API supports 9 endpoints for EN/CN search, 30-field SKU and tiered MOQ pricing, 40-image factory descriptions, live MOQ landed-cost calculator, and 10-offer concurrent batching.
Goofish (Xianyu / 闲鱼) API has 10 endpoints for keyword search with price/sort filters, Zhima seller credit intelligence, 8-listing batching, and automated resale arbitrage price analytics. Lazada's 6-Country SEA API offers 13 endpoints for product detail by ID/URL/shortlink, LazMall bestsellers, unified storefront profiles, Q&A, LazLive, and official shortlink generation. The interactive playgrounds for each API are available for testing.
2. Bulk Multi-Platform SDK in Python (pip install china-sourcing-sdk): Using the ChinaSourcingClient, developers can easily pull factory wholesale offers & MOQ from 1688 (English or 中文), check global retail comps on AliExpress, check China secondhand / arbitrage floor price on Goofish, and check Southeast Asia retail comps on Lazada. This SDK simplifies the process of comparing prices across multiple platforms with a single Python library.
3. Node.js 18+ ESM Client (npm i china-sourcing-sdk): Similar to the Python SDK, this client enables Node.js developers to access the same APIs using JavaScript. The developer can search for products on 1688 and Goofish with a single instance of the ChinaSourcingClient.
4. Automated Sourcing Alerts in n8n (Free Templates): n8n users can import pre-built templates for sourcing and e-commerce monitoring. Two templates are available: 1688 Factory Wholesale Monitor and Goofish (闲鱼) Secondhand Price Watch. These templates help users monitor pricing, generate alerts, and streamline their sourcing processes.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to