Tianyancha Listed Company Scraper
Pricing
from $2.00 / 1,000 listing records
Tianyancha Listed Company Scraper
Scrape Tianyancha listed company and stock data by gid, including stock names, security codes, exchanges, market boards, listing status, and market capitalization. Combine with Search, Basic Info, Shareholders, Risk, Dynamics, and News Actors for investment research and compliance.
Pricing
from $2.00 / 1,000 listing records
Rating
0.0
(0)
Developer
Tarique
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
1
Monthly active users
22 days ago
Last modified
Categories
Share
What does tianyancha-listing do?
tianyancha-listing is a Chinese listed company and stock data scraper. Given a company gid, it extracts listing information from Tianyancha — stock name, security code, exchange, market board, listing status, and market capitalization — as structured JSON.
The output is one dataset row per listing, tagged with its Tianyancha company ID. Use it in Apify Console or automate public-company research through the Apify API, schedules, monitoring, and integrations.
Why use tianyancha-listing?
- No browser, no manual login — plain HTTP requests, so runs are fast and cheap.
- Clean structured JSON — every listing is flattened into its own dataset row, downloadable as JSON, CSV, Excel, XML, or HTML.
- Batch by company — fetch many
gidsin a single run. - Ready for automation — combine it with Apify scheduling, webhooks, and API access to power investment and compliance 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-listing
- 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 listing 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-listing --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 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 companies fetched concurrently. Preset and fallback: 8. |
Output
The Actor pushes one record per listing to the default dataset. A representative (abbreviated) output item looks like:
{"gid": 9519792,"shorthand": "Tencent Holdings","type": "Hong Kong stock","bondNum": "HK.00700","stockExchange": "Hong Kong Stock Exchange Main Board","listingStatus": "Actively listed","listingDate": "2004-06-16","totalMarketCapitalisation": "HKD 4.736 trillion"}
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 ID |
shorthand | Stock short name |
type | Listing market type |
bondNum | Stock code |
stockExchange | Stock exchange name |
listingStatus | Listing status |
listingDate | Listing date |
totalMarketCapitalisation | Total market capitalisation |
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— pair this with thetianyancha-searchActor to find companies by keyword, then feed theirids here. - Batch lookups — pass many
gidsin a single run; every listing is stored in the same dataset. - 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 endpoint 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.