Real-time and Archives of Taiwan Legislative Data in R
legisTaiwan
is designed to streamline access to real-time archives of Taiwan’s legislative data, drawing inspiration from the UK’s TheyWorkForYou API. As the package interfaces directly with Legislative Yuan API endpoints, a stable internet connection is required. Users are welcome to contact the author for any API implementation assistance.
legisTaiwan
套件旨在簡化台灣立法院資料的即時存取。透過在 R 環境中提供直接連接立法院開放資料 API 的便捷管道,本套件不僅致力於提升立法問責制和公共透明度,更為學術研究者提供了系統化分析立法數據的工具。研究人員可以輕鬆獲取並分析立法委員的表決紀錄、問政質詢、法案提案等資料,有助於國會研究與量化研究和實證分析。由於套件需要直接與由歐噴公司開發開源的立法院 API 介接,使用時請確保網路連線穩定。如有任何 legisTaiwan R套件使用上的問題,歡迎open issue 在githut 上或我們聯繫。
Get Started with Using remotes
:
install.packages("remotes")
remotes::install_github("davidycliao/legisTaiwan", force = TRUE)
library(legisTaiwan)
#> ## legisTaiwan ##
#> ## An R package connecting to the Taiwan Legislative API. ##
Talks & Presentations:
28 Apr 2025: R-Ladies Taipei 讓分析台灣國會數據更透明 —
legisTaiwan
R 套件 (Shaka Y.J. Li and Yen-Chieh Liao)11-14 Sept 2025: Legislative Studies Session , Annual Conference of American Political Science Association, Vancouver, CA. (Shaka Y.J. Li )
Notice:
- The Legislative Yuan API has transitioned from
https://ly.govapi.tw
tohttps://v2.ly.govapi.tw
. While we are still supporting functions that use the legacy API, please note that according to official notice, the old API endpoint will not be maintained. We recommend users to gradually transition to the newer functions attached with API V2.
Support:
如果您覺得這個套件對您的研究有幫助,歡迎考慮藉由開放文化基金會(OCF)小額或定額捐款給g0v 揪松團、台灣公民監督國會聯盟或報導者,支持台灣獨立媒體與數位公民組織的持續營運和國會監督工作。如果您對資料分析有任何問題,也歡迎與我們聯繫。
If you find legisTaiwan
helpful for your research, you are welcome to consider making a small donation to Taiwan g0v hackathons, the Taiwan Congress Watch Foundation , the Taiwan Congress Watch Foundation or The Reporter support Taiwan’s independent media operations, g0v civic community, and parliamentary oversight work. If you have any questions about data analysis, feel free to contact us for discussion.