Tianyancha Company Listing Info avatar

Tianyancha Company Listing Info

Pricing

$3.00 / 1,000 listings

Go to Apify Store
Tianyancha Company Listing Info

Tianyancha Company Listing Info

Fetches a company's stock/listing information from Tianyancha (天眼查) by company gid.

Pricing

$3.00 / 1,000 listings

Rating

0.0

(0)

Developer

NewLai

NewLai

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

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.

中文简介: 这是一个天眼查上市公司查询和股票信息 API,可批量采集股票名称、证券代码、证券交易所、上市板块、上市状态和市值等数据,适用于中国上市公司研究、投资分析和合规核验。

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 gids in 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.

How to use tianyancha-listing

  1. Open the Actor's Input tab in the Apify Console.
  2. Enter one or more company gids (e.g. [9519792, 9519793]).
  3. Click Start. The Actor fetches each company's listing info and stores it in the run's dataset.
  4. 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:

FieldTypeRequiredDescription
gidsarray<integer>YesTianyancha 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:

VariableDescription
TYC_CONCURRENCYMaximum 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": "腾讯控股",
"type": "港股",
"bondNum": "HK.00700",
"stockExchange": "香港交易所主板",
"listingStatus": "正常上市",
"listingDate": "2004-06-16",
"totalMarketCapitalisation": "47361.85亿港元"
}

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
gidTianyancha company ID
shorthandStock short name (股票简称)
typeListing market type (港股/A股)
bondNumStock code (股票代码)
stockExchangeStock exchange name
listingStatusListing status (正常上市/已退市)
listingDateListing date
totalMarketCapitalisationTotal market capitalisation

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 company. With Apify's free tier, occasional lookups cost nothing. For bulk lookups, 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

  • Get the right gid — pair this with the tianyancha-search Actor to find companies by keyword, then feed their ids here.
  • Batch lookups — pass many gids in 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.