HK Data Atlas SDK

Use Hong Kong public APIs with Python or TypeScript. Install one hkdataatlas package per language, then choose a publisher module.

GitHub · npm · PyPI

TypeScript

npm install hkdataatlas
import { banksBranchLocator } from 'hkdataatlas/hkma';
const response = await banksBranchLocator.getBanksBranchLocator(
  { lang: 'en', pagesize: 1 },
  { signal: AbortSignal.timeout(15000) },
);
console.log(response.status, response.data);

Python

uv add hkdataatlas

Or use pip: pip install hkdataatlas.

from hkdataatlas.hkma.banks_branch_locator import Client
from hkdataatlas.hkma.banks_branch_locator.api.default import get_banks_branch_locator

with Client(base_url="https://api.hkma.gov.hk/public/bank-svf-info") as client:
    response = get_banks_branch_locator.sync_detailed(client=client, lang="en", pagesize=1)
    print(response.status_code, response.parsed)

These examples query the Hong Kong Monetary Authority’s bank branch directory.

Browse modules and methods and the complete README, or browse API reference. Publisher terms and API availability apply.