Discover/hkex.com.hk API
live

hkex.com.hk 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.

Endpoints
7
Updated
26d ago
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.
Use it in your codegrab 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'
All endpoints · 7 totalclick to expand

Retrieve real-time major market indices from HKEX, including Hang Seng Index, HSCEI, Hang Seng TECH Index, and others.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "indices": "array of index objects with ric, nm_l, ls (last price), nc (net change), pc (percent change), date, tm (time)",
    "responsecode": "string status code from upstream API (000 = success)"
  },
  "sample": {
    "data": {
      "indices": [
        {
          "hc": "26,111.84",
          "hi": "26,072.24",
          "lo": "25,734.16",
          "ls": "25,776.53",
          "nc": "-335.31",
          "op": "26,008.32",
          "pc": "-1.28",
          "tm": "16:08",
          "fut": true,
          "ric": ".HSI",
          "date": "30 Apr 2026",
          "nm_l": "Hang Seng Index",
          "nm_s": "Hang Seng Index"
        }
      ],
      "responsemsg": "",
      "responsecode": "000"
    },
    "status": "success"
  }
}

About the hkex.com.hk 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.

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.

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,000250 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.