Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

企查查

企查查包的 QichachaOptions 配置字段、Key/SecretKey 鉴权与使用示例。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.EnterpriseInfo.Qichacha
Provider IDqichacha
鉴权Key + SecretKey(MD5 签名)

配置字段(QichachaOptions)

字段类型必填默认值说明
Keystring企查查开放平台 AppKey
SecretKeystring企查查开放平台 SecretKey
BaseUrlstringhttps://api.qichacha.com/API 基础地址
HttpClientNamestringQichachaEnterpriseInfoProvider命名 HttpClient

配置示例

{
"EnterpriseInfo": {
"Qichacha": {
"Key": "your-app-key",
"SecretKey": "your-secret-key"
}
}
}

DI 注册

// ① 配置节绑定
builder.Services.AddBitzsoftQichachaEnterpriseInfo(builder.Configuration.GetSection("EnterpriseInfo:Qichacha"));
// ② 委托配置
builder.Services.AddBitzsoftQichachaEnterpriseInfo(options =>
{
options.Key = "your-app-key";
options.SecretKey = "your-secret-key";
});

使用示例

public class EnterpriseService(IEnterpriseInfoProvider info)
{
public async Task<EnterpriseDetailInfo> GetDetailAsync(string creditCode)
{
return await info.GetDetailInfoAsync(creditCode);
}
public async Task<EnterpriseVerificationResult> VerifyAsync(string code, string name, string legalPerson)
{
return await info.VerifyAsync(code, name, legalPerson);
}
}

已知限制

  • 企查查开放平台不同接口有独立的 QPS 限制和计费规则。
  • Key / SecretKey 在企查查开放平台「个人中心 → 我的接口 → 显示所有 key」获取。

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%