alphashop-sel-product-search

商品搜索API SKILL:通过关键词搜索发现Amazon/TikTok平台商品。 支持价格、销量、评分、上架时间等多维度筛选条件。 通过 AlphaShop REST API 调用遨虾AI选品系统的商品搜索服务。

3,891 stars
Complexity: medium

About this skill

The alphashop-sel-product-search skill leverages the AlphaShop REST API to access the 1688 Aoxia AI Product Selection System's search capabilities. It allows AI agents to find products across Amazon (US, UK, JP, DE, FR, IT, ES, CA) and TikTok (ES, PH, FR, ID, MX, VN, DE, JP, TH, SG, BR, IT, US, UK, MY) by keywords. Users can apply advanced filtering options based on price, sales volume, customer ratings, and product listing time, making it a powerful tool for market research and product sourcing. This skill is designed for e-commerce businesses, product researchers, and procurement agents who need to identify trending or suitable products efficiently. By integrating with a robust AI-powered selection system, it automates the initial discovery phase, saving significant time and effort in identifying potential products for various markets. It's particularly useful for those operating within or sourcing from the 1688/Alibaba ecosystem looking to expand to Amazon or TikTok. A critical feature is its parameter collection strategy: if essential parameters like `platform` or `region` are missing from the user's request, the skill explicitly uses an `AskUserQuestion` tool to prompt the user for input, ensuring necessary context is gathered before execution. This makes the skill user-friendly and robust in handling incomplete initial prompts.

Best use case

The primary use case is for e-commerce entrepreneurs, product managers, and sourcing agents to quickly discover and analyze potential products for their online stores or market expansion on Amazon and TikTok. It helps in identifying trending items, competitive pricing, and overall market demand by providing filtered search results, enabling data-driven product selection and strategy.

商品搜索API SKILL:通过关键词搜索发现Amazon/TikTok平台商品。 支持价格、销量、评分、上架时间等多维度筛选条件。 通过 AlphaShop REST API 调用遨虾AI选品系统的商品搜索服务。

The user should expect a list of product search results from either Amazon or TikTok, filtered according to their specified criteria, providing key details like product name, price, sales, ratings, and platform.

Practical example

Example input

Find popular reusable water bottles on Amazon in the US with a rating above 4.5 stars.

Example output

Searching for 'reusable water bottles' on Amazon US...

Found 50+ results. Top 3 examples:
1. Hydro Flask 32 oz Wide Mouth Water Bottle (US, Amazon) - $49.95, 4.8 stars, 15k+ sales.
2. Stanley Quencher H2.0 FlowState Tumbler (US, Amazon) - $45.00, 4.7 stars, 20k+ sales.
3. Simple Modern Summit Water Bottle (US, Amazon) - $22.99, 4.6 stars, 10k+ sales.

(Further results available upon request or by refining search criteria.)

When to use this skill

  • When you need to search for specific products on Amazon or TikTok based on keywords.
  • When you require filtering search results by criteria such as price, sales, ratings, or listing date.
  • When conducting market research to identify trending products or competitive landscapes on major e-commerce platforms.
  • When sourcing new products for an online store and needing to evaluate multiple options quickly.

When not to use this skill

  • When searching for products on platforms other than Amazon or TikTok.
  • When needing to perform purchasing, inventory management, or order fulfillment (this skill is for search and selection only).
  • When you do not have valid AlphaShop API credentials, as the skill requires them to function.
  • When you require extremely granular, real-time data beyond what typical product search APIs provide.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/alphashop-sel-product-search/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/1688aiinfra/alphashop-sel-product-search/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/alphashop-sel-product-search/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How alphashop-sel-product-search Compares

Feature / Agentalphashop-sel-product-searchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

商品搜索API SKILL:通过关键词搜索发现Amazon/TikTok平台商品。 支持价格、销量、评分、上架时间等多维度筛选条件。 通过 AlphaShop REST API 调用遨虾AI选品系统的商品搜索服务。

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

## 配置

### 环境变量

需要配置 AlphaShop API 凭证。在 OpenClaw config 中设置:

```json5
{
  skills: {
    entries: {
      "alphashop-sel-newproduct": {
        env: {
          ALPHASHOP_ACCESS_KEY: "你的AccessKey",
          ALPHASHOP_SECRET_KEY: "你的SecretKey"
        }
      }
    }
  }
}
```

### 如何获取 API Key

#### 获取途径

本 skill 使用 AlphaShop/遨虾平台的 API 服务,需要申请以下凭证:
- `ALPHASHOP_ACCESS_KEY` - API 访问密钥
- `ALPHASHOP_SECRET_KEY` - API 密钥

#### 申请步骤

1. **联系平台方**
   - 如果您是 1688 或阿里内部用户,请联系 AlphaShop/遨虾 平台管理员
   - 平台可能需要您提供:
     - 公司信息
     - 使用场景说明
     - 预期调用量

2. **获取凭证**
   - 平台审核通过后会提供:
     - Access Key(访问密钥)
     - Secret Key(密钥)

3. **配置到环境**
   - 按照上面的配置方式设置环境变量

#### 缺少凭证时的提示

如果运行 skill 时未配置凭证,会看到详细的配置指南:

```
🔐 需要 AlphaShop API 凭证

本 skill 需要以下凭证才能使用:
  • ALPHASHOP_ACCESS_KEY  - API 访问密钥
  • ALPHASHOP_SECRET_KEY  - API 密钥

📋 如何获取凭证:
1. 联系 AlphaShop/遨虾 平台获取 API 凭证
2. 配置环境变量或 OpenClaw 配置
3. 重新运行命令
```


# 商品搜索API SKILL

通过 AlphaShop REST API 调用1688遨虾AI选品系统的商品搜索服务,支持**关键词搜索**,覆盖Amazon和TikTok平台。


**CRITICAL: 参数收集策略**

当用户请求搜索但未提供必需参数(`platform` 和 `region`)时,**必须**使用 `AskUserQuestion` 工具引导用户选择。**禁止使用任何默认值**。

### 必需参数检查

**关键词搜索** (`scripts/search.py`):
- `--keyword`: 必填(从用户输入提取)
- `--platform`: 必填 ⚠️ **如果缺失→询问用户**
- `--region`: 必填 ⚠️ **如果缺失→询问用户**

### 参数询问流程

**Step 1: 询问平台**(如果用户未指定 `platform`)

使用 `AskUserQuestion` 提供选项:
- **Amazon** - 描述:覆盖美国、英国、日本、德国、法国、意大利、西班牙、加拿大8个市场
- **TikTok** - 描述:覆盖西班牙、菲律宾、法国、印尼、墨西哥、越南、德国、日本、泰国、新加坡、巴西、意大利、美国、英国、马来西亚15个市场

**Step 2: 询问区域**(如果用户未指定 `region`)

根据选择的平台,使用 `AskUserQuestion` 提供对应区域选项:

**Amazon 区域**:
- US - 美国
- UK - 英国
- JP - 日本
- DE - 德国
- FR - 法国
- IT - 意大利
- ES - 西班牙
- CA - 加拿大

**TikTok 区域**:
- ES - 西班牙
- PH - 菲律宾
- FR - 法国
- ID - 印尼
- MX - 墨西哥
- VN - 越南
- DE - 德国
- JP - 日本
- TH - 泰国
- SG - 新加坡
- BR - 巴西
- IT - 意大利
- US - 美国
- GB - 英国
- MY - 马来西亚

**Step 3: 执行搜索**

收集完所有必需参数后,构建完整命令执行。

### 执行示例

#### ❌ 错误示例
```
用户: "搜索 yoga pants"
Claude: 直接执行 python3 scripts/search.py --keyword "yoga pants" --platform amazon --region US
问题: 未询问用户,擅自使用默认值
```

#### ✅ 正确示例
```
用户: "搜索 yoga pants"
Claude: 使用 AskUserQuestion 询问平台 (Amazon/TikTok)
用户: 选择 Amazon
Claude: 使用 AskUserQuestion 询问区域 (US/UK/JP...)
用户: 选择 US
Claude: 执行 python3 scripts/search.py --keyword "yoga pants" --platform amazon --region US
```

#### ✅ 部分参数已提供
```
用户: "在 Amazon 搜索 phone"
Claude: 识别到 platform=amazon,使用 AskUserQuestion 询问区域
用户: 选择 JP
Claude: 执行 python3 scripts/search.py --keyword "phone" --platform amazon --region JP
```

#### ✅ 所有参数齐全
```
用户: "在 Amazon 美国市场搜索 phone"
Claude: 识别到所有必需参数,直接执行搜索
Claude: python3 scripts/search.py --keyword "phone" --platform amazon --region US
```

---

## 功能说明

### 核心功能

#### 关键词搜索 (`scripts/search.py`)
- **关键词搜索**:根据关键词搜索目标平台的商品
- **多维度筛选**:支持价格、销量、评分、上架时间等筛选条件
- **多平台支持**:Amazon(美国、英国、日本等)、TikTok(印尼、泰国等)
- **丰富商品信息**:返回商品详情、供应商信息、规格参数、物流选项等

### 支持的平台和区域

**Amazon平台**:
- 美国 (US)
- 英国 (UK)
- 日本 (JP)
- 德国 (DE)
- 法国 (FR)
- 意大利 (IT)
- 西班牙 (ES)
- 加拿大 (CA)

**TikTok平台**:
- 西班牙 (ES)
- 菲律宾 (PH)
- 法国 (FR)
- 印度尼西亚 (ID)
- 墨西哥 (MX)
- 越南 (VN)
- 德国 (DE)
- 日本 (JP)
- 泰国 (TH)
- 新加坡 (SG)
- 巴西 (BR)
- 意大利 (IT)
- 美国 (US)
- 英国 (GB)
- 马来西亚 (MY)

## 使用方法

### 基础搜索

```bash
# 搜索Amazon美国市场的手机
python3 scripts/search.py --keyword "phone" --platform amazon --region US

# 搜索TikTok印尼市场的瑜伽裤
python3 scripts/search.py --keyword "yoga pants" --platform tiktok --region ID
```

### 价格筛选

```bash
# 搜索价格在10-100美元的商品
python3 scripts/search.py --keyword "phone" --platform amazon --region US --min-price 10 --max-price 100
```

### 销量筛选

```bash
# 搜索月销量在100-10000的商品
python3 scripts/search.py --keyword "phone" --platform amazon --region US --min-sales 100 --max-sales 10000
```

### 评分筛选

```bash
# 搜索评分4.0-5.0的高评分商品
python3 scripts/search.py --keyword "phone" --platform amazon --region US --min-rating 4.0 --max-rating 5.0
```

### 上架时间筛选

```bash
# 搜索90天内上架的新品
python3 scripts/search.py --keyword "phone" --platform amazon --region US --listing-time 90

# listing-time 支持:90, 180, 365
```

### 综合筛选

```bash
# 组合多个筛选条件
python3 scripts/search.py \
  --keyword "phone" \
  --platform amazon \
  --region US \
  --min-price 10 \
  --max-price 100 \
  --min-sales 100 \
  --min-rating 4.0 \
  --listing-time 90 \
  --count 20
```

### 指定返回数量

```bash
# 返回最多50个商品(默认10个)
python3 scripts/search.py --keyword "phone" --platform amazon --region US --count 50
```

## 参数说明

| 参数 | 必填 | 说明 | 示例 |
|------|------|------|------|
| `--keyword` | 是 | 搜索关键词 | "phone", "yoga pants" |
| `--platform` | 是 | 目标平台 | amazon, tiktok |
| `--region` | 是 | 目标国家/地区代码 | US, UK, JP, ID, TH, ES, PH, FR, MX, VN, DE, SG, BR, IT, GB, MY |
| `--min-price` | 否 | 最低价格(美元) | 10.0 |
| `--max-price` | 否 | 最高价格(美元) | 100.0 |
| `--min-sales` | 否 | 最低30天销量 | 100 |
| `--max-sales` | 否 | 最高30天销量 | 10000 |
| `--min-rating` | 否 | 最低评分(0-5.0) | 4.0 |
| `--max-rating` | 否 | 最高评分(0-5.0) | 5.0 |
| `--listing-time` | 否 | 上架时间(天)| 90, 180, 365 |
| `--count` | 否 | 返回商品数量(默认10) | 20 |
| `--user-id` | 否 | 用户ID(默认"123456") | "your_user_id" |

## 返回数据结构

### 成功响应

```json
{
  "success": true,
  "code": "SUCCESS",
  "message": "成功",
  "data": {
    "totalCount": 50,
    "productList": [
      {
        "itemId": "B08N5WRWNW",
        "title": "Apple iPhone 12 Pro Max",
        "category": "Cell Phones",
        "price": 899.99,
        "currency": "USD",
        "moq": 1,
        "stock": 500,
        "rating": 4.8,
        "salesVolume": 5000,
        "reviewCount": 1234,
        "images": ["https://..."],
        "supplier": {
          "supplierId": "AXXXXX",
          "supplierName": "Apple Store",
          "country": "US",
          "city": "Cupertino",
          "yearsOnPlatform": 10,
          "mainProducts": "Electronics",
          "responseRate": 98.5,
          "responseTime": "within 2 hours",
          "deliveryRate": 99.0
        },
        "specifications": [
          {"name": "Color", "value": "Pacific Blue"},
          {"name": "Storage", "value": "256GB"}
        ],
        "logisticsOptions": [
          {
            "method": "Standard Shipping",
            "estimatedCost": 5.99,
            "estimatedTime": "3-5 business days",
            "destination": "US"
          }
        ],
        "advantages": [
          "Fast shipping",
          "High quality",
          "Verified supplier"
        ]
      }
    ]
  }
}
```

### 错误响应

```json
{
  "success": false,
  "code": "KEYWORD_EMPTY",
  "message": "搜索关键词不能为空",
  "data": null
}
```

## 错误码说明

| 错误码 | 说明 | 解决方案 |
|--------|------|----------|
| `KEYWORD_EMPTY` | 关键词为空 | 提供有效的搜索关键词 |
| `TARGET_PLATFORM_ILLEGAL` | 平台参数非法 | 使用 amazon 或 tiktok |
| `TARGET_COUNTRY_ILLEGAL` | 国家代码非法或平台不支持 | 检查平台与国家的匹配关系 |
| `PRODUCT_LISTING_TIME_ERROR` | 上架时间参数错误 | 使用 90/180/365 |
| `PRODUCT_FILTER_PARAMS_ERROR` | 筛选参数错误 | 检查价格/销量/评分区间 |
| `PRODUCT_RECALL_EMPTY` | 未搜索到符合条件的商品 | 放宽筛选条件 |

## 接口信息

### 商品搜索 API

- **接口地址**:`POST https://api.alphashop.cn/ai.sel.global1688.productSearchApi/1.0`
- **环境**:生产环境(Production)
- **认证方式**:JWT Token (HS256)
- **请求格式**:JSON
- **响应格式**:JSON
- **超时时间**:建议 30-60 秒

### 认证配置

需要配置 AlphaShop API 凭证:

**环境变量:**
```bash
export ALPHASHOP_ACCESS_KEY='your-access-key'
export ALPHASHOP_SECRET_KEY='your-secret-key'
```

**OpenClaw 配置:**
```json
{
  "skills": {
    "entries": {
      "alphashop-sel-product-search": {
        "env": {
          "ALPHASHOP_ACCESS_KEY": "your-access-key",
          "ALPHASHOP_SECRET_KEY": "your-secret-key"
        }
      }
    }
  }
}
```

**凭证获取途径**:https://www.alphashop.cn/seller-center/apikey-management

## 注意事项

1. **关键词风控**:某些敏感关键词可能被风控系统拦截
2. **数据实时性**:商品信息可能存在延迟(通常<24小时)
3. **筛选条件**:过于严格的筛选可能导致无结果
4. **性能考虑**:复杂查询可能耗时较长(通常<5秒)
5. **平台限制**:确保平台和国家组合在支持列表中
6. **评分范围**:评分必须在 0-5.0 之间
7. **价格单位**:所有价格以美元计价

## 使用场景

### 1. 市场调研
找出目标市场的热门商品和价格区间

```bash
python3 scripts/search.py --keyword "yoga mat" --platform amazon --region US --count 50
```

### 2. 选品分析
筛选高评分、高销量的优质商品

```bash
python3 scripts/search.py --keyword "fitness equipment" --platform amazon --region US \
  --min-rating 4.5 --min-sales 500 --count 30
```

### 3. 新品发现
寻找90天内上架的新品

```bash
python3 scripts/search.py --keyword "smart watch" --platform amazon --region US \
  --listing-time 90 --count 20
```

### 4. 价格竞争分析
分析特定价格区间的商品分布

```bash
python3 scripts/search.py --keyword "headphone" --platform amazon --region US \
  --min-price 20 --max-price 50 --count 40
```

## 技术支持

- **问题反馈**:提交 Issue 到 global-skill 仓库
- **文档更新**:参考 `references/api.md`
- **测试计划**:参考项目中的测试用例

## 版本历史

- **v1.0** (2026-03-17)
  - 初始版本
  - 支持基础关键词搜索
  - 支持多维度筛选(价格、销量、评分、上架时间)
  - 支持 Amazon 和 TikTok 平台

Related Skills

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

Twitter Command Center (Search + Post)

3891
from openclaw/skills

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.

Social Media

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

search-for-service

3891
from openclaw/skills

Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".

API Discovery & Integration

Productivity Operating System

3891
from openclaw/skills

You are a personal productivity architect. Your job: help the user design, execute, and optimize their daily system so they consistently ship high-impact work while protecting energy and avoiding burnout.

Workflow & Productivity

Product Management OS

3891
from openclaw/skills

Complete product management system — discovery, prioritization, roadmapping, metrics, and cross-functional leadership. Use when building products, running discovery, prioritizing features, writing specs, planning launches, or measuring outcomes.

Product Management

Product Launch Playbook

3891
from openclaw/skills

You are a Product Launch Strategist. You guide users through planning, executing, and optimizing product launches — from pre-launch validation through post-launch growth. This system works for SaaS, physical products, services, marketplaces, and content products.

Workflow & Productivity

PRD Engine — Product Requirements That Ship

3891
from openclaw/skills

Complete product requirements methodology: from idea to spec to shipped feature. Not just a JSON template — a full system for writing PRDs that developers actually follow and stakeholders actually approve.

Workflow & Productivity

Next.js Production Engineering

3891
from openclaw/skills

> Complete methodology for building, optimizing, and operating production Next.js applications. From architecture decisions to deployment strategies — everything beyond "hello world."

Go Production Engineering

3891
from openclaw/skills

You are a Go production engineering expert. Follow this system for every Go project — from architecture decisions through production deployment. Apply phases sequentially for new projects; use individual phases as needed for existing codebases.

Coding & Development

FastAPI Production Engineering

3891
from openclaw/skills

Complete methodology for building, deploying, and scaling production FastAPI applications. Not a tutorial — a production operating system.