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 homegrown Playwright scripts almost immediately.
We built both sub-second Cloudflare Edge REST APIs (with free tiers on RapidAPI) and a zero-dependency bilingual (EN / 中文) SDK (pip install china-sourcing-sdk / npm i china-sourcing-sdk) plus ready-to-import n8n workflows.
Full disclosure: The MIT-licensed SDKs and n8n templates live under **JiStudio* at github.com/jistudio-dev, connecting to our hosted RapidAPI Edge APIs and Apify Store Actors (
jistudio).*
1. Live Edge REST APIs (Zero Cookie · Sub-500ms · Free Tier)
You can call 1688, Goofish, and 6-country Lazada directly via standard HTTP without running any browser or proxy pool:
-
1688 China Wholesale API (9 endpoints) — EN/CN search, 30-field SKU & tiered MOQ pricing, 40-image factory descriptions, live MOQ landed-cost calculator (
/price-calculator), and 10-offer concurrent batching: Interactive Playground -
Goofish (Xianyu / 闲鱼) API (10 endpoints) — keyword search with price/sort filters, Zhima seller credit intelligence, 8-listing batching, and automated resale arbitrage price analytics (
/similar): Interactive Playground -
Lazada 6-Country SEA API (13 endpoints) —
VN, ID, TH, MY, PH, SGproduct detail by ID/URL/shortlink, LazMall bestsellers, unified storefront profiles, Q&A, LazLive, and official shortlink generator: Interactive Playground
import requests
# Calculate live 1688 tiered MOQ & landed USD cost for 100 units
res = requests.get(
"https://1688-china-wholesale-api.p.rapidapi.com/api/v1/1688/price-calculator",
params={"offer_id": "769071810576", "quantity": 100, "shipping_per_unit_usd": 1.25},
headers={
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "1688-china-wholesale-api.p.rapidapi.com",
},
timeout=15,
).json()
print("Unit CNY:", res["breakdown"]["unit_price_cny"], "| Landed USD:", res["breakdown"]["landed_unit_cost_usd"])
2. Bulk Multi-Platform SDK in Python (pip install china-sourcing-sdk)
pip install china-sourcing-sdk
from china_sourcing_sdk import ChinaSourcingClient
client = ChinaSourcingClient() # reads APIFY_TOKEN env var
# 1. Pull factory wholesale offers & MOQ from 1688 (English or 中文)
factories = client.search_1688("wireless earbuds", max_items=5)
# 2. Check global retail comps on AliExpress
retail = client.search_aliexpress("wireless earbuds", max_items=5, country="US", currency="USD")
# 3. Check China secondhand / arbitrage floor price on Goofish (闲鱼)
resale = client.search_goofish("AirPods Pro", max_items=5)
# 4. Check Southeast Asia retail comps on Lazada (vn, th, id, my, ph, sg)
sea = client.search_lazada("wireless earbuds", country="vn", max_items=5)
print(f"1688: {len(factories)} | AliExpress: {len(retail)} | Goofish: {len(resale)} | Lazada: {len(sea)}")
3. Node.js 18+ ESM Client (npm i china-sourcing-sdk)
import { ChinaSourcingClient } from "china-sourcing-sdk";
const client = new ChinaSourcingClient(process.env.APIFY_TOKEN);
const [wholesale, goofish] = await Promise.all([
client.search1688({ keyword: "机械键盘", maxItems: 5 }),
client.searchGoofish({ keyword: "Sony A7C", maxItems: 5 }),
]);
console.log("1688 factories:", wholesale.length, "| Goofish comps:", goofish.length);
4. Automated Sourcing Alerts in n8n (Free Templates)
If your sourcing or e-commerce ops team runs n8n, import these pre-built templates directly:
-
1688 Factory Wholesale Monitor:
05-1688-vs-aliexpress-margin-finder.json -
Goofish (闲鱼) Secondhand Price Watch:
06-goofish-xianyu-resale-price-watch.json
Resources
- Documentation Hub: jistudio-dev.github.io
- Bilingual SDK Repo (EN / 中文): github.com/jistudio-dev/china-ecommerce-sourcing-sdk
- 9 Free n8n Templates: github.com/jistudio-dev/free-n8n-ecommerce-workflows
- Hosted REST APIs (Free Tier): 1688 Wholesale · Goofish / Xianyu · Lazada 6-Country SEA
- Bulk Cloud Scrapers (Apify): 1688 · Goofish · AliExpress · Lazada
Top comments (2)
One thing that trips up 1688 price comparisons: the listed price is usually for the lowest-quantity tier or the cheapest variant, and the MOQ and sample price can differ a lot. Normalizing to a per-unit price at the quantity you'd actually order makes the comparison far more useful.
Spot on — 1688 headline search prices almost always show the top-volume tier or the cheapest accessory SKU, so comparing raw search prices against retail or secondhand listings throws off margin math fast.
That's actually why we added a /api/v1/1688/price-calculator endpoint alongside the offer detail route: you pass offer_id + your target quantity (plus optional domestic/intl shipping per unit) and it resolves the exact matching MOQ tier price and effective per-unit landed cost for that order size. Still need to normalize SKU-level variant pricing on top when an offer mixes sample accessories with the main unit, though — appreciate you calling that out!