Tianyancha Company Search
Pricing
$3.00 / 1,000 search results
Tianyancha Company Search
Searches Tianyancha (天眼查) for companies by keyword and returns up to 20 matching companies per keyword.
Pricing
$3.00 / 1,000 search results
Rating
0.0
(0)
Developer
NewLai
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
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.
中文简介: 这是一个支持批量关键词的天眼查企业查询、公司搜索和工商查询 API,返回企业名称、法定代表人、注册资本、经营状态、统一社会信用代码、注册地址和天眼查 gid,适用于获客、KYC、企业尽调和中国企业数据库建设。
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.
How to use tianyancha-search
- Open the Actor's Input tab in the Apify Console.
- Enter one or more search keywords (e.g.
["张雪机车", "腾讯"]). - Optionally set Results per keyword (max
20). - Click Start. The Actor searches each keyword and stores every company in the run's dataset.
- 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": ["张雪机车", "腾讯"]}'
Input
The Actor takes the following input fields:
| Field | Type | Required | Description |
|---|---|---|---|
words | array<string> | Yes | Search keywords, e.g. ["张雪机车", "腾讯"] |
pageSize | integer | No | Maximum companies per keyword (1–20, default 20). The API does not support paging. |
Example input:
{"words": ["张雪机车", "腾讯"],"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:
| Variable | Description |
|---|---|
TYC_CONCURRENCY | Maximum 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": "张雪机车","id": 7066473513,"name": "重庆张雪摩托车销售有限公司","legalPersonName": "张雪","regStatus": "存续","regCapital": "100万人民币","estiblishTime": "2024-08-02 00:00:00.0","creditCode": "91500112MADTJJ4X88","categoryStr": "批发业","regLocation": "重庆市渝北区空港大道1008号4幢2-4","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:
| Field | Description |
|---|---|
searchWord | The keyword that produced this result |
id | Tianyancha company ID (gid) — feed into tianyancha-basic-info for full details |
name | Registered company name |
legalPersonName | Legal representative |
regStatus | Company status (e.g. 存续, 注销) |
regCapital | Registered capital |
estiblishTime | Establishment date |
creditCode | Unified social credit code |
categoryStr | Industry category |
regLocation | Registered address |
companyTotal | Total companies matching the keyword |
How much does it cost to scrape Tianyancha?
Apify usage is measured in compute units (CUs). Each run is a lightweight set of HTTP requests with no browser, so it consumes well under a fraction of a CU per keyword. With Apify's free tier, occasional searches cost nothing. For bulk searches, the default memory (256 MB) and short run duration keep costs minimal — you can estimate your exact spend on the Apify Pricing page.
Tips or Advanced options
- Batch keywords — pass many
wordsin 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-infoActor — search returns companyids; pipe them into the base-info Actor to pull each company's full registered profile. - Limit results — set
pageSizelower 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.