Telephone Line

API Detailed Documentation

API URL:

API Data Enquiry

Output Fields (JSON) Swagger Format
 
Name Type Unit Of Measure Description
Tel_yr Date Year
Tel_exline_a Number   Exchange Lines 
Tel_extn_a Number   Extensions 
Tel_totstn_a Number   Total Stations 
Footnotes
Telephone Lines, Extensions, Stations in Hong Kong
Period: 1925-2002
Year-end Figures
Source: Hong Kong Statistics 1947-67 (1925-67), Hong Kong Annual Digest of Statistics (1968-2002).
Source for HK Statistics 1947-67: Hong Kong Telephone Co., Ltd.
Javascript Example
$.ajax({
url: 'https://api.hkma.gov.hk/public/hkimr/tel-line?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/tel-line?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())