API文档 关联关系 参股控股企业
基本信息
接口地址
https://api.qixin.com/APIService/investment/getEntInvestmentByName
数据格式
JSON
请求方式
GET
请求示例
https://api.qixin.com/APIService/investment/getEntInvestmentByName?keyword=河北宏都实业集团有限公司&pname=潘洪义
描述
根据企业名称获取参股控股企业信息,包括被投资企业状态、总投资比例、直接投资比例等信息
请求参数 (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)
参数名类型必填描述
keyword String 企业全名/注册号/统一社会信用代码
skip Number 跳过条目数(默认为0,单页返回20条数据)
pname String 人员姓名,人员与企业须存在法人或者股东或者董监高的关系
响应参数
参数名类型长度描述
status
data.status
String 10 返回结果状态
message
data.message
String 255 返回结果消息
sign
data.sign
String 32 数据签名
data
data.data
Object 0 返回查询结果,如果没有匹配记录则返回空。具体字段含义见下表
total
data.data.total
Number 10 返回列表中记录总数
items
data.data.items
Array 0 数据列表
name
data.data.items.name
String 255 名称
invest_name
data.data.items.invest_name
String 255 被投资企业名称
invest_credit_no
data.data.items.invest_credit_no
String 255 被投资企业统一社会信用代码
invest_status
data.data.items.invest_status
String 50 被投资企业状态
invest_percent
data.data.items.invest_percent
String 20 总投资比例
path
data.data.items.path
String 0 投资路径
direct_percent
data.data.items.direct_percent
String 20 直接投资比例
invest_level
data.data.items.invest_level
String 3 最短投资层级
invest_desc
data.data.items.invest_desc
String 255 投资描述
invest_relationship_path
data.data.items.invest_relationship_path
Array 0 投资路径
his_direct_invest
data.data.items.his_direct_invest
String 3 是否历史直接投资(0否1是)
end_date
data.data.items.end_date
String 20 历史投资退出日期
num
data.data.num
Number 10 当前返回列表的总条数
响应示例
JSON
{
    "status": "200",
    "message": "操作成功",
    "sign": "269003220c973120c5ffc708875d5c50",
    "data": {
        "total": 14,
        "num": 14,
        "items": [
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市抚宁区宏仲养猪专业合作社",
                "invest_credit_no": "93130323319924504J",
                "invest_status": "注销",
                "invest_percent": "0.15957447",
                "direct_percent": "0.15957447",
                "invest_level": "1",
                "invest_desc": "可以发起临时会议,可以提出质询、起诉、调查、清算、解散公司等",
                "invest_relationship_path": [
                    "潘洪义-(15.96%) -> 秦皇岛市抚宁区宏仲养猪专业合作社"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市宏都饲料有限公司",
                "invest_credit_no": "-",
                "invest_status": "吊销,未注销",
                "invest_percent": "0.16666667",
                "direct_percent": "0.16666667",
                "invest_level": "1",
                "invest_desc": "可以发起临时会议,可以提出质询、起诉、调查、清算、解散公司等",
                "invest_relationship_path": [
                    "潘洪义-(16.67%) -> 秦皇岛市宏都饲料有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "抚宁县宏都养猪专业合作社联合社",
                "invest_credit_no": "93130306319943422D",
                "invest_status": "注销",
                "invest_percent": "0.03989362",
                "direct_percent": "0",
                "invest_level": "2",
                "invest_desc": "有权召开小型会议和拥有临时提案权(本条线仅适用于股份有限公司)",
                "invest_relationship_path": [
                    "潘洪义-(15.96%) -> 秦皇岛市抚宁区宏仲养猪专业合作社-(25.00%) -> 抚宁县宏都养猪专业合作社联合社"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市千奥宏都肉食批发有限公司",
                "invest_credit_no": "91130323554495367D",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.25",
                "direct_percent": "0.25",
                "invest_level": "1",
                "invest_desc": "拥有重大同业竞争预警线的权利",
                "invest_relationship_path": [
                    "潘洪义-(25.00%) -> 秦皇岛市千奥宏都肉食批发有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市明星宏都房地产开发有限公司",
                "invest_credit_no": "911303230799791425",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.3",
                "direct_percent": "0.3",
                "invest_level": "1",
                "invest_desc": "达到公司的要约收购线(本条线仅适用于上市公司)",
                "invest_relationship_path": [
                    "潘洪义-(30.00%) -> 秦皇岛市明星宏都房地产开发有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市洪俊相姊物业管理有限公司",
                "invest_credit_no": "91130306MA0DH0XF4M",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.3",
                "direct_percent": "0.3",
                "invest_level": "1",
                "invest_desc": "达到公司的要约收购线(本条线仅适用于上市公司)",
                "invest_relationship_path": [
                    "潘洪义-(30.00%) -> 秦皇岛市洪俊相姊物业管理有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "抚宁县潘官营屠宰有限公司",
                "invest_credit_no": "91130323319873073D",
                "invest_status": "吊销,未注销",
                "invest_percent": "0",
                "direct_percent": "0",
                "invest_level": "1",
                "invest_desc": "-",
                "invest_relationship_path": [],
                "his_direct_invest": "1",
                "end_date": "2015-05-18"
            },
            {
                "name": "潘洪义",
                "invest_name": "怀安县洪佳养殖有限公司",
                "invest_credit_no": "91130728348060581F",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0",
                "direct_percent": "0",
                "invest_level": "1",
                "invest_desc": "-",
                "invest_relationship_path": [],
                "his_direct_invest": "1",
                "end_date": "2017-07-25"
            },
            {
                "name": "潘洪义",
                "invest_name": "河北宏都实业集团有限公司",
                "invest_credit_no": "911303237634215160",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.2325",
                "direct_percent": "0.2325",
                "invest_level": "1",
                "invest_desc": "拥有重大同业竞争预警线的权利",
                "invest_relationship_path": [
                    "潘洪义-(23.25%) -> 河北宏都实业集团有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市宏都养殖股份有限公司",
                "invest_credit_no": "91130323684346757J",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.22868852",
                "direct_percent": "0",
                "invest_level": "2",
                "invest_desc": "拥有重大同业竞争预警线的权利",
                "invest_relationship_path": [
                    "潘洪义-(23.25%) -> 河北宏都实业集团有限公司-(98.36%) -> 秦皇岛市宏都养殖股份有限公司"
                ],
                "his_direct_invest": "1",
                "end_date": "2015-03-27"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市抚宁区映山红农作物种植专业合作社",
                "invest_credit_no": "93130323398839868R",
                "invest_status": "注销",
                "invest_percent": "0.03448276",
                "direct_percent": "0.03448276",
                "invest_level": "1",
                "invest_desc": "有权召开小型会议和拥有临时提案权(本条线仅适用于股份有限公司)",
                "invest_relationship_path": [
                    "潘洪义-(3.45%) -> 秦皇岛市抚宁区映山红农作物种植专业合作社"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "河北宏都电子商务有限公司",
                "invest_credit_no": "91130306MA09UUW8XC",
                "invest_status": "存续(在营、开业、在册)",
                "invest_percent": "0.2325",
                "direct_percent": "0",
                "invest_level": "2",
                "invest_desc": "拥有重大同业竞争预警线的权利",
                "invest_relationship_path": [
                    "潘洪义-(23.25%) -> 河北宏都实业集团有限公司-(100.00%) -> 河北宏都电子商务有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "抚宁县潘官营养猪专业合作社",
                "invest_credit_no": "-",
                "invest_status": "吊销,未注销",
                "invest_percent": "0.1",
                "direct_percent": "0.1",
                "invest_level": "1",
                "invest_desc": "可以发起临时会议,可以提出质询、起诉、调查、清算、解散公司等",
                "invest_relationship_path": [
                    "潘洪义-(10.00%) -> 抚宁县潘官营养猪专业合作社"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            },
            {
                "name": "潘洪义",
                "invest_name": "秦皇岛市潘官营机械化屠宰加工有限公司",
                "invest_credit_no": "-",
                "invest_status": "注销",
                "invest_percent": "0.1629",
                "direct_percent": "0.042",
                "invest_level": "1",
                "invest_desc": "可以发起临时会议,可以提出质询、起诉、调查、清算、解散公司等",
                "invest_relationship_path": [
                    "潘洪义-(23.25%) -> 河北宏都实业集团有限公司-(52.00%) -> 秦皇岛市潘官营机械化屠宰加工有限公司",
                    "潘洪义-(4.20%) -> 秦皇岛市潘官营机械化屠宰加工有限公司"
                ],
                "his_direct_invest": "0",
                "end_date": "-"
            }
        ]
    }
}
代码示例
javascript
let request = require('request');
let urlEncode = require('urlencode');
let crypto = require('crypto');

let baseUrl = 'https://api.qixin.com/APIService/investment/getEntInvestmentByName';
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 = {
    keyword: 'keyword的值',
    skip: 'skip的值',
    pname: 'pname的值'
}

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);
});