Tianyancha Company Search Scraper avatar

Tianyancha Company Search Scraper

Pricing

from $3.00 / 1,000 search results

Go to Apify Store
Tianyancha Company Search Scraper

Tianyancha Company Search Scraper

Search Tianyancha by keyword and return up to 20 Chinese companies with reusable gids. Use those gids with Basic Info, Shareholders, Dynamics, Risk, Listing, and News Actors for lead generation, KYC, and due diligence.

Pricing

from $3.00 / 1,000 search results

Rating

0.0

(0)

Developer

Tarique

Tarique

Maintained by Community

Actor stats

0

Bookmarked

36

Total users

22

Monthly active users

11 hours ago

Last modified

Share

What does tianyancha-search do?

tianyancha-search is a Tianyancha company search scraper and China business database API. Give it one or more company names or keywords and it searches Tianyancha, returning up to 20 matching Chinese company records per query as structured JSON.

Each result is tagged with its source keyword. Use it alone or pass returned gid values to tianyancha-basic-info for full profiles, with automation available through the Apify API, schedules, webhooks, monitoring, and integrations.

Why use tianyancha-search?

  • No browser, no manual login — the encrypted request header is generated in pure Python, so runs are fast and cheap.
  • Clean structured JSON — every company is flattened into its own dataset row, downloadable as JSON, CSV, Excel, XML, or HTML.
  • Batch by keyword — search many keywords in a single run; each result is stored in the same dataset.
  • Ready for automation — combine it with Apify scheduling, webhooks, and API access to power lead-gen, due-diligence, and KYC pipelines.
  • Apify platform advantages — monitored runs, pay-per-use billing, proxy support, and 15 integrations out of the box.

These Actors share a gid-based workflow. Start with Tianyancha Company Search to find companies by keyword, then pass each returned id to the detail Actors below.

ActorBest for
Tianyancha Company SearchFind companies by keyword and return reusable gid values
Tianyancha Basic Company InfoCompany profile, legal representative, capital, credit code, and address
Tianyancha ShareholdersShareholders, holding percentages, controlling shareholder, and actual controller
Tianyancha Company DynamicsCompany changes, lawsuits, court hearings, penalties, and alerts
Tianyancha Risk & IP CountsLawsuit, penalty, patent, trademark, branch, and risk counts
Tianyancha Listed Company DataStock code, exchange, market board, listing status, and market cap
  1. Open the Actor's Input tab in the Apify Console.
  2. Enter one or more search keywords (e.g. ["motorcycle dealer", "technology"]).
  3. Optionally set Results per keyword (max 20).
  4. Click Start. The Actor searches each keyword and stores every company in the run's dataset.
  5. Open the run's Dataset tab to preview the JSON, or download it in your preferred format.

You can also run it from the command line with the Apify CLI:

$apify call <username>/tianyancha-search --input '{"words": ["motorcycle dealer", "technology"]}'

Input

The Actor takes the following input fields:

FieldTypeRequiredDescription
wordsarray<string>YesSearch keywords, e.g. ["motorcycle dealer", "technology"]
pageSizeintegerNoMaximum companies per keyword (1–20, default 20). The API does not support paging.

Example input:

{
"words": ["motorcycle dealer", "technology"],
"pageSize": 20
}

All Tianyancha API requests use Apify Residential Proxy with the exit location fixed to mainland China (CN). No custom proxy URL or proxy environment variable is required. The Actor fails instead of falling back to a direct request.

The remaining runtime option is preset in the Actor configuration:

VariableDescription
TYC_CONCURRENCYMaximum number of keywords searched concurrently. Preset and fallback: 8.

Output

The Actor pushes one record per company to the default dataset. A representative (abbreviated) output item looks like:

{
"searchWord": "motorcycle dealer",
"id": 7066473513,
"name": "Example Motorcycle Sales Co., Ltd.",
"legalPersonName": "Alex Zhang",
"regStatus": "Active",
"regCapital": "CNY 1,000,000",
"estiblishTime": "2024-08-02 00:00:00.0",
"creditCode": "91500112MADTJJ4X88",
"categoryStr": "Wholesale trade",
"regLocation": "1008 Airport Avenue, Yubei District, Chongqing",
"companyTotal": 61
}

The full payload mirrors the Tianyancha mobile search API and may contain many more fields per company. Highlight <em> tags are stripped for clean output. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Data table

Main fields you can expect in the output:

FieldDescription
searchWordThe keyword that produced this result
idTianyancha company ID (gid) — feed into tianyancha-basic-info for full details
nameRegistered company name
legalPersonNameLegal representative
regStatusCompany status (for example, active or deregistered)
regCapitalRegistered capital
estiblishTimeEstablishment date
creditCodeUnified social credit code
categoryStrIndustry category
regLocationRegistered address
companyTotalTotal companies matching the keyword

How much does it cost to scrape Tianyancha?

This Actor uses pay-per-event pricing at $0.003 per successfully saved company result. A keyword returning no companies has no event charge; a keyword returning 20 companies has a $0.060 event charge. Apify platform usage (including compute, proxy traffic, storage, and data transfer) is billed separately.

Successfully saved companiesEvent charge
0$0.000
1$0.003
2$0.006
10$0.030
20$0.060

Each company is charged only when its record is successfully saved to the Dataset. Failed requests, restricted/error responses, Dataset write failures, placeholder entries, and valid searches with zero matching companies are not charged an event fee. Duplicate input keywords are normalized and searched only once.

Tips or Advanced options

  • Batch keywords — pass many words in a single run; every company lands in the same dataset. Feed a long list, or schedule repeated runs via the Apify API.
  • Feed the tianyancha-basic-info Actor — search returns company ids; pipe them into the base-info Actor to pull each company's full registered profile.
  • Limit results — set pageSize lower to reduce requests and speed up runs (the API caps at 20 anyway).
  • Fast and cheap — the Actor uses plain HTTP, so it is far cheaper and faster than browser-based scrapers for the same data.

FAQ, disclaimers, and support

  • Is this legal? The Actor accesses Tianyancha's public mobile API. You are responsible for complying with Tianyancha's Terms of Service and applicable laws, and for how you use the data.
  • Known limitations — the search API returns at most 20 results per keyword and does not support paging. The private API may change without notice; if the Authorization cipher changes, runs may fail until the Actor is updated.
  • Need a custom solution? For tailored scraping, bulk export, or integration work, open an issue on the Issues tab or reach out for a custom Actor.

This page was generated with Apify's Actor README guidelines.