360 Secure SkillHub
360 安全技能中心

Skill Dropshipping Sourcing

读取本地配置中的 apiKey 与 accessToken,在令牌过期前刷新访问令牌,按关键词调用 CJ Dropshipping 商品列表接口,拉取 SPU/SKU、图片、分类与变体等字段,并规范化为 JSON 文件,供选品与目录自动化使用。

分类:营销
zero2ai-hub
zero2ai-hub
热度 45.09
最近更新 2026-05-17 13:00:19

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zero2ai-hub/skill-dropshipping-sourcing
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
skill-dropshipping-sourcing
description
Query CJ Dropshipping API v2.0 to source products and fetch details for catalog building. Use for CJ keyword search, pulling product records (SPU/SKU, images, categories, variants/colors when available), refreshing access tokens, and producing normalized JSON outputs for dropshipping catalog automation.

CJ Sourcing

Use this skill to reliably pull CJ product data (instead of manual browsing).

Files / creds (local convention)

  • Config: ./cj-api.json
    • apiKey, baseUrl, accessToken, tokenExpiry

1) Refresh access token

node scripts/token.js

2) Search products by keyword (listV2)

node scripts/source.js --keyword "sunset lamp" --size 20 --out cj-results.json

Output: cj-results.json with normalized fields.

Notes

  • Token refresh is conservative (refreshes ~10 minutes before expiry).
  • source.js uses GET /product/listV2 and requests enable_description + category fields.