文档中心 > API类目 > 直通车API

taobao.simba.insight.catsforecastnew.get (获取词的相关类目预测数据)

根据给定的词,预测这些词的相关类目

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
bidword_list String [] 必须 50014579
  • 最大列表长度:100
  • 需要查询的词列表

    响应参数

    名称 类型 示例值 描述
    category_forecast_list InsightCategoryForcastDTO [] 词的相关类目列表
    • └ cat_path_name
    • String
    • 汽车/用品/配件/改装汽车零配件制动系统刹车片
    • 表示类目的所有父级类目的名称,不同层级之间用(ascii码为2的字符)分隔开
    • └ score
    • String
    • 0.23
    • 表示词与该类目的相关度,值越大表示越相关
    • └ cat_path_id
    • String
    • 26 50018708 50018787 50014563
    • 表示该类目的所有父级类目,按层级顺序排列,层级越高的在前面,不同的层级之间用空格分隔
    • └ bidword
    • String
    • 连衣裙
    • 查询词

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    SimbaInsightCatsforecastnewGetRequest req = new SimbaInsightCatsforecastnewGetRequest();
    req.setBidwordList("50014579");
    SimbaInsightCatsforecastnewGetResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <simba_insight_catsforecastnew_get_response>
        <category_forecast_list>
            <insight_category_forcast_d_t_o>
                <cat_path_name>汽车/用品/配件/改装汽车零配件制动系统刹车片</cat_path_name>
                <score>0.23</score>
                <cat_path_id>26 50018708 50018787 50014563</cat_path_id>
                <bidword>连衣裙</bidword>
            </insight_category_forcast_d_t_o>
        </category_forecast_list>
    </simba_insight_catsforecastnew_get_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部