Coin Cart Schedule

API Detailed Documentation

API URL:

https://api.hkma.gov.hk/public/coin-cart-schedule?lang=en

Request 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 Description
start_dateDateStart date
Date in ISO format yyyy-mm-dd, For example, 1997-01-01
end_dateDateEnd date
Date in ISO format yyyy-mm-dd, For example, 1997-01-01
cart_noNumberCart No
districtStringDistrict
addressStringAddress
latitudeNumberLatitude
longitudeNumberLongitude
remarksStringRemarks

API Examples

Javascript Example

$.ajax({
url: 'https://api.hkma.gov.hk/public/coin-cart-schedule?lang=en&offset=0',
dataType:'json',
success:function(data){
alert('results found:'+ data.result.datasize)
}
});

Python Example

import urllib.request
url = 'https://api.hkma.gov.hk/public/coin-cart-schedule?lang=en&offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())

How to use the APIs

To learn more, please visit API documentation.