金鱼网


商品详情接口 ok

[TOC]

简要描述
  • 商品详情接口
请求URL
  • http://api.magicalday.cn/goods/detail
请求方式
  • POST
参数
参数名 必选 类型 说明
goods_id string 商品ID
返回示例
{
    "code":0,
    "msg":"",
    "count":0,
    "data":{
        "goods_id":"67",
        "title":"正宗和田玉 ",
        "selling_price":"3.99",
        "vip_price":"0.00",
        "comments_number":"0",
        "best_comments_number":"0",
        "cid":"1",
        "bid":"1",
        "head_img":[
            "https://img.meituan.net/groceryimages/99ae963338f726592db365097280bb38168961.jpg",
            "https://img.meituan.net/groceryimages/61fd2f9dad82cc97934e0b639ae0a8ac165804.jpg",
            "https://img.meituan.net/groceryimages/98a36b03b8eb300d19d6d01170ad3f5e222201.png",
            "https://img.meituan.net/groceryimages/fb31d9a232ca17146e3e0ff76c1a6692188775.png",
            "https://img.meituan.net/groceryimages/3e2690b2539a3939c70f3c9aed401a2e161191.jpg"
        ],
        "label":[
            {
                "title":"品牌",
                "color":"yellow",
                "icon_url":""
            }
        ],
        "goods_security":[
            {
                "icon_url":"https://img.meituan.net/groceryapi/30cd2c6a4514cad6750049461ef2a1ad3710.png",
                "title":"72小时品质无忧",
                "color":"red",
                "describe":"商品送达后72小时内,发现腐烂/变质等情况,提供有效凭证后,平台24小时内响应审核退款"
            },
            {
                "icon_url":"https://img.meituan.net/groceryapi/c104d3a5b5d7186e986b1fae2dd4bdfb1846.png",
                "title":"价格保护",
                "color":"gray",
                "describe":"如商品购买当日23点前降价(不含活动降价),送达后48小时内可在“订单详情-价格保护”申请退差价红包"
            },
            {
                "icon_url":"https://img.meituan.net/groceryapi/d31855cd49f48dc651e728acd889a3d11437.png",
                "title":"缺货退",
                "color":"gray",
                "describe":"购买后如发生商家缺货,平台及时给您办理退款"
            },
            {
                "icon_url":"https://img.meituan.net/groceryapi/4be34eb74d8512b679ee16ca410fd4281290.png",
                "title":"闪电退款",
                "color":"red",
                "describe":"诚信用户申请退款,经团长/平台审核退款通过后,享受闪电退款到账服务"
            }
        ],
        "specification_information":[
            {
                "name":"品牌",
                "text":"兴园吉兴祥"
            },
            {
                "name":"产地",
                "text":"云南"
            },
            {
                "name":"规格",
                "text":"80g/袋"
            },
            {
                "name":"生产日期",
                "text":"2022-08-15"
            },
        ],
        "goods_detail":[
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/152e7b1cd080170a12375bcd3a7728b4123111.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/cb8d37f2a7131c916a94f5ba768ebd68363289.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/7ab8cb039975d83f64265cd6ff597285215386.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/dae6dd114a19d9491fafcca936c87f19264142.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/cbd0c566ab45b5924d79b50750214dc3108816.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/6c415be837f04630a86a04019265a1d781266.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/ebd9fefaabf8594a24f5f0bb8544e1d092210.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/54307cdafeaa42d8c77d386d59f9588f88758.jpg",
                "height":750
            },
            {
                "width":750,
                "id":"0",
                "type":1,
                "url":"https://img.meituan.net/groceryimages/505a46e424d67299e50c3e630cc414fb168964.jpg",
                "height":750
            }
        ],
        "list_ranking":{
            "icon_url":"xxxxx",
            "title":"方便面热卖榜第2名",
            "jump_url":"xxxxxxx"
        },
        "coupon":{
            "icon_url":"<font color="yellow">省钱卡</font>",
            "title":"3元优惠券未领取",
            "jump_url":"xxxxxx"
        },
        "promotions":{
            "icon":"促销",
            "title":"满29减3",
            "button":"去查看"
        },
        "shopping_guide":[
            {
                "icon_url":"",
                "title":"在线下单",
                "describe":"每天23点前可选购次日送达的产品,23点后选购商品后天送达。预售品送货时间以订单页面为准"
            },
            {
                "icon_url":"",
                "title":"物流配送",
                "describe":"物流会将您下单时提示的配送时间,配送到您下单所选的团长门店"
            }
        ],
        "comments":{
            "tags":[
                {
                    "title":"价格实惠",
                    "number":31
                },
                {
                    "title":"松软可口",
                    "number":24
                },
                {
                    "title":"包装无破损",
                    "number":21
                }
            ],
            "list":[
                {
                    "uid":11111,
                    "nickname":"tt****11",
                    "avatar":"头像地址",
                    "score":4.5,
                    "content":"品质非常好,松软可口,品相完整,购买方便,活力早餐",
                    "img":[
                        "img1",
                        "img2",
                        "img3"
                    ],
                    "create_time":1663921857
                }
            ],
            "jump_url":""
        }
    }
}
返回参数说明
参数名 类型 说明
goods_id string 商品ID
title string 商品标题
selling_price string 商品售价
vip_price string 省钱卡价格
comments_number int 评论数量
best_comments_number int 好评数量
cid string 分类ID
bid string 商家ID
head_img array 头图数组
label array 品牌信息
goods_security array 商品保障
specification_information array 商品规格
goods_detail array 商品详情图片
list_ranking array 商品排行榜信息
shopping_guide array 选购指南
comments array 评论信息
comments->jump_url string 评论列表页面跳转地址
comments->tags array 商品评论标签
comments->list array 商品评论列表
comments->list->index->uid string 用户uid
comments->list->index->nickname string 用户昵称
comments->list->index->avatar string 用户头像地址
comments->list->index->score float 用户评分
comments->list->index->content string 评论内容
comments->list->index->img string 评论图片
comments->list->index->create_time string 创建时间
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML