GEO-商品专辑-列表
接口信息
- 接口地址:
{your-site-url}/api/skill/geo/collection-list - 基础 URL:
{your-site-url}需替换为你自己的独立站 URL 地址,如https://your-domain.com/apimanager666 - 请求方式:
GET - 说明: 分页获取商品专辑的 GEO 数据列表。
认证
请求头中需要携带 skill-access-token:
| Header | 值 |
|---|---|
skill-access-token |
{your-skill-access-token} (请替换为你自己的 token) |
请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
collection_ids |
array[string] | 否 | 商品专辑 ID 过滤。支持数组格式,也支持英文逗号隔开的 ID 字符串,如 343,324,54 |
pageNum |
int | 否 | 页码,从 1 开始,缺省为 1 |
pageSize |
int | 否 | 每页个数,缺省为 20 |
language_code |
string | 否 | GEO 语言代码,缺省为 en |
请求示例
cURL
curl --location --request GET '{your-site-url}/api/skill/geo/collection-list?pageNum=1&pageSize=10' \
--header 'skill-access-token: {your-skill-access-token}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回结果
code 为 200 表示调用成功;code 不为 200 表示调用失败。
成功响应
{
"code": 200,
"data": {
"list": [
{
"id": 5,
"shop_id": 359,
"collection_id": 20002,
"language_code": "en",
"summary": "A collection of outdoor camping tents designed for different outdoor activities.",
"collection_type": "Camping Tents",
"category_path": ["Outdoor Equipment", "Camping Gear", "Shelters", "Camping Tents"],
"key_features": ["Various tent sizes and capacities"],
"product_types": ["Family Camping Tents", "Portable Camping Tents"],
"comparison_dimensions": ["Size", "Capacity", "Material"],
"search_terms": ["camping tents", "outdoor shelter"],
"geo_score": "88.50",
"source_content_hash": "6a8f3d9c2b1e4f7a9d8c5b6e3f2a1c0d9e8f7a6b5c4d3e2f1a0b9c8d7e6f5a",
"created_at": "2026-08-20 22:02:52",
"updated_at": "2026-08-20 22:02:52"
}
],
"total": 4,
"pageSize": 1,
"totalPage": 4
},
"message": "success"
}
返回字段说明
列表中每个元素为一条商品专辑 GEO 数据,完整字段说明见 GEO-商品专辑-保存。
| 字段 | 类型 | 说明 |
|---|---|---|
code |
int | 状态码,200 表示成功 |
message |
string | 执行结果的文字描述 |
data |
object | 分页数据 |
data.list |
array[object] | 商品专辑 GEO 列表 |
data.total |
int | 总记录数 |
data.pageSize |
int | 每页个数 |
data.totalPage |
int | 总页数 |
注意事项
collection_ids支持数组与逗号分隔字符串两种传法- 一个商品专辑只允许存在一份 GEO 数据(按
collection_id唯一)