Tianyancha Company Data Scraper
Pricing
from $3.00 / 1,000 basic infos
Tianyancha Company Data Scraper
Scrape Tianyancha company profiles by gid: registration details, legal representatives, capital, credit codes, dates, status, and business scope. Combine with Search, Shareholders, Dynamics, Risk, Listing, and News Actors for China company lookup, KYC, due diligence, and lead enrichment.
Pricing
from $3.00 / 1,000 basic infos
Rating
0.0
(0)
Developer
Tarique
Maintained by CommunityActor stats
0
Bookmarked
18
Total users
13
Monthly active users
22 days ago
Last modified
Categories
Share
What does tianyancha-basic-info do?
tianyancha-basic-info is a Tianyancha company profile scraper and China business registry data API. Given a company gid, it extracts registered company information from Tianyancha — company name, legal representative, registered capital, unified social credit code, establishment date, registration status, business scope, and more — into structured JSON.
The Actor uses the Tianyancha mobile API without a browser or manual login. Run it in Apify Console or automate company lookup and due-diligence workflows through the Apify API, schedules, webhooks, monitoring, and integrations.
Why use tianyancha-basic-info?
- No browser, no manual login — the encrypted request header is generated in pure Python, so runs are fast and cheap.
- Clean structured JSON — output lands in a standard Apify dataset, downloadable as JSON, CSV, Excel, XML, or HTML.
- 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.
Related Tianyancha Actors
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.
| Actor | Best 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 |
How to use tianyancha-basic-info
- Open the Actor's Input tab in the Apify Console.
- Enter one or more company
gids(e.g.[9519792, 9519793]). - Click Start. The Actor fetches each company's base info and stores it 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-basic-info --input '{"gids": [9519792, 9519793]}'
Input
The Actor takes a single input field:
| Field | Type | Required | Description |
|---|---|---|---|
gids | array<integer> | Yes | Tianyancha company group IDs (gids) to fetch, e.g. [9519792, 9519793] |
Example input:
{"gids": [9519792, 9519793]}
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 checks proxy access during startup and fails
clearly instead of falling back to an unproxied request.
The remaining runtime option is preset in the Actor configuration:
| Variable | Description |
|---|---|
TYC_CONCURRENCY | Maximum number of companies fetched concurrently. Preset and fallback: 8. |
Output
The Actor pushes one Dataset item per company. Important fields are extracted to the top level for easy table viewing and export. Millisecond timestamps are converted to ISO dates, and the social-insurance staff count is converted to an integer. The complete, unmodified Tianyancha company object remains available under data, so no source fields are discarded.
A representative (abbreviated) output item looks like:
{"gid": 1234567,"name": "Example Technology Co., Ltd.","legalPersonName": "Alex Zhang","regStatus": "Active","regCapital": "CNY 10,000,000","establishmentDate": "2015-06-15","approvedDate": "2025-01-15","creditCode": "91110108MA00XXXXXX","regNumber": "11000000XXXXXXXX","industry": "Software and information technology services","socialStaffCount": 100,"regLocation": "1 Example Street, Haidian District, Beijing","companyUrl": "https://www.tianyancha.com/company/1234567","data": {"id": 1234567,"name": "Example Technology Co., Ltd.","estiblishTime": 1434326400000,"...": "all original Tianyancha fields"}}
Use the Overview view for core company columns, Details for registration and contact fields, and All fields to inspect the complete source object. 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 |
|---|---|
gid | Tianyancha company group ID |
name | Registered company name |
legalPersonName | Legal representative |
regStatus | Company operating status |
regCapital | Registered capital with currency |
establishmentDate | Parsed ISO establishment date |
approvedDate | Parsed ISO registration approval date |
creditCode | Unified social credit code |
regNumber | Business registration number |
orgTypeName | Registered organization type |
industry | Company industry |
staffNumRange | Reported staff size range |
socialStaffCount | Parsed social-insurance staff count |
regLocation | Registered address |
regInstitute | Registration authority |
email | Primary public email |
phoneNumber | Primary public phone number |
website | Primary company website |
companyUrl | Direct Tianyancha company profile link |
data | Complete unmodified company object containing all original fields |
How much does it cost to scrape Tianyancha?
This Actor uses pay-per-event pricing at $0.003 per successfully processed company (gid). The number of records, pages, articles, shareholders, events, or listing items returned for that company does not change the price.
| Successfully processed companies | Event charge |
|---|---|
| 1 | $0.003 |
| 2 | $0.006 |
| 10 | $0.030 |
| 100 | $0.300 |
A company is charged only after Tianyancha returns a valid response and all output records for that gid are saved to the Dataset. Failed requests, restricted/error responses, and Dataset write failures are not charged. A valid response with zero matching detail records is still a completed company lookup and is charged once. Duplicate input gid values are normalized and processed only once.
Tips or Advanced options
- Get the right
gid— every Tianyancha company page has a numeric gid; use the Actor together with a Tianyancha search scraper to feed ids in bulk. - Batch lookups — pass many
gidsin a single run; each company is fetched and stored in the same dataset. Feed a long list, or schedule repeated runs via the Apify API. - 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 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.