Tianyancha Company Search avatar

Tianyancha Company Search

Pricing

$3.00 / 1,000 search results

Go to Apify Store
Tianyancha Company Search

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

NewLai

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

7 days 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.

中文简介: 这是一个支持批量关键词的天眼查企业查询、公司搜索和工商查询 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.

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.

中文工作流: 先用天眼查企业查询按关键词获取公司 gid,再把 gid 传给其他 Actor,组合完成工商、股东、动态、风险、知识产权和上市信息查询。

ActorBest for / 用途
Tianyancha Company Search / 天眼查企业查询Find companies by keyword and return reusable gid values / 按关键词查公司
Tianyancha Basic Company Info / 天眼查工商信息Company profile, legal representative, capital, credit code, and address / 企业工商档案
Tianyancha Shareholders / 天眼查股东信息Shareholders, holding percentages, controlling shareholder, and actual controller / 股权结构
Tianyancha Company Dynamics / 天眼查企业动态Company changes, lawsuits, court hearings, penalties, and alerts / 企业风险动态
Tianyancha Risk & IP Counts / 天眼查风险与知识产权Lawsuit, penalty, patent, trademark, branch, and risk counts / 风险与知识产权统计
Tianyancha Listed Company Data / 天眼查上市信息Stock 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. ["张雪机车", "腾讯"]).
  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": ["张雪机车", "腾讯"]}'

Input

The Actor takes the following input fields:

FieldTypeRequiredDescription
wordsarray<string>YesSearch keywords, e.g. ["张雪机车", "腾讯"]
pageSizeintegerNoMaximum 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:

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": "张雪机车",
"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:

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 (e.g. 存续, 注销)
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 processed keyword. The number of matching companies does not change the price: a keyword returning 1 company and a keyword returning 20 companies each cost $0.003.

Successfully processed keywordsEvent charge
1$0.003
2$0.006
10$0.030
100$0.300

A keyword is charged only after Tianyancha returns a valid response and all company records for that keyword are saved to the Dataset. Failed requests, restricted/error responses, and Dataset write failures are not charged. A valid response with zero matching companies is still a completed search and is charged once. 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.