关联企业
relation.33_12 关联关系
¥5.00 /次
接口说明

关联企业相关信息,入参企业上下两层穿透,包括法人、股东、对外投资、董监高等关系类型

请求方式
GET
单价
¥5.00/次
数据缓存
86400 秒
请求地址
GET https://openapi.jiawei.net/api/v1/relation.33_12
通过 Header 携带 X-App-Key / X-App-Sign / X-App-Timestamp 完成认证,签名算法: HMAC-SHA256(appKey + timestamp, appSecret)
请求参数
参数名类型必填说明
name String 必填 企业全名/注册号/统一社会信用代码
relationship_type String 可选 关系类型,默认全部返回.枚举:股东、历史股东、董监高、法人、历史董监高、历史法人。多个输入用,隔开
relationship_level String 可选 关联层级,默认2
返回内容
关联关系中路径信息列表 关联关系中节点信息列表
响应示例
{ "code": 200, "message": "success", "data": { "关联关系中路径信息列表": { "项目": "示例数据", "说明": "调用后返回该字段的实际数据" }, "关联关系中节点信息列表": { "项目": "示例数据", "说明": "调用后返回该字段的实际数据" } }, "request_id": "req_65f8a1b2c3d4e", "timestamp": 1700000000 }
curl -X GET 'https://openapi.jiawei.net/api/v1/relation.33_12?name=北京百度网讯科技有限公司' \ -H 'X-App-Key: ak_xxxxxxxx' \ -H 'X-App-Timestamp: 1700000000' \ -H 'X-App-Sign: <hmac_sha256(appKey+timestamp, appSecret)>'
$appKey = 'ak_xxxxxxxx'; $appSecret = 'sk_xxxxxxxx'; $ts = time(); $sign = hash_hmac('sha256', $appKey . $ts, $appSecret); $ch = curl_init("https://openapi.jiawei.net/api/v1/relation.33_12?name=北京百度网讯科技有限公司"); curl_setopt_array($ch, [ CURLOPT_HTTPHEADER => [ "X-App-Key: $appKey", "X-App-Timestamp: $ts", "X-App-Sign: $sign", ], CURLOPT_RETURNTRANSFER => true, ]); echo curl_exec($ch);
import hmac, hashlib, time, requests app_key = 'ak_xxxxxxxx' app_secret = 'sk_xxxxxxxx' ts = str(int(time.time())) sign = hmac.new(app_secret.encode(), f'{app_key}{ts}'.encode(), hashlib.sha256).hexdigest() r = requests.get( 'https://openapi.jiawei.net/api/v1/relation.33_12', params={'name'}, headers={ 'X-App-Key': app_key, 'X-App-Timestamp': ts, 'X-App-Sign': sign, }) print(r.json())
String appKey = "ak_xxxxxxxx"; String appSecret = "sk_xxxxxxxx"; long ts = System.currentTimeMillis() / 1000L; String sign = HmacUtils.hmacSha256Hex(appSecret, appKey + ts); HttpRequest req = HttpRequest.get("https://openapi.jiawei.net/api/v1/relation.33_12") .header("X-App-Key", appKey) .header("X-App-Timestamp", String.valueOf(ts)) .header("X-App-Sign", sign); System.out.println(req.execute().body());
错误码
错误码说明
200成功
400请求参数错误
401认证失败(AppKey/AppSign 错误或时间戳过期)
402余额不足
403账号已被禁用
404接口不存在
429请求频率超限或配额已用尽
500服务器内部错误
在线测试