Bitzsoft.Integrations.EnterpriseInfo.Qixin 1.0.1

dotnet add package Bitzsoft.Integrations.EnterpriseInfo.Qixin --version 1.0.1
                    
NuGet\Install-Package Bitzsoft.Integrations.EnterpriseInfo.Qixin -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.EnterpriseInfo.Qixin" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.EnterpriseInfo.Qixin" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.EnterpriseInfo.Qixin" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.EnterpriseInfo.Qixin --version 1.0.1
                    
#r "nuget: Bitzsoft.Integrations.EnterpriseInfo.Qixin, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.EnterpriseInfo.Qixin@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.EnterpriseInfo.Qixin&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.EnterpriseInfo.Qixin&version=1.0.1
                    
Install as a Cake Tool

Bitzsoft.Integrations.EnterpriseInfo.Qixin

启信宝企业信息查询实现,从启信开放平台获取工商、司法、经营、知识产权等企业全维度数据。

功能特性

  • 完整实现 IEnterpriseInfoProvider 接口:覆盖搜索、工商基本信息、详情、核验、风险、股东、司法案件、实际控制人全部 8 个核心方法
  • 270 个 API 端点:来自启信开放平台官方目录(https://data.qixin.com/api-list),覆盖全部 18 个业务分类
  • MD5 动态签名:内置 MD5(appkey + timestamp + secret_key).toLowerCase() 鉴权机制,通过 Auth-Version: 2.0 Header 传递
  • IHttpClientFactory 集成:通过 Microsoft.Extensions.Http 管理 HTTP 连接
  • 配置提供器模式:通过 IQixinConfigProvider 抽象配置获取
  • 部分类架构:主 Provider + 4 个按业务领域拆分的部分类文件

安装

.NET CLI

dotnet add package Bitzsoft.Integrations.EnterpriseInfo.Qixin

PackageReference

<PackageReference Include="Bitzsoft.Integrations.EnterpriseInfo.Qixin" Version="1.0.0" />

配置

appsettings.json

{
  "Qixin": {
    "AppKey": "your-app-key",
    "SecretKey": "your-secret-key",
    "BaseUrl": "https://api.qixin.com/APIService",
    "HttpClientName": "Qixin"
  }
}
配置项 说明 默认值
AppKey 启信开放平台 AppKey
SecretKey 启信开放平台 SecretKey
BaseUrl API 基础地址 https://api.qixin.com/APIService
HttpClientName IHttpClientFactory 中注册的客户端名称 QixinEnterpriseInfoProvider

注册服务

使用委托配置(推荐)

using Bitzsoft.Integrations.EnterpriseInfo.Qixin;

services.AddBitzsoftQixinEnterpriseInfo(options =>
{
    options.AppKey = "your-app-key";
    options.SecretKey = "your-secret-key";
});

从 IConfiguration 绑定

using Bitzsoft.Integrations.EnterpriseInfo.Qixin;

services.AddBitzsoftQixinEnterpriseInfo(configuration, "Qixin");

第三方请求日志

内置 Bitzsoft.Integrations.RequestLogging 出站请求记录管道,默认 NullRequestLogStore 不持久化。

// ① 默认:启用记录管道但不持久化(日志丢弃)
services.AddBitzsoftQixinEnterpriseInfo(options => { /* ... */ });

// ② 持久化:宿主注册 IRequestLogStore 实现后,所有出站请求自动落库
services.AddRequestLogging<MyRequestLogStore>(opts =>
{
    opts.MaxInMemoryBodyBytes = 64 * 1024; // 仅控制内存/加密临时文件切换,不截断正文
    opts.SensitiveFields.Add("mySecret");
});
services.AddBitzsoftQixinEnterpriseInfo(options => { /* ... */ });

使用示例

using Bitzsoft.Integrations.EnterpriseInfo;
using Bitzsoft.Integrations.EnterpriseInfo.Qixin;

public class QixinEnterpriseService
{
    private readonly QixinEnterpriseInfoProvider _provider;

    public QixinEnterpriseService(QixinEnterpriseInfoProvider provider)
    {
        _provider = provider;
    }

    public async Task DemoAsync()
    {
        // 企业高级搜索
        var searchResult = await _provider.SearchAsync("腾讯科技");

        // 获取工商照面
        var basicInfo = await _provider.GetBasicInfoAsync("腾讯科技(深圳)有限公司");

        // 三要素核验
        var verify = await _provider.VerifyAsync(
            "9144030071526726XG",
            "腾讯科技(深圳)有限公司",
            "马化腾");

        // 调用启信宝特有 API(非接口方法,返回原始 JSON)
        var result = await _provider.QueryBasicInfoAsync("腾讯科技");
        var data = result.Data; // JsonElement,按需解析

        // 获取启信分
        var score = await _provider.GetCreditScoreAsync("腾讯科技(深圳)有限公司");

        // 获取客户信息尽调(KYC)
        var kyc = await _provider.GetAllEntInfoByNameAsync("腾讯科技(深圳)有限公司");
    }
}

API 覆盖范围

分类 API 数 说明
业务场景 7 客户信息尽调、合作风险排查、全景报告等
搜索查询 4 模糊搜索、高级搜索、招投标/商标搜索
工商信息 50 照面、股东、人员、变更、分支机构、年报等
司法风险 21 立案、被执行、失信、开庭公告、破产等
经营风险 24 行政处罚、动产抵押、经营异常、欠税等
经营信息 25 行政许可、招投标、招聘、纳税评级等
知识产权 20 商标、专利、著作权、域名、资质等
关联关系 21 股权穿透、族谱、关联企业、受益人
企业评分 15 启信分、空壳指数、科创评分、风险分
企业标签 / 新闻 / 发展 / 客商 / 集团 / 证券 / 地产 / 特色 83 概念标签、融资、供应链、股票、债券、建筑资质等

核心类型一览

类型 说明
QixinEnterpriseInfoProvider 启信宝企业信息查询实现(partial class,含 4 个扩展文件)
QixinOptions 启信宝连接配置(AppKey / SecretKey / BaseUrl / HttpClientName)
IQixinConfigProvider 配置提供器接口
QixinConfigProvider 默认配置提供器(基于 IOptions<QixinOptions>
QixinQueryResult 启信宝通用查询结果(Data JsonElement)
QixinApi 启信宝 API 端点定义(Path)
ServiceCollectionExtensions DI 扩展方法 AddBitzsoftQixinEnterpriseInfo

依赖

相关包

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bitzsoft.Integrations.EnterpriseInfo.Qixin:

Package Downloads
Bitzsoft.Integrations.EnterpriseInfo.All

企业信息查询聚合包 — 一键集成企查查、天眼查、启信宝

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 136 8/3/2026
1.0.0 131 8/2/2026
1.0.0-alpha.10 54 7/26/2026
1.0.0-alpha.9 72 7/12/2026
1.0.0-alpha.8 66 7/1/2026
1.0.0-alpha.7 81 6/16/2026
1.0.0-alpha.6 73 6/16/2026
1.0.0-alpha.5 67 6/14/2026
1.0.0-alpha.3 69 6/7/2026