Application Process
To use the API, you need to first apply for the corresponding service on the ID Card Recognition and Information Verification API page. After entering the page, click the “Acquire” button, as shown in the image below:
If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in. After logging in or registering, you will be automatically returned to the current page.
Upon your first application, there will be a free quota provided, allowing you to use the API for free.
Basic Usage
First, understand the basic usage method, which is to input the ID card image link to obtain the processed verification result. You need to simply pass aimage_url field, and we can then fill in the corresponding content on the interface, as shown in the image below:

accept: the format of the response result you want to receive, here filled in asapplication/json, which is in JSON format.authorization: the key to call the API, which can be directly selected after application.
image_url: the link to the ID card image that needs to be processed.encryption: optional, sensitive field encryption parameter (if you need to send encrypted data).

result, the authentication result code, with the following charging situation.- Charging result codes:
- 0: The name and ID card number are consistent
- -1: The name and ID card number are inconsistent
- Non-charging result codes:
- -2: Illegal ID card number (length, check digit, etc. are incorrect)
- -3: Illegal name (length, format, etc. are incorrect)
- -4: Document database service exception
- -5: No record of this ID card in the document database
- -6: The authoritative comparison system is being upgraded, please try again later
- -7: The number of authentications has exceeded the daily limit.
- Charging result codes:
description, the result of the verification of the name and ID card number.name, the name information in the ID card, which will be empty if the ID card image is not uploaded.id_card, the ID card number information in the ID card, which will be empty if the ID card image is not uploaded.sex, the gender information in the ID card, which will be empty if the ID card image is not uploaded.nation, the nationality information in the ID card, which will be empty if the ID card image is not uploaded.birth, the birthday information in the ID card, which will be empty if the ID card image is not uploaded.address, the home address information in the ID card, which will be empty if the ID card image is not uploaded.
Custom Information Verification
We also provide a way to verify without disclosing ID card image information, which allows you to only pass in the namename and ID card number id_card to verify the authenticity and consistency of the name and ID card number. Below is the specific information filled in:

Error Handling
When calling the API, if an error occurs, the API will return the corresponding error code and message. For example:400 token_mismatched: Bad request, possibly due to missing or invalid parameters.400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.401 invalid_token: Unauthorized, invalid or missing authorization token.429 too_many_requests: Too many requests, you have exceeded the rate limit.500 api_error: Internal server error, something went wrong on the server.

