Fading Coder

One Final Commit for the Last Sprint

Home > Tools > Content

Querying Enterprise Information via API

Tools May 19 1

A RESTful API is available for retrieving comprehensive enterprise details, which is useful for features like online invoicing and auto-completing company information. Users can search by partial company names or credit codes to fetch complete records.

API Request and Example

HTTP GET Request

# Base URL structure
# The 'code' parameter is mandatory and must be obtained from the provider.
https://api.provider.com/enterprise/search?keyword=Chongqing Cola&code=YOUR_ACCESS_CODE

Sample Response

{
    "status": 200,
    "message": "success",
    "results": [
        {
            "internalId": "1105",
            "systemCreateTime": 1695260987000,
            "matchMethod": "Company Name",
            "registrationNumber": "500113014353471",
            "establishmentDate": "2021-06-02",
            "companyName": "Chongqing Cola Home Decoration Engineering Co., Ltd.",
            "legalRepresentative": "Li Lunzhi",
            "uniformCreditCode": "91500113MAABRA7D0H",
            "dataSourceId": "58e62a6d-a6fa-482a-972d-84131629b2e4",
            "matchedField": "Chongqing Cola Home Decoration Engineering Co., Ltd.",
            "enterpriseCategory": "0"
        }
    ]
}

Access and Usage

This is a paid service with a cost of 0.01 CNY per request. The service is stable and supports numerous clients. To obtain an access code (code parameter), contact the provider or use the designated mini-program.

API Specification

# Parameter Type Description
1 internalId int System-generated unique idetnifier
2 systemCreateTime long Timestamp of record creation in the system
3 matchMethod String Matching algorithm used (for internal use)
4 registrationNumber String Official bussiness registration number
5 establishmentDate String Date the company was established (YYYY-MM-DD)
6 companyName String Full legal name of the enterprise
7 legalRepresentative String Name of the legal representative
8 uniformCreditCode String Unified social credit code
9 dataSourceId String Identifier from the data provider (internal)
10 enterpriseCategory String Entity type: 0=Company, 4=Association, 5=Law Firm, 6=HK Company
11 matchedField String The field that matched the search query (internal)

Related Articles

Efficient Usage of HTTP Client in IntelliJ IDEA

IntelliJ IDEA incorporates a versatile HTTP client tool, enabling developres to interact with RESTful services and APIs effectively with in the editor. This functionality streamlines workflows, replac...

Installing CocoaPods on macOS Catalina (10.15) Using a User-Managed Ruby

System Ruby on macOS 10.15 frequently fails to build native gems required by CocoaPods (for example, ffi), leading to errors like: ERROR: Failed to build gem native extension checking for ffi.h... no...

Resolve PhpStorm "Interpreter is not specified or invalid" on WAMP (Windows)

Symptom PhpStorm displays: "Interpreter is not specified or invalid. Press ‘Fix’ to edit your project configuration." This occurs when the IDE cannot locate a valid PHP CLI executable or when the debu...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.