一、1688店铺详情API接口,seller_info-获得店铺详情API接口,店铺详情API接口,1688api接口代码如下:
1.公共参数:
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 (点击获取key和secret ) |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
2.请求参数:
请求参数:seller_id=2206619673102
参数说明:seller_id:卖家id
3.响应参数:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
items | items[] | 0 | 按关键字搜索商品 | |
id | String | 0 | 950078515 | 店铺id |
nick | String | 0 | 余姚市联盛模塑厂 | 卖家昵称 |
good_num | String | 0 | ||
level | String | 0 | 1 | |
created | String | 0 | 2009年03月23日 | |
shop_type | String | 0 | 个体经营 | 店铺类型 |
user_num_id | String | 0 | yylsmould | |
company_id | String | 0 | 92330281MA2EP3DC93 | |
company_dj | String | 0 | 余姚市市场监督管理局 | |
company_time | String | 0 | 2009-03-23 至 长期 | |
company_info | Mix | 0 | company_info[] | 公司信息 |
comapnyInfo | Mix | 0 | comapnyInfo[] | 公司信息 |
annualRevenue | String | 0 | 人民币 701 万元/年 - 1000 万元/年 | 年交易额 |
factorySize | String | 0 | 2800平方米 | 厂房面积 |
manufactureType | String | 0 | OEM加工、ODM加工 | 产品 |
productionCapacity | String | 0 | 600000件 | 产量 |
productionUnit | String | 0 | 件 | 单位 |
qaQc | String | 0 | 内部 | |
rndStaffNum | String | 0 | 5 - 10 人 | 员工数 |
technologyType | String | 0 | 注塑/注射 | 特殊工艺 |
itemList | itemList[] | 0 | 公司信息 | |
itemName | String | 0 | 厂房面积 | |
itemValue | String | 0 | 2800平方米 | |
cid | String | 0 | ||
sid | String | 0 | yylsmould | 店铺ID |
pic_url | String | 0 | ||
video | String | 0 | ||
title | String | 0 | 余姚市联盛模塑厂 | 店铺标题 |
address | String | 0 | 中国浙江宁波余姚市凤山街道五星村上峰岭15号(自主申报) | 卖家详细地址 |
phone | String | 0 | 13429262679 | |
zhuy | String | 0 | https://yylsmould.1688.com./page/contactinfo.htm | 店铺主页 |
fh_score | String | 0 | 0.11 | |
hm_score | String | 0 | 0.02 | |
xy_score | String | 0 | -0.06 | |
ht_score | String | 0 | 0.41 | |
menu | String | 0 | 一般经营项目:模具的制造;塑料制品的加工;第一类医疗器械的制造。 |
4.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…):
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://wx19970108018/1688/seller_info/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&seller_id=2206619673102"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
5.响应示例:
{
"user": {
"id": "950078515",
"nick": "余姚市联盛模塑厂",
"good_num": null,
"level": "1",
"created": "2009年03月23日",
"shop_type": "个体经营",
"user_num_id": "yylsmould",
"company_id": "92330281MA2EP3DC93",
"company_dj": "余姚市市场监督管理局",
"company_time": "2009-03-23 至 长期",
"company_info": {
"comapnyInfo": {
"annualRevenue": "人民币 701 万元/年 - 1000 万元/年",
"factorySize": "2800平方米",
"manufactureType": "OEM加工、ODM加工",
"productionCapacity": "600000件",
"productionUnit": "件",
"qaQc": "内部",
"rndStaffNum": "5 - 10 人",
"technologyType": "注塑/注射"
},
"itemList": [
{
"itemName": "厂房面积",
"itemValue": "2800平方米"
},
{
"itemName": "研发人数",
"itemValue": "5 - 10 人"
},
{
"itemName": "加工方式",
"itemValue": "OEM加工、ODM加工"
},
{
"itemName": "加工工艺",
"itemValue": "注塑/注射"
},
{
"itemName": "月产量",
"itemValue": "600000件"
},
{
"itemName": "年营业额",
"itemValue": "人民币 701 万元/年 - 1000 万元/年"
},
{
"itemName": "质量控制",
"itemValue": "内部"
}
]
},
"cid": "-1",
"sid": "yylsmould",
"pic_url": null,
"video": null,
"title": "余姚市联盛模塑厂",
"address": "中国浙江宁波余姚市凤山街道五星村上峰岭15号(自主申报)",
"phone": "13429262679",
"zhuy": "https://yylsmould.1688.com./page/contactinfo.htm",
"fh_score": "-0.15",
"hm_score": "0.02",
"xy_score": "-0.13",
"ht_score": "0.36",
"menu": "一般经营项目:模具的制造;塑料制品的加工;第一类医疗器械的制造。"
},
"secache": "fae723b33d52c0870fda3ba6b0c5b577",
"secache_time": 1614932379,
"secache_date": "2021-03-05 16:19:39",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 1,
"api_info": "today:7 max:10000",
"execution_time": 0.062,
"server_time": "Beijing/2021-03-09 16:55:39",
"client_ip": "106.6.35.144",
"call_args": {
"shop_url": "https://yylsmould.1688.com"
},
"api_type": "1688",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "3.52MB",
"request_id": "gw-4.6047380bae9e5"
}