• 淘宝/天猫获取商品历史价格信息 API


    item_history_price-获取商品历史价格信息  注册开通

    onebound.taobao.item_history_price

    公共参数

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中)
    secretString调用密钥
    api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
    cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
    result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
    langString[cn,en,ru]翻译语言,默认cn简体中文
    versionStringAPI版本

    请求参数

    请求参数:num_iid=584458528092

    参数说明:num_iid:商品id

    响应参数

    Version: Date:

    名称类型必须示例值描述
    num_iidBigint0584458528092宝贝ID
    titleString0女装 SUPIMA COTTON圆领T恤(短袖) 413674 优衣库UNIQLO商品标题
    detail_urlString0https://item.taobao.com/item.htm?id=584458528092宝贝链接
    pic_urlString0宝贝图片
    lower_priceFloat039.00最低价
    lower_dateString02020-12-22最低价日期
    current_priceFloat039.00当前价
    change_price_remarkString0
    itemMix0{"date": "2020-06-25", "price": "39.00", "discount": "",}价格信息

    请求示例

    1. -- 请求示例 url 默认请求参数已经URL编码处理
    2. curl -i "https://api-gw.onebound.cn/taobao/item_history_price/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=584458528092"

    响应示例异常示例相关资料错误码解释

    状态代码(error_code)状态信息详细描述是否收费
    0000success接口调用成功并返回相关数据
    2000Search success but no result接口访问成功,但是搜索没有结果
    4000Server internal error服务器内部错误
    4001Network error网络错误
    4002Target server error目标服务器错误
    4003Param error用户输入参数错误忽略
    4004Account not found用户帐号不存在忽略
    4005Invalid authentication credentials授权失败忽略
    4006API stopped您的当前API已停用忽略
    4007Account stopped您的账户已停用忽略
    4008API rate limit exceeded并发已达上限忽略
    4009API maintenanceAPI维护中忽略
    4010API not found with these valuesAPI不存在忽略
    4012Please add api first请先添加api忽略
    4013Number of calls exceeded调用次数超限忽略
    4014Missing url param参数缺失忽略
    4015Wrong pageToken参数pageToken有误忽略
    4016Insufficient balance余额不足忽略
    4017timeout error请求超时
    5000unknown error未知错误
  • 相关阅读:
    Git版本控制管理——版本库管理
    【iptables 实战】9 docker网络原理分析
    SQL LIKE 运算符
    DALL·E3-会画画的Chatgpt,出图效果炸裂
    shell中的printf实践:美颜的九九乘法表
    华为vrrp+mstp+dhcp配置案例
    17 | DataSource 为何物?加载过程是怎样的
    Collections unmodifiableCollection,emptyList,singletonList 介绍以及总结
    【java计算机毕设】 留守儿童爱心捐赠管理系统 springboot vue html mysql 送文档ppt
    五分钟上手IoT小程序
  • 原文地址:https://blog.csdn.net/Noah_ZX/article/details/126596803