Trade with the United Kingdom

API Detailed Documentation

API URL:

API Data Enquiry

Output Fields (JSON) Swagger Format
 
Name Type Unit Of Measure Description
Tr_yr Date Year
Tr_impukd_a Number HK Dollars  Import from UK ('000 HK$) 
Tr_impukp_a Number UK Pound
Import from UK ('000 UKPound) 
Tr_expukd_a Number HK Dollars  Export to UK ('000 HK$) 
Tr_expukp_a Number UK Pound  Export to UK ('000 UKPound) 
Tr_ukimptl_a Number Million Pound UK Total Import (Million Pound) 
Tr_ukexptl_a Number Million Pound  UK Total Export (Million Pound) 
Tr_ukdomexp_a Number Million Pound  UK Domestic Export (Million Pound) 
Tr_ukreexp_a Number Million Pound  UK Re-export (Million Pound) 
Footnotes
Trade with the United Kingdom
Unit: Trade between the UK and HK: thousand HK dollars, thousand UK Pounds.
Total trade figures for the UK: million UK Pound.
Period: 1843-1940 
Source:  C.F. Joseph Tom (1964), The Entrepot Trade and the Monetary Standards of Hong Kong, 1842-1941: Appendix 1.
Javascript Example
$.ajax({
url: 'https://api.hkma.gov.hk/public/hkimr/trade-uk?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/hkimr/trade-uk?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())