接口文档 关联关系 企业间找关系-JOB申请
企业间找关系-JOB申请
relation.33_10 关联关系
¥5.00 /次
接口说明

企业间找关系(十家),支持最多十家公司间的投资任职关系。异步接口,根据此接口返回的id在“33.11企业间找关系-详细数据”获取结果数据

请求方式
GET
单价
¥5.00/次
数据缓存
86400 秒
请求地址
GET https://openapi.jiawei.net/api/v1/relation.33_10
通过 Header 携带 X-App-Key / X-App-Sign / X-App-Timestamp 完成认证,签名算法: HMAC-SHA256(appKey + timestamp, appSecret)
请求参数
参数名类型必填说明
enterprises String 必填 企业全名字符串, 注意企业名称间用英文逗号分隔。支持最少两家最多十家企业
persons String 可选 人员信息字符串, 注意人员间用英文逗号分隔。企业名称和人员姓名用
relations String 可选 直接关系类型,默认全部,格式如下SH
level String 可选 层级,默认6层,1-7层
containSuspect String 可选 是否包含疑似关系 1-包含 0-不包含
suspect_relations String 可选 疑似关系类型,包含默认全部:same_phone
path String 可选 关系路径,枚举:0:最短路径;1:全部路径,该接口默认查询最短路径
返回内容
企业关系的key
响应示例
{ "code": 200, "message": "success", "data": { "企业关系的key": { "项目": "示例数据", "说明": "调用后返回该字段的实际数据" } }, "request_id": "req_65f8a1b2c3d4e", "timestamp": 1700000000 }
curl -X GET 'https://openapi.jiawei.net/api/v1/relation.33_10?enterprises=<enterprises>' \ -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_10?enterprises=%3Centerprises%3E"); 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_10', params={'enterprises'}, 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_10") .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服务器内部错误
在线测试