Tender Invitation and Notice of Award of Contracts

API Detailed Documentation

API URL:

https://api.hkma.gov.hk/public/tender-invitations?lang=en&segment=tender

Request Parameters (Mandatory)

Parameter Name Description
lang To input the language selected to output.
Format: lang=(en|tc|sc)
Example: lang=tc
segment To input the segment selected to output.
Format: segment=(tender|notice)
Example: segment=tender
Output Fields (JSON) Swagger Format
Name Type Description
titleStringTitle for the RSS
linkhyperlinkRelated hyper link for RSS
dateDateDate in ISO format yyyy-mm-dd. For example, 2018-03-08

API Examples

Javascript Example

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

Python Example

import urllib.request
url = 'https://api.hkma.gov.hk/public/tender-invitations?lang=en&segment=tender'
with urllib.request.urlopen (url) as req:
print (req.read())

How to use the APIs

To learn more, please visit API documentation.