输入参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
company_name |
credit_code | credit_code |
返回字段
分支机构名称
负责人
地址
登记机关
调用示例
curl -X POST 'https://openapi.jiawei.net/api/v1/company.branch' \
-H 'X-App-Key: ak_xxxxxxxxxxxx' \
-H 'X-App-Sign: <hmac_sha256(timestamp, app_secret)>' \
-H 'X-App-Timestamp: 1700000000' \
-H 'Content-Type: application/json' \
-d '{"company_name":"佳维网络科技有限公司"}'
<?php
$ch = curl_init('https://openapi.jiawei.net/api/v1/company.branch');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-App-Key: ak_xxxxxxxxxxxx',
'X-App-Sign: ' . hash_hmac('sha256', $timestamp, $appSecret),
'X-App-Timestamp: ' . $timestamp,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'company_name' => '佳维网络科技有限公司',
]),
]);
$response = curl_exec($ch);
echo $response;
import requests, hmac, hashlib, time
app_key = "ak_xxxxxxxxxxxx"
app_secret = "xxxxxxxxxxxxxxxxxxxx"
ts = str(int(time.time()))
sign = hmac.new(app_secret.encode(), ts.encode(), hashlib.sha256).hexdigest()
resp = requests.post(
"https://openapi.jiawei.net/api/v1/company.branch",
headers={
"X-App-Key": app_key,
"X-App-Sign": sign,
"X-App-Timestamp": ts,
"Content-Type": "application/json",
},
json={"company_name": "佳维网络科技有限公司"},
)
print(resp.json())
OkHttpClient client = new OkHttpClient();
RequestBody body = RequestBody.create(
"{\"company_name\":\"佳维网络科技有限公司\"}",
MediaType.parse("application/json")
);
Request request = new Request.Builder()
.url("https://openapi.jiawei.net/api/v1/company.branch")
.post(body)
.addHeader("X-App-Key", "ak_xxxxxxxxxxxx")
.addHeader("X-App-Sign", "<hmac_sha256(timestamp, app_secret)>")
.addHeader("X-App-Timestamp", "1700000000")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
返回示例
{
"code": 0,
"message": "success",
"request_id": "req_64a1b2c3d4e5f6",
"data": {
"company_name": "佳维网络科技有限公司",
"credit_code": "91310000XXXXXXXXXX",
"legal_person": "张三",
"reg_status": "在营",
"result": "一致"
}
}
数据来源
-
priority天远API
ty· 上游价 ¥0.15 -
priority企查查
qcc· 上游价 ¥0.15 -
priority天眼查
tyc· 上游价 ¥0.15 -
priority启信宝
qxb· 上游价 ¥0.15 -
priority凭安Shuidi
pab· 上游价 ¥0.10 -
priority爱企查
aqc· 上游价 ¥0.10 -
priority聚合数据
jh· 上游价 ¥0.05 -
priority阿里云市场
ali· 上游价 ¥0.10 -
priority风鸟RiskBird
rb· 上游价 ¥0.00
错误码
| 码 | 含义 |
|---|---|
0 | 成功 |
40001 | AppKey 无效 |
40003 | 签名错误 |
42900 | 请求超限 |
40201 | 余额不足 |
40400 | 无数据 |
50000 | 服务器错误 |