基本信息
接口地址
https://api.qixin.com/APIService/relation/getMultiRelationDetail数据格式
JSON
请求方式
GET,POST
请求示例
https://api.qixin.com/APIService/relation/getMultiRelationDetail?job_id=QX_API_0313a29d0550b9ace292859a3af35f30&skip描述
根据22.36多家企业间找关系job申请的job_id,获取详细数据。
请求参数 (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摘要计算的结果,小写字符串(实际加密不带入‘+’) |
请求参数 (Query)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
job_id |
String | 是 | 22.36多家企业间找关系job申请的job_id |
skip |
Number | 否 | 跳过条目数(默认为0),每页10条数据 |
响应参数
| 参数名 | 类型 | 长度 | 描述 |
|---|---|---|---|
statusdata.status |
String | 0 | 返回结果状态 |
messagedata.message |
String | 0 | 返回结果消息 |
signdata.sign |
String | 0 | 数据签名 |
datadata.data |
Object | 0 | 返回查询结果,如果没有匹配记录则返回空。具体字段含义见下表 |
totaldata.data.total |
Number | 0 | 返回列表中记录总数 |
itemsdata.data.items |
Array | 0 | 数据列表 |
node_onedata.data.items.node_one |
String | 0 | 查询企业名 |
node_twodata.data.items.node_two |
String | 0 | 查询企业名 |
relationsdata.data.items.relations |
Array | 0 | 关系列表 |
nodesdata.data.items.relations.nodes |
Array | 0 | 关联关系中节点信息列表 |
iddata.data.items.relations.nodes.id |
String | 0 | 企业id |
namedata.data.items.relations.nodes.name |
String | 0 | 节点名称 |
is_keydata.data.items.relations.nodes.is_key |
String | 0 | 起始节点标识,Start为开始节点,End为结束节点,"-"为中间节点 |
labeldata.data.items.relations.nodes.label |
String | 0 | P个人、E企业、SP特殊企业、LT上市公司、S社会组织、U其他、UE未在工商注册的企业或组织、G政府 |
linksdata.data.items.relations.links |
Array | 0 | 关联关系中路径信息列表 |
start_iddata.data.items.relations.links.start_id |
String | 0 | 关系起节点的id |
end_iddata.data.items.relations.links.end_id |
String | 0 | 关系终节点的id |
relationdata.data.items.relations.links.relation |
String | 0 | 关联关系描述;SH股东、EXEC董监高(DIR董事、SUP监事、EXE高管)、HEXEC历史董监高((HDIR董事、HSUP监事、HEXE高管))、LR法人、HSH历史股东、branch分支机构、HLR历史法人、same_phone相同电话号码、same_address相同地址、same_email相同邮箱、same_website相同域名、same_web_email域名关键字和邮箱关键字相同、same_proper_name 相同企业字号、same_lawsuit相同裁判文书、same_software相同软件著作权、same_patent相利、same_history_address相同历史地址、same_history_email 相同的历史邮箱、same_history_phone相同的历史号码 |
detaildata.data.items.relations.links.detail |
Object | 0 | 关联关系详情 |
响应示例
JSON
{
"status": "200",
"message": "操作成功",
"sign": "cb97e1aa78a443479a9f7fc76501ef15",
"data": {
"total": 1,
"items": [
{
"node_one": "上海合合信息科技股份有限公司",
"node_two": "小米科技有限责任公司",
"relations": [
{
"nodes": [
{
"id": 340789208,
"name": "小米科技有限责任公司",
"is_key": "Start",
"label": "E"
},
{
"id": 254200150,
"name": "南京高榕五期一号股权投资合伙企业(有限合伙)",
"is_key": "-",
"label": "E"
},
{
"id": 4274409,
"name": "深圳想法流科技有限公司",
"is_key": "-",
"label": "E"
},
{
"id": 335620036,
"name": "上海天之际创业投资合伙企业(有限合伙)",
"is_key": "-",
"label": "E"
},
{
"id": 175056739,
"name": "上海合合信息科技股份有限公司",
"is_key": "End",
"label": "E"
}
],
"links": [
{
"start_id": 340789208,
"end_id": 254200150,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "0.0541858575",
"relation_amount": "20000.0",
"relation_desc_detail": "工商股东"
}
}
},
{
"start_id": 254200150,
"end_id": 4274409,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "0.0432075627",
"relation_amount": "26.95",
"relation_desc_detail": "工商股东"
}
}
},
{
"start_id": 335620036,
"end_id": 4274409,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "0.0299318587",
"relation_amount": "18.6695",
"relation_desc_detail": "工商股东"
}
}
},
{
"start_id": 175056739,
"end_id": 335620036,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "0.06",
"relation_amount": "1500.0",
"relation_desc_detail": "工商股东"
}
}
}
]
},
{
"nodes": [
{
"id": 340789208,
"name": "小米科技有限责任公司",
"is_key": "Start",
"label": "E"
},
{
"id": 58688506,
"name": "北京小米电子软件技术有限公司",
"is_key": "-",
"label": "E"
},
{
"id": 346023801,
"name": "朴道征信有限公司",
"is_key": "-",
"label": "E"
},
{
"id": 165050846,
"name": "京东科技控股股份有限公司",
"is_key": "-",
"label": "E"
},
{
"id": 175056739,
"name": "上海合合信息科技股份有限公司",
"is_key": "End",
"label": "E"
}
],
"links": [
{
"start_id": 340789208,
"end_id": 58688506,
"relation": "HSH",
"detail": {
"HSH": {
"relation_percent": "1",
"relation_amount": "1834.59万元",
"relation_desc_detail": "历史股东",
"relation_date": "2018-04-17"
}
}
},
{
"start_id": 58688506,
"end_id": 346023801,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "",
"relation_amount": "",
"relation_desc_detail": "工商股东"
}
}
},
{
"start_id": 165050846,
"end_id": 346023801,
"relation": "SH",
"detail": {
"SH": {
"relation_percent": "",
"relation_amount": "",
"relation_desc_detail": "工商股东"
}
}
},
{
"start_id": 165050846,
"end_id": 175056739,
"relation": "HSH",
"detail": {
"HSH": {
"relation_percent": "",
"relation_amount": "",
"relation_desc_detail": "历史股东",
"relation_date": ""
}
}
}
]
}
]
}
]
}
}
代码示例
javascript
let request = require('request');
let urlEncode = require('urlencode');
let crypto = require('crypto');
let baseUrl = 'https://api.qixin.com/APIService/relation/getMultiRelationDetail';
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 urlParams = {
job_id: 'job_id的值',
skip: 'skip的值'
}
let concatParams = []
for (let key in urlParams) {
concatParams.push(key + '=' + urlParams[key]);
}
let options = {
'method': 'GET',
'url': baseUrl + '?' + concatParams.join('&'),
'headers': {
'Connection': 'keep-alive',
'Auth-version': '2.0',
'appkey': appkey,
'timestamp': timeStamp,
'sign': sign
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});