﻿# 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](https://github.com/jackyor/hkdataatlas-sdks) · [npm](https://www.npmjs.com/package/hkdataatlas) · [PyPI](https://pypi.org/project/hkdataatlas/)

## TypeScript

```sh
npm install hkdataatlas
```

```ts
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

```sh
uv add hkdataatlas
```

Or use pip: `pip install hkdataatlas`.

```python
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](https://github.com/jackyor/hkdataatlas-sdks/tree/main/packages) and the [complete README](https://github.com/jackyor/hkdataatlas-sdks#usage), or [browse API reference](/reference/). Publisher terms and API availability apply.
