Voting Result Database

This data set contains voting results of the Council, House Committee, Finance Committee and its Subcommittees since the Fifth Legislative Council. It consists of the motions moved, questions put, division of votes and votes of individual Members. For use of the data provided by the Legislative Council, please note the disclaimer and copyright notice.
The information can be obtained in the form of open data via web application programming interface (API) as described in this page.
For enquiry, please e-mail to pid@legco.gov.hk.
Expand all
Usage tips of Web Application Programming Interface (API)
Down arrow
Note:
When Chinese characters are used in a web api command, please perform URL encoding for it first, or use a browser such as Chrome that can encode Chinese characters automatically.

The open data web api can be run at:
To get the meta data schema of the dataset, please run the following:
The following query string options can be applied:
  • $format - specify whether the data to be returned in json or xml format, e.g. $format=json
  • $top=N - select only the first N entries of the set, where N is a positive integer, e.g. $top=10
  • $skip=N - select only the remaining entries (starting with Entry N+1) where N is a positive integer, e.g. $skip=10
  • $orderby - what values are used to order the retrieved data, e.g. $orderby=vote_time
  • $select - select specific fields to be returned, e.g. $select=motion_en,name_en,vote
  • $filter - select specific entries according to provided conditions, e.g. $filter=year(start_date) eq 2014
  • $inlinecount - specify "$inlinecount=allpages" to include the total number of records in the returned data
For available operators and functions to be used with $filter option, please refer to the documentation of the Open Data Protocol.
Examples
Down arrow
The following examples illustrate some of the ways to retrieve data according to the Open Data Protocol.

Data Resources

Voting results of Council meetings of the Sixth Legislative Council (2016 - 2021)
XML JSON
Voting results of Council meetings of the Fifth Legislative Council (2012 - 2016)
XML JSON
Voting results of Finance Committee meetings of the Sixth Legislative Council (2016 - 2021)
XML JSON
Voting results of Finance Committee meetings of the Fifth Legislative Council (2012 - 2016)
XML JSON
Voting results of House Committee meetings of the Sixth Legislative Council (2016 - 2021)
XML JSON
Voting results of House Committee meetings of the Fifth Legislative Council (2012 - 2016)
XML JSON
Voting results of Establishment Subcommittee meetings of the Sixth Legislative Council (2016 - 2021)
XML JSON
Voting results of Establishment Subcommittee meetings of the Fifth Legislative Council (2012 - 2016)
XML JSON
Voting results of Public Works Subcommittee meetings of the Sixth Legislative Council (2016 - 2021)
XML JSON
Voting results of Public Works Subcommittee meetings of the Fifth Legislative Council (2012 - 2016)
XML JSON