API Detailed Documentation
API URL:
https://api.hkma.gov.hk/public/bank-svf-info/banks-branch-locator?lang=enRequest Parameters (Mandatory)
Parameter Name | Description |
---|---|
lang | To input the language selected to output. Format: lang=(en|tc|sc) Example: lang=tc |
Output Fields (JSON) | Swagger Format |
Name | Type | Unit | Description |
---|---|---|---|
district | Text | District | |
bank_name | Text | Name of Bank | |
branch_name | Text | Name of Branch | |
address | Text | Address | |
service_hours | Text | Service hours | |
latitude | Text | Decimal degrees (DD) e.g. 22.302711 |
Latitude information |
longitude | Text | Decimal degrees (DD) e.g. 114.177216 |
Longitude information |
API Examples
Javascript Example
$.ajax({url: 'https://api.hkma.gov.hk/public/bank-svf-info/banks-branch-locator?lang=en',dataType:'json',success:function(data){alert('results found:'+ data.result.datasize)}});
Python Example
import urllib.requesturl = 'https://api.hkma.gov.hk/public/bank-svf-info/banks-branch-locator?lang=en'with urllib.request.urlopen (url) as req:print (req.read())