Logo
    立即注册
    开放平台
    产品文档
    根据版本号查询标品码表数据
    最近更新时间:2023-07-28 13:35:51

    1. 接口描述

    接口URL:https://open.datastory.com.cn/api/datastory.ecommerce.spuCommdodity.all 请求方式:POST 描述:通过该接口可查询标品知识码表对应版本号的标品知识数据

    2. 输入参数

    以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。

    参数名称 必选 默认值 类型 参数示例 描述
    appkey string "predeploy" 权限校验标识
    filters RequestSpuCommodityFilters (见接口示例) 查询过滤条件
    openStrategy boolean false 是否接受缓存

    3. 输出参数

    参数名称 必选 类型 参数示例 描述
    code integer 0 返回状态码,内部定义
    data ResponseData (见接口示例) 返回数据结果,包含meta、dataset
    message string "接口返回成功!" 接口返回信息说明,在接口返回失败时会有

    4. 数据结构

    4.1 RequestSpuCommodityFilters

    参数名 必选 类型 参数示例 描述
    versionNum string VBPK202306007 标品版本号,默认不传查最新的Naja版本

    4.2 ResponseData

    参数名 必选 类型 参数示例 描述
    dataset ResponseDataset (见接口请求示例) 返回数据集,不同接口返回结果的格式不一样
    dorisTime integer "458" 查询Doris耗时,单位毫秒
    meta object "list" 返回数据的描述信息,主要是字段信息,非方舟接口,请忽略
    time integer "955" 查询总耗时,单位毫秒

    4.2.1 ResponseDataset

    参数名 必选 类型 参数示例 描述
    total integer "34500230" 查询数据总量
    currentPage integer 1 分页查询的页码
    pageSize integer "20" 分页查询的单页数据条数
    rowdata BrandVersionVO (见接口请求示例) 返回数据集,不同接口返回结果的格式不一样

    4.2.2 SpuCommodityVersionVO

    参数名 必选 类型 参数示例 描述
    spu string "56" 标品展示名(业务使用这个)
    key string "美妆个护" 标品标准名(标准名)
    id integer 9 标品id
    brandId integer 9 品牌id
    categoryId integer 9 品类id
    brandName string 9 品牌名称
    categoryName string 9 品类名称
    timeToMarket string "2020-01-01" 上市日期
    picUrl string "" 标品图url
    keywords array [""] 标品别名
    recallWord string "" 召回词
    recallFilterWord string 2 召回过滤词
    matchRule string "新闻公关" 匹配规则
    filterRule string 2 过滤规则
    ruleSentenceScopeLimit string "" 词距规则范围限制
    categoryDomains array ["美妆行业库"] 行业库

    5. 示例

    示例1 查看标品知识数据

    输入示例

    {
        "filters": {
            "versionNum": "VBPK202306007"
        }
    }

    返回示例

    {
        "code": 20000,
        "message": "接口返回成功!",
        "data": {
            "meta": {
                "datasetType": "standard",
                "schema": [
                    {
                        "name": "key",
                        "alias": "标品key",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "brandId",
                        "alias": "品牌id",
                        "visibility": "Queryable",
                        "type": "number"
                    },
                    {
                        "name": "categoryId",
                        "alias": "品类id",
                        "visibility": "Queryable",
                        "type": "number"
                    },
                    {
                        "name": "timeToMarket",
                        "alias": "上市日期",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "keyword",
                        "alias": "别名",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "spu",
                        "alias": "spu",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "brandName",
                        "alias": "品牌名称",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "categoryName",
                        "alias": "品类名称",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "picUrl",
                        "alias": "产品图片url",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "domain",
                        "alias": "行业库标签",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "id",
                        "alias": "标品ID",
                        "visibility": "Queryable",
                        "type": "number"
                    },
                    {
                        "name": "recallWord",
                        "alias": "recallWord",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "recallFilterWord",
                        "alias": "recallFilterWord",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "matchRule",
                        "alias": "matchRule",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "filterRule",
                        "alias": "filterRule",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "ruleSentenceScopeLimit",
                        "alias": "ruleSentenceScopeLimit",
                        "visibility": "Queryable",
                        "type": "string"
                    },
                    {
                        "name": "categoryDomains",
                        "alias": "categoryDomains",
                        "visibility": "Queryable",
                        "type": "[string]"
                    },
                    {
                        "name": "keywords",
                        "alias": "keywords",
                        "visibility": "Queryable",
                        "type": "[string]"
                    }
                ]
            },
            "dataset": {
                "total": 91155,
                "rowdata": [
                    {
                        "key": "美茜儿鸭嘴接线眉笔",
                        "brandId": 28622,
                        "categoryId": 986,
                        "timeToMarket": "20200101",
                        "spu": "美茜儿鸭嘴接线眉笔",
                        "brandName": "美茜儿",
                        "categoryName": "眉笔",
                        "picUrl": null,
                        "id": 4,
                        "recallWord": "",
                        "recallFilterWord": "",
                        "matchRule": "",
                        "filterRule": "",
                        "ruleSentenceScopeLimit": "",
                        "categoryDomains": [
                            "美妆系统自动"
                        ],
                        "keywords": [
                            "美茜儿鸭嘴接线眉笔"
                        ]
                    },
                    {
                        "key": "仙维娜无硅清爽去屑洗发露",
                        "brandId": 33208,
                        "categoryId": 778,
                        "timeToMarket": "20140101",
                        "spu": "仙维娜无硅清爽去屑洗发露",
                        "brandName": "仙维娜",
                        "categoryName": "洗发水",
                        "picUrl": null,
                        "id": 8,
                        "recallWord": "",
                        "recallFilterWord": "",
                        "matchRule": "",
                        "filterRule": "",
                        "ruleSentenceScopeLimit": "",
                        "categoryDomains": [
                            "美妆系统自动"
                        ],
                        "keywords": [
                            "仙维娜丝质顺滑去屑洗发露",
                            "仙维娜无硅清爽去屑洗发露"
                        ]
                    },
                    {
                        "key": "卓尔诗婷雪肌美白精华乳霜",
                        "brandId": 5628,
                        "categoryId": 692,
                        "timeToMarket": "20190101",
                        "spu": "卓尔诗婷雪肌美白精华乳霜",
                        "brandName": "卓尔诗婷",
                        "categoryName": "身体乳",
                        "picUrl": "https://img.alicdn.com/imgextra/i1/776843310/O1CN012NG5Ok1aK1j3WjTeo_!!0-item_pic.jpg",
                        "id": 16,
                        "recallWord": "卓尔诗婷祛斑霜",
                        "recallFilterWord": "",
                        "matchRule": "",
                        "filterRule": "",
                        "ruleSentenceScopeLimit": "",
                        "categoryDomains": [
                            "美妆行业库"
                        ],
                        "keywords": [
                            "卓尔诗婷烟酰胺美白身体乳霜",
                            "卓尔诗婷祛斑霜",
                            "卓尔诗婷美白身体乳",
                            "卓尔诗婷雪肌美白精华乳霜"
                        ]
                    },
                    {
                        "key": "蒂迩肌水凝营养保湿霜",
                        "brandId": 5121,
                        "categoryId": 812,
                        "timeToMarket": "20200101",
                        "spu": "蒂迩肌水凝营养保湿霜",
                        "brandName": "蒂迩肌",
                        "categoryName": "面霜其他",
                        "picUrl": null,
                        "id": 28,
                        "recallWord": "",
                        "recallFilterWord": "",
                        "matchRule": "",
                        "filterRule": "",
                        "ruleSentenceScopeLimit": "",
                        "categoryDomains": [
                            "美妆系统自动"
                        ],
                        "keywords": [
                            "蒂迩肌水凝营养保湿霜",
                            "蒂迩肌水凝高保湿补水滋润面霜"
                        ]
                    },
                    {
                        "key": "静芙全身按摩精油",
                        "brandId": 26353,
                        "categoryId": 677,
                        "timeToMarket": "20160101",
                        "spu": "静芙全身按摩精油",
                        "brandName": "静芙",
                        "categoryName": "身体精油",
                        "picUrl": null,
                        "id": 39,
                        "recallWord": "",
                        "recallFilterWord": "",
                        "matchRule": "",
                        "filterRule": "",
                        "ruleSentenceScopeLimit": "",
                        "categoryDomains": [
                            "美妆系统自动"
                        ],
                        "keywords": [
                            "静芙全身按摩精油"
                        ]
                    }
                }
            }
        }
    }
    

    微信扫描二维码在线咨询