China Company Verification API Integration

Set up the ChinaValidate API, send your first authenticated search and profile requests, and read the results before integrating company verification into your application.

ArticlesPublished by ChinaValidatePublished December 3, 2026Last updated December 3, 2026

Find Chinese companies by name or keyword. Use a matching record’s legal name or Unified Social Credit Code for a profile lookup.

View API documentationAPI workspace
China Company Verification API Integration

Start with one company you can identify from a legitimate reference document. Create an API key, add API credits and make an authenticated company search. Review the returned candidates, then call the company profile endpoint with the exact Chinese legal name or the verified 18-character Unified Social Credit Code. Once you can explain what each call returned, connect the two steps to your application. If your application already collects a verified code, the profile call can be the starting point.

The two calls have different inputs and outputs. Search accepts a keyword and returns candidates. Profile accepts a full Chinese legal name or a credit code and returns a registry result when available. Saving both the selected identifier and the lookup outcome makes later decisions easier to trace. The public ChinaValidate integration guide lists the available operations, authentication method and quick-start request.

Create an API key and prepare one lookup

Open the API workspace and create a key for the integration. Store the key on your server or in the environment used to run your development command. Put it in the Authorization header using the Bearer scheme. Keep the value out of browser code, version control, screenshots and shared request exports. Your application can receive a company name from a form and submit it to the API from your server. The person completing the form has no need for the provider credential.

Add API credits to the account linked to the key. Check the price of the selected operation and response language before selecting a test input. The API pricing page shows the current per-call prices. Completed calls can consume API credits even when they return no matching records. One known company and a planned number of paid requests are enough to verify connectivity. Use saved example responses for most application development and reserve paid calls for confirming the real connection and response contract.

Write down the Chinese legal name and credit code from the same company document, where both exist. Use the documented example names to understand request syntax, and supply an authorized test input for a real lookup. Remember the input came from a particular record. If the same supplier uses an English brand name on a website and another Chinese legal entity on a contract, preserve both references so you can explain the eventual selection.

Run a company search

Set the environment variables used below. Put the lookup keyword in COMPANY_KEYWORD, for example a Chinese trade name or a distinctive portion of the complete registered name. The curl command encodes the query while keeping the original characters in the input variable. The API host serves the request. The main website serves the documentation.

curl -sS -i -G 'https://api.chinavalidate.com/v1/companies/search' \
  -H "Authorization: Bearer ${CHINAVALIDATE_API_KEY}" \
  --data-urlencode "keyword=${COMPANY_KEYWORD}" \
  --data-urlencode 'page=1' \
  --data-urlencode 'language=zh-CN'

Read the status line, headers and JSON body. For a completed search, the JSON code is 200 and the data object contains total_count and items. The count can describe more results than appear on the current page. Each available candidate can include a legal name, credit code, province or a registration status. Return the shortlist to a person or apply a rule that checks an authoritative input before selecting an entity. A single result is a candidate if nothing independently matches the company meant by the request. Company Search API request and response

An empty items list and a total of zero are a normal result. Keep the entered keyword and label the attempt as no match. Check for a copied trade name, missing Chinese characters or an input from a separate affiliated company before searching again. Keep transport errors and failed authorization in separate states. Someone working in an internal tool should be able to tell the difference between a request that found no candidates and a request that did not finish.

Send the exact identity to the profile endpoint

Select a candidate after comparing a reliable code or the complete name with the reference you started with. In the example below, the body contains the documented fixture code. Save the block as profile-request.json to try the command and replace the fixture with the permitted real or test identifier for your own check. Use strings for these identifiers and keep the exact spelling. A credit code belongs to a specific legal entity.

{
  "company_name_or_credit_code": "91320505MA00000005",
  "language": "zh-CN"
}
curl -sS -i -X POST 'https://api.chinavalidate.com/v1/companies/profile' \
  -H "Authorization: Bearer ${CHINAVALIDATE_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-binary @profile-request.json

A returned profile may include the registered company name, credit code, business status, address and scope, depending on the available data. Compare the returned name and code with the identifiers you intended to check. Keep the registry address separate from the delivery or operating address used elsewhere in your application. For an initial implementation, show the original values and give staff a way to inspect the source material used for matching. The Company Profile API documents the full example and available fields.

If the profile response returns no result, keep the selected identity and the unsuccessful profile attempt separate. That preserves the fact that search presented a candidate while the following lookup supplied no profile. A later operator can decide whether to correct the identifier, check a source document or perform another authorized lookup. Empty data gives no basis by itself for marking an entity as dissolved, unregistered or accepted.

Read the response before wiring decisions

The API documentation describes an HTTP 200 response for application outcomes. The JSON code distinguishes success from application errors, including an invalid request, authentication failure, insufficient credits, access restrictions or rate limiting. Record a transport failure separately if the client cannot establish a connection or receive a valid response. The client should use both layers to decide what to show. A successful HTTP status alone provides too little information for that decision. OpenAPI response definitions

Result you observe First check
Application success with candidate rows Confirm the identity against a reliable company document
Application success with zero rows Keep the input and establish whether it needs correction
Application code 401 or 403 Check the key, account and access rather than changing the company keyword
Application code 402 Check available API credits before making another request
Application code 429 Respect the documented Retry-After guidance for the response
Timeout before the response arrives Record that completion is unknown and check usage before repeating the call

If the response includes X-CV-Request-Id, X-CV-Charged-Amount or X-CV-Currency, retain the values you need for support and reconciliation. Store your own application reference too. When someone reports an unexpected charge or an unresolved lookup, start by matching the operation, time, supplied input and provider request identifier. A retry after a client timeout can represent a second call if the first reached the service. The application should preserve enough information to handle that case deliberately.

Choose the saved fields

An integration normally needs an entity identifier, the current decision status and the last usable result. Keep the original Chinese legal name and credit code as identity fields. Record which operation supplied the values and when your integration received them. Keep any translated display fields alongside the original. When a later operation requires the Chinese legal name, take it from data rather than sending the text displayed in translation. The two views can use different representations of the same registered identity.

Avoid turning one profile response into a permanent judgment about a company. A current registration result answers what was returned by this lookup. If your application needs a fresh check later, record the new lookup separately or preserve the date of the value you reuse. When a newer response omits information, decide how to show the earlier record and its date. A missing value and a confirmed change are different facts.

Make the first application version easy to diagnose. Show the submitted input, the selected legal identity and the specific reason a case stopped. Hide credentials and keep access to raw records within the staff workflows that need them. For programmatic use, rely on documented fields and preserve optional values without assuming that every response item includes them. This keeps the client compatible with sensible variations among companies and operations.

Verify the integration safely

Use documented examples to exercise a known company match, an empty search and an application error. Test the exact path where the reviewer chooses a different candidate from the first one in the list. Test a profile response without a credit code, especially if your caller permits a Chinese legal name as input. Check whether the UI still distinguishes the legal entity from the display label after requesting another language.

Before enabling normal traffic, use one permitted live search and profile call to verify the account, the actual host, authentication and the shape of the response you read. Compare the chosen result with the reference document and review any usage information reported for the calls. Then record the response checks that determine whether your application can proceed, needs better input or needs operator attention. The first integration is ready when those outcomes remain distinct from the moment a lookup begins to the point where a record is saved.