China Company Search vs Directory Search API
Compare inputs, response fields, pagination and identity handoff for China company search and company directory search.
Find Chinese companies by name or keyword. Use a matching record’s legal name or Unified Social Credit Code for a profile lookup.

Choose the search operation according to what the next screen needs. ChinaValidate's Company Search API returns candidate records that can carry a Chinese legal name, a Unified Social Credit Code and other information for comparison. Company Directory Search returns matching entries with names. It gives you another way to discover candidates when the initial input is incomplete. A directory row can be ready for a person to inspect even while it is still waiting for an identity match.
Both operations accept a keyword and a page. They have different fields, and the company search operation offers a documented search mode. Build the interface around the evidence returned by each operation. Then use the Company Profile API when you need the record for an identified legal entity. Company Search API · Company Directory Search API · Company Profile API
Choose the first request by task
Suppose a user copies a supplier name from a quotation. It contains several Chinese characters, but some are missing. If the next screen asks a person to compare province, legal name or identity code, company search gives that screen useful fields in one result. A directory list can instead help a researcher gather plausible names for follow-up. A keyword is the starting point in both cases. Its matching rows should keep their own source and the context in which they were returned.
If the input is a Unified Social Credit Code already confirmed against a trusted document, the team can often start with company profile. It can then compare the returned name and code with the record that supplied the identifier. China’s Market Entity Registration Regulation lists names among the registration matters for market entities. The National Enterprise Credit Information Publicity System is also a useful place to verify the registered identity and available public record before relying on a candidate. Market Entity Registration Regulation · National Enterprise Credit Information Publicity System
| Job in the application | Suitable starting operation | What to pass forward |
|---|---|---|
| Compare plausible matches using structured company fields | Company search | Original name, code when present, and the evidence used to choose the candidate |
| Collect names to investigate from the directory | Company directory search | The names and their query provenance |
| Retrieve the current available profile for a confirmed identifier | Company profile | The confirmed code or Chinese legal name and the verification context |
| Resolve two similar candidate names with missing or different codes | Human comparison and a profile lookup once the identity is established | The confirmed identity and the source used to resolve it |
A buyer can use one or both search operations in a single workflow. For example, a shortlist can begin with names and end with a profile for one legal company. A search box can also start with structured search and offer the directory as a deliberate second option. Preserving which operation supplied each row makes both interfaces understandable when people revisit the results.
Compare the actual endpoint contracts
Company search uses GET on the search route and takes keyword, optional page, optional search_scope and optional language. The published search modes are all for broad search and accurate for precise search. The company search documentation currently shows pages 1 through 20. Directory search uses a different GET route. Its documentation starts page numbering at 1 and shows no equivalent search-scope input. Send only settings documented for the operation you call.
These examples use the same keyword from the API documentation. They are independent calls. Each uses the API key from a server-side environment variable.
curl -sS --get 'https://api.chinavalidate.com/v1/companies/search' \
-H "Authorization: Bearer ${CHINAVALIDATE_API_KEY}" \
--data-urlencode 'keyword=百度' \
--data-urlencode 'search_scope=all' \
--data-urlencode 'page=1'
curl -sS --get 'https://api.chinavalidate.com/v1/companies/directory-search' \
-H "Authorization: Bearer ${CHINAVALIDATE_API_KEY}" \
--data-urlencode 'keyword=百度' \
--data-urlencode 'page=1'
Read the JSON code alongside the HTTP result. A successful application response has data with total_count and items. The total describes the matching records and can exceed the number of items on one page. A documented successful no-match response has a zero total and an empty list. An application-level error is a different outcome and should remain visible to someone deciding whether to refine the query.
Keep an item count per retrieved page and retain the provider's order. Store the keyword, operation, applicable search mode, page number, response time and language with each retrieval. This is enough to explain why two screens returned different records. It also makes a later export auditable when two team members used slightly different queries. If the application exposes alternative grouping or ordering, label that as its own display while preserving the saved result.
Move the original company identity between screens
The company search example contains company_name, unified_social_credit_code, province and business status. The directory example shows an array of entries with company_name. A row without a code can serve as a candidate. If a complete code is available from the structured search or trusted source, give the person comparing candidates that field. Keep the original Chinese legal name visible beside any localized label. A translated display name can help a reader recognize a business, and the original name remains the safer value to use when another endpoint asks for it.
Save the observed response and the later decision separately. A researcher may see a directory row, select an apparently related company, and later find a different code on the supplier's business documents. Store each observation with its source. Link the confirmed company to the decision after someone reviews that discrepancy. If another case still points to the original directory row, it can retain that provenance while the procurement record uses the verified identity.
Avoid equating identical strings with identical companies when the supporting fields are sparse. Conversely, the same established entity can appear under different display translations, in repeated search pages, or in a directory result and a structured search. Use a confirmed identifier as a stable link when available. Preserve unresolved similarity as an unresolved relationship. This keeps the interface from creating or merging accounts solely because two names look alike.
An illustrative query for a common two-character brand might yield a distributor and a separate manufacturer. If a contract names the distributor and the manufacturing audit names the manufacturer, both candidates can be useful. The legal party entering the purchase remains the one confirmed on the contract and supporting record. The other row can be connected to that purchase for its factory role. A single choice of “best match” would hide the distinction the buyer actually needs.
Design pagination for comparison and review
A user might switch from structured search page two to directory search while still using the same keyword. Start the directory at its own first page. The operation is part of the navigation state. Do the same when the user switches from broad to precise search within company search. Preserving the old page number across either change can hide the first group of matches and leave an apparently empty screen with a misleading title.
If a name is found on one page and seen again on another request, the application may choose to show one visual candidate. Retain the underlying observations, especially if one version carries a code and the other does not. A reviewer can then tell which feature established the legal identity. When storing total matches, record the total for that specific response. Adding counts from similar keywords or from different endpoint results rarely gives a defensible market size because the lists can overlap.
A restrained test set covers a confirmed code, an incomplete name that produces multiple plausible results, and a term for which one or both searches return no match. Inspect the original names and pagination behavior before assessing any translation or display logic. Add a case in which the user changes the query while on page two. Check that both the initial page and the item selected for a later profile lookup still correspond to the active query.
When evaluating the integration, measure time to confirmed identity as well as the number of candidates shown. The directory can support initial exploration and structured search can reduce the number of follow-up lookups. The practical measure is whether a person can reach the right entity and see the evidence behind it. Keep the query, selected row and confirmed profile linked, and the search APIs can serve both tasks without confusing a promising name with a finished verification.
Costs of the comparison flow
A search policy can give the requester a clear order of operations. With a confirmed code, go straight to the profile. With an incomplete phrase, offer one candidate search. Ask for a second operation when the first result lacks the distinguishing evidence the user needs. Record when the second search changed the shortlist. This makes it possible to measure the benefit of an optional step without assuming more calls produce better results.
For a batch export, carry the source and matched evidence with any confirmed company. A business user can search a brand one day and paste the official company name the next. Both actions may resolve to the same company, but the input, query and decision history explain the different results. Retain those records if the integration will support audits or repeat procurement decisions. Use the single trusted profile reference for later stages that need the legal entity.