基本信息
接口地址
https://api.qixin.com/APIService/enterprise/getEnterprisesByPoint数据格式
JSON
请求方式
POST
请求示例
{
"longitude": 116.460988,
"latitude": 40.006919,
"radius": 5,
"industry": "F0000",
"regist_capi": "0_100",
"status": "1"
}描述
目标区域附近的企业总数和列表
请求参数 (Headers)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
Auth-Version |
String | 是 | 2.0(参数值),固定传入:2.0 |
appkey |
String | 是 | 启信慧眼数据开放平台获取 ,获取方式:个人中心-安全中心-API 密钥,获取appkey的同时,请完成IP白名单的配置:个人中心-安全中心-API IP白名单设置,如未配置,接口调试会报错“104 未添加IP白名单” |
timestamp |
String | 是 | UNIX时间戳,精确到毫秒,示例:1656921036000,当前系统时间近10分钟有效 |
sign |
String | 是 | 请求认证签名,对appkey+timestamp+secret_key进行md5或者sha256摘要计算的结果,小写字符串(实际加密不带入‘+’) |
响应参数
| 参数名 | 类型 | 长度 | 描述 |
|---|---|---|---|
datadata.data |
Object | 0 | 返回查询结果,如果没有匹配记录则返回为空。具体字段含义见下表 |
totaldata.data.total |
Number | 0 | 企业总数 |
numdata.data.num |
Number | 0 | 当前返回的条数 |
itemsdata.data.items |
Array | 0 | 企业列表 |
start_datedata.data.items.start_date |
String | 255 | 成立日期 |
oper_namedata.data.items.oper_name |
String | 255 | 企业法定代表人 |
iddata.data.items.id |
String | 36 | 企业编号 |
industrydata.data.items.industry |
String | 40 | 行业 |
namedata.data.items.name |
String | 255 | 企业名称 |
statusdata.data.items.status |
String | 50 | 经营状态(旧字段,不建议使用) |
new_statusdata.data.items.new_status |
String | 255 | 经营状态(清洗后状态) 1:存续;2:注销;3:吊销;4:撤销,5:迁出,6:设立中,7:清算中,8:停业,9:其他 |
distancedata.data.items.distance |
String | 255 | 距离,单位:M米 |
signdata.sign |
String | 32 | 数据签名 |
statusdata.status |
String | 0 | 返回结果状态 |
messagedata.message |
String | 255 | 返回结果消息 |
响应示例
JSON
{
"status": "200",
"message": "操作成功",
"sign": "cf65cccdb261a911a0648751f1274ff7",
"data": {
"total": 7755,
"num": 20,
"items": [
{
"name": "北京中艺创业日用品有限公司",
"id": "64353a59-bc6a-469d-b82b-55996f4011e1",
"oper_name": "白淑玲",
"start_date": "2010-12-22",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "181.06912575814",
"new_status": "存续"
},
{
"name": "北京睿玉轩茶叶有限公司",
"id": "8cab1f0f-d968-4173-affa-f1959fb0b1fc",
"oper_name": "杜素芹",
"start_date": "2014-10-11",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京千姿柏堂美容美体有限公司",
"id": "7c11791e-42b5-4e00-b6a4-9390183c54c8",
"oper_name": "刘晓曼",
"start_date": "2018-06-27",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "承德神栗食品股份有限公司北京分公司",
"id": "9e9025fb-83d5-4b26-a2f6-406c0f83d3fb",
"oper_name": "韩硕",
"start_date": "2019-01-16",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京润博商贸有限公司",
"id": "b61504ff-dcf8-491e-ac2f-ef35d34c13c0",
"oper_name": "刘文正",
"start_date": "2018-04-03",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京简安相宜婴幼儿用品有限公司",
"id": "1e78a6a8-3113-4b2f-876f-66bc63523579",
"oper_name": "刘慕捷",
"start_date": "2017-03-27",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京四季恒诚超市有限公司",
"id": "e51a59ba-740f-4590-8af7-c783ec4975a2",
"oper_name": "邢峰",
"start_date": "2016-10-14",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京贤二商贸有限公司",
"id": "9922e0ff-50c3-44d1-b123-99ecc3a3fe89",
"oper_name": "王宁宁",
"start_date": "2021-05-18",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "194.19453034432",
"new_status": "存续"
},
{
"name": "北京同仁堂润丰医药有限公司利泽西街药店",
"id": "3858d736-804a-41db-a0ce-b48f63740381",
"oper_name": "王青",
"start_date": "2014-04-14",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "229.80462975122",
"new_status": "存续"
},
{
"name": "北京希望京柱海鲜市场有限公司",
"id": "f6a7ecba-7b94-4a84-8bf9-2592e8529db7",
"oper_name": "赵国天",
"start_date": "2010-03-12",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "251.49367002982",
"new_status": "存续"
},
{
"name": "北京云龙腾飞商贸有限公司",
"id": "93ffbfdc-7a2a-4834-8b0f-d4f290e69260",
"oper_name": "朱宝英",
"start_date": "2011-09-22",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "268.44676503067",
"new_status": "存续"
},
{
"name": "北京曼享时光商贸有限公司",
"id": "4d232451-3037-447c-9b78-9b008a790f73",
"oper_name": "杨剑芳",
"start_date": "2019-12-27",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "268.60278449758",
"new_status": "存续"
},
{
"name": "北京誉锦堂健康管理有限公司",
"id": "f4137902-6a1f-4bf7-97d4-942b0bdee0ea",
"oper_name": "安新",
"start_date": "2021-10-19",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "272.5560415097",
"new_status": "存续"
},
{
"name": "北京卓越康商贸有限责任公司",
"id": "7643ea34-d993-46ed-863c-a6a5f9b61142",
"oper_name": "赵国军",
"start_date": "2008-12-17",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "北京凤淳餐饮有限公司",
"id": "0207853c-4944-4bab-9925-bf85e2f8d78f",
"oper_name": "金志勋",
"start_date": "2004-12-14",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "高联启航(北京)环境有限公司",
"id": "15fb2bc7-a8bb-435f-985d-ef68f70fd412",
"oper_name": "张君毅",
"start_date": "2007-10-22",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "北京鸿丹商贸有限公司",
"id": "09659ead-b7dd-4ede-bef2-81179f237c7a",
"oper_name": "郑鸿丹",
"start_date": "2022-01-12",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "北京文诗涵商贸有限公司",
"id": "bf8f4344-a2b0-406f-9cc9-97e9715b4508",
"oper_name": "郑鸿丹",
"start_date": "2022-01-12",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "北京本草经典美容美发有限公司",
"id": "0f806621-5379-4c11-aa0c-b6195850cda5",
"oper_name": "谷平",
"start_date": "2020-12-24",
"status": "存续(在营、开业、在册)",
"industry": "F5200",
"distance": "282.83607849818",
"new_status": "存续"
},
{
"name": "北京珺雅医疗器械有限公司",
"id": "3ef881dc-41a0-414b-b576-7a905ffb7ff6",
"oper_name": "南美花",
"start_date": "2016-01-06",
"status": "存续(在营、开业、在册)",
"industry": "F5100",
"distance": "296.93976866162",
"new_status": "存续"
}
]
}
}
代码示例
javascript
let request = require('request');
let crypto = require('crypto');
let baseUrl = 'https://api.qixin.com/APIService/enterprise/getEnterprisesByPoint';
let appkey = '正式appkey';
let secretKey = '正式secret_key';
let timeStamp = new Date().getTime();
const hash = crypto.createHash('md5');
let sign = hash.update(appkey + timeStamp + secretKey).digest('hex');
let bodyParams = {
longitude: 'longitude的值',
latitude: 'latitude的值',
radius: 'radius的值',
industry: 'industry的值',
regist_capi: 'regist_capi的值',
status: 'status的值',
skip: 'skip的值'
}
var options = {
'method': 'POST',
'url': baseUrl,
'headers': {
'Content-Type': 'application/json',
'Connection': 'keep-alive',
'Auth-version': '2.0',
'appkey': appkey,
'timestamp': timeStamp,
'sign': sign
},
body: JSON.stringify(bodyParams)
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});