Discover/Com API
live

Com APIhkex.com.hk

Access real-time HKEX quotes, Hang Seng indices, company announcements, historical chart data, and daily quotation reports via a simple REST API.

Endpoint health
verified 3d ago
get_securities_list
get_market_indices
get_stock_quote
get_company_announcements
get_stock_chart_data
7/7 passing latest checkself-healing
Endpoints
7
Updated
21d ago

What is the Com API?

This API exposes 7 endpoints covering live Hong Kong Stock Exchange data, from real-time quotes for individual securities to market-wide index snapshots. The get_stock_quote endpoint returns over a dozen fields per stock including ISIN, chairman, listing date, P/E ratio, dividend yield, and a business summary. Other endpoints handle announcement retrieval, intraday and historical chart data, and the full Daily Quotations report for the Main Board.

Try it

No input parameters required.

api.parse.bot/scraper/cd225318-0b93-40b5-9d1e-08aa24b02127/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/cd225318-0b93-40b5-9d1e-08aa24b02127/get_market_indices' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace hkex-com-hk-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.hkex_market_data_api import HKEX, ChartSpan, BoardType

hkex = HKEX()

# List current market indices
for index in hkex.indexes.list():
    print(index.ric, index.name, index.last_price, index.percent_change)

# List top stocks by turnover
for stock in hkex.stocks.list(limit=5):
    print(stock.symbol, stock.name, stock.last_price, stock.pe_ratio)

# Search for a stock
for result in hkex.stocks.search(query="tencent"):
    print(result.code, result.name, result.stock_id)

# Get detailed quote for Tencent
tencent = hkex.stocks.get(symbol="700")
chart = tencent.chart(span=ChartSpan.ONE_MONTH)
print(chart.datalist, chart.responsecode)

# Get announcements for a stock
for ann in tencent.announcements(from_date="20260601"):
    print(ann.title, ann.date, ann.link)

# Fetch daily quotations report
report = hkex.stocks.daily_report(date="260609", board=BoardType.MAIN)
print(report.content)
All endpoints · 7 totalmissing one? ·

Retrieve real-time major market indices from HKEX, including Hang Seng Index, HSCEI, Hang Seng TECH Index, and others. Returns current price, net change, percent change, and trading time for each index. Data refreshes during trading hours (09:30–16:00 HKT).

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "indices": "array of index objects with ric, nm_l, ls, nc, pc, date, tm",
    "responsecode": "string status code from upstream API (000 = success)"
  },
  "sample": {
    "data": {
      "indices": [
        {
          "hc": "24,565.90",
          "hi": "24,505.96",
          "lo": "24,207.03",
          "ls": "24,407.96",
          "nc": "-157.94",
          "op": "24,442.52",
          "pc": "-0.64",
          "tm": "16:09",
          "fut": true,
          "ric": ".HSI",
          "date": "10 Jun 2026",
          "nm_l": "Hang Seng Index",
          "nm_s": "Hang Seng Index"
        }
      ],
      "responsecode": "000"
    },
    "status": "success"
  }
}

About the Com API

Market Indices and Securities

The get_market_indices endpoint returns an array of index objects covering the Hang Seng Index, HSCEI, Hang Seng TECH Index, and others. Each object includes ric, nm_l (name), ls (last price), nc (net change), pc (percent change), and a timestamp. The get_securities_list endpoint returns the top 100 equities by turnover, with fields for symbol, name, last price, net/percent change, P/E ratio, yield, market cap, and currency — useful for building turnover-ranked dashboards or screening tables.

Stock Quotes and Charts

For individual securities, get_stock_quote accepts a symbol (e.g. 700 for Tencent, 9988 for Alibaba) and returns a quote object with open, high, low, close, and previous close alongside company profile fields: ISIN, sector classification, registrar, listing date, and a business summary paragraph. get_stock_chart_data returns OHLCV arrays ([timestamp_ms, open, high, low, close, volume, turnover]) for spans ranging from 1-day intraday (1-minute intervals via interval=0) to 1 year. Both span and interval parameters are optional integers passed as strings.

Announcements and Reports

The get_company_announcements endpoint queries HKEXnews for a given stock code and optional from_date/to_date range (format YYYYMMDD). Each result includes the announcement title, date, stock name, and a direct PDF link. The get_daily_quotations endpoint returns the full-text Daily Quotations report for the Main Board for a given trading date (format YYMMDD), covering market highlights, full quotation tables, and sales records. Only the main board type is currently supported.

Search

The search_stocks endpoint accepts a keyword or partial code and returns matching equities, warrants, CBBCs, and structured products. Each result includes stockId, a zero-padded code, and name. The more field indicates whether additional results exist beyond the current page.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for hkex.com.hk — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when hkex.com.hk changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official hkex.com.hk API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Hang Seng Index ticker using get_market_indices ls, nc, and pc fields.
  • Screen the top 100 HKEX equities by turnover using get_securities_list with P/E and market cap filters.
  • Display a full stock profile card with ISIN, sector, chairman, and business summary from get_stock_quote.
  • Plot intraday 1-minute OHLCV candlestick charts using get_stock_chart_data with span=0 and interval=0.
  • Monitor company filing activity by polling get_company_announcements with a date range and surfacing new PDF links.
  • Archive the HKEX Daily Quotations report text for a given trading session using get_daily_quotations.
  • Implement a securities search autocomplete using search_stocks results for equities, warrants, and CBBCs.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does HKEX have an official developer API?+
HKEX does not publish a general-purpose public developer API with open registration. Market data is distributed commercially through licensed vendors. This API provides structured access to data from the HKEX public web properties.
What does `get_stock_quote` return beyond the price?+
In addition to price fields (last, open, high, low, net change, percent change, previous close), the response includes company profile data: ISIN, sector classification, listing date, chairman name, registrar, P/E ratio, dividend yield, market cap, and a plain-text business summary.
Does `get_daily_quotations` cover the GEM board or only the Main Board?+
The endpoint currently supports only the Main Board (board=main). GEM board quotation reports are not covered. You can fork this API on Parse and revise it to add a GEM board endpoint.
Are derivatives, futures, or options data available through this API?+
Not currently. The API covers equity securities, indices, and structured products (warrants, CBBCs) surfaced through search_stocks and get_securities_list, but does not include HKEX derivatives or futures contract data. You can fork it on Parse and revise to add the missing endpoint.
How far back does `get_stock_chart_data` go, and what granularity is available?+
The span parameter supports 1 Day, 5 Days, 1 Month, 3 Months, 6 Months, YTD, and 1 Year. The 1-Day span supports 1-minute granularity via interval=0. Longer spans return daily-resolution data points as [timestamp_ms, open, high, low, close, volume, turnover] arrays.
Page content last updated . Spec covers 7 endpoints from hkex.com.hk.
Related APIs in FinanceSee all →
sse.com.cn API
Monitor Shanghai Stock Exchange market activity with real-time equity quotes, index performance data, and daily trading statistics. Search for specific securities and view comprehensive market overviews to track stock prices and exchange trends.
wap.eastmoney.com API
Access real-time stock quotes, historical K-line charts at 1-minute intervals, and tick data for Chinese securities markets and beyond. Search specific securities, retrieve sector performance, view order books, and pull comprehensive stock lists to power your financial analysis and trading applications.
marketindex.com.au API
Track ASX stock market data including company information, stock prices, dividends, director transactions, and sector performance. Search for stocks, monitor upcoming dividends, view market announcements, and analyze investment opportunities across the Australian securities exchange.
asx.com.au API
Access Australian Securities Exchange (ASX) market data, including equity prices, index summaries, company details, market announcements, and company directory listings. Retrieve upcoming IPO and float information alongside comprehensive data on all ASX-listed companies.
hkab.org.hk API
Access real-time Hong Kong HIBOR interest rates and daily exchange rates to stay updated on key financial benchmarks. Get the latest market highlights and rate information directly from the Hong Kong Association of Banks to inform your financial decisions.
stockanalysis.com API
Access comprehensive stock market data including real-time financials, income statements, statistics, and IPO calendars to research individual stocks and identify market movers. Search stocks, view detailed overviews, and monitor premarket activity all in structured, easy-to-use format.
yahoofinance.com API
Access live stock quotes, historical price data, company profiles, and financial news for any ticker symbol. Supports real-time market data, OHLCV history across configurable intervals, detailed company fundamentals, and news aggregation across global exchanges.
idx.co.id API
Access real-time and historical data from the Indonesia Stock Exchange (IDX). Retrieve stock listings, daily trading summaries, market indices, company profiles, financial and annual reports, corporate event calendars, announcements, IPO data, and market overviews.