360 Secure SkillHub
360 安全技能中心

Skill Dropshipping Sourcing

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

zero2ai-hub
zero2ai-hub
热度 87.00
最近更新 2026-05-17 13:00:19
分类:营销依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.