Trade with Japan

API Detailed Documentation

API URL:

API Data Enquiry

Output Fields (JSON) Swagger Format
 
Name Type Unit Of Measure Description
Tr_yr Date Year
Tr_japimptl_a Number Japanese Yen  Total Japan Import 
Tr_japexptl_a Number Japanese Yen  Total Japan Export 
Tr_japimpchi_a Number Japanese Yen  Japan Import from China 
Tr_japexpchi_a Number Japanese Yen  Japan Export to China 
Tr_japimpmanc_a Number Japanese Yen  Japan Import from Manchuria
Tr_japexpmanc_a Number Japanese Yen  Japan Export to Manchuria 
Tr_japimpkt_a Number Japanese Yen  Japan Import from Kouangtoung 
Tr_japexpkt_a Number Japanese Yen  Japan Export to Kouangtoung 
Tr_japimphk_a Number Japanese Yen  Japan Import from HongKong 
Tr_japexphk_a Number Japanese Yen  Japan Export to Hong Kong 
Footnotes
Trade with Japan
Unit: Japanese Yen
Period: 1883-1938 
Source:  Naikaku Tōkeikyoku (Japan), Resume Statistique de l’empire du Japon.
Javascript Example
$.ajax({
url: 'https://api.hkma.gov.hk/public/hkimr/trade-japan?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-japan?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())