Get Started with Using remotes
:
legisTaiwan
is an R package for
accessing Taiwan
Legislative Yuan API. The goal of legisTaiwan
is to
make it quickly and instantly download Taiwan’s legislative data,
digitized textual and video records for a research project and analyze
public policies.
install.packages("remotes")
remotes::install_github("davidycliao/legisTaiwan", force = TRUE)
library(legisTaiwan)
#> ## legisTaiwan v0.2.1 ##
#> ## An R package connecting to the Taiwan Legislative API. ##
Taiwan Legislative Yuan API (v2)
The Legislative Yuan API is transitioning from
https://ly.govapi.tw
to
https://v2.ly.govapi.tw
. While we are maintaining support
for functions that use the legacy API, please note that the old API
endpoint will eventually be deprecated. We recommend users to gradually
transition to the newer API versions as they become available.
- Legacy API (
ly.govapi.tw
) - Still functional but will not receive updates - New API (
v2.ly.govapi.tw
) - Current active development and maintenance
Statistical Information (統計資訊)
-
get_tly_stat()
: Fetch and Parse Legislative Yuan Statistics 取得並解析立法院統計資料
Legislators (立委為單位)
-
get_ly_legislator_detail()
: Retrieve Complete Historical Records of Legislators 取得立法委員完整歷史資料 -
get_ly_legislators_by_term()
: Get Legislators by Legislative Term 依屆期取得立法委員名單 -
get_ly_legislator_cosign_bills()
: Retrieve Legislator’s Co-sponsored Bills 取得立法委員連署法案 -
get_ly_legislator_bills()
: Get Bills Proposed by Legislator 取得立法委員提案法案
Bill (議案資料)
-
get_ly_bills()
: Fetch and Parse Legislative Yuan Bills 取得並解析立法院議案資料
Committees (委員會資料)
-
get_ly_committee_meets()
: Fetch Legislative Yuan Committee Meetings 取得立法院委員會會議資料 -
get_ly_committees_type()
: Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes 取得立法院委員會類別及職權範圍代碼
Interpellation (質詢資料)
-
get_ly_interpellations()
: Get Legislative Yuan Interpellation Records 取得立法院質詢紀錄
Taiwan Legislative Yuan API (v1)
We will provide comprehensive guides and documentation to help you migrate to the new API endpoints.
get_parlquestions()
: parliamentary questions asked by the legislators 提供議事日程本院委員之質詢事項資訊 (自第8屆)get_meetings()
: spoken meeting records 委員發言get_caucus_meetings()
: the meeting records of cross-caucus session 提供公報之黨團協商資訊 (自第8屆)get_executive_response()
: questions answered by the executives提供公報質詢事項行政院答復資訊 (自第8屆)get_public_debates()
: public debates 提供公報之國是論壇資訊,並包含書面意見自 (自第8屆)get_speech_video()
: full video information of meetings and committees 提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆)get_committee_record()
: the records of reviewed items in the committees 提供委員會會議審查之議案項目 (自第8屆)get_bills()
: the records of the bills 法律提案 (能取得最早日不詳,待檢查)get_bills_2()
: the records of legislators and the government bill proposals 提供委員及政府之議案提案資訊 (自第8屆)passed_legislation()
: legislation and information passed on the third reading 提供公報院會紀錄之三讀通過議案資訊。(自第8屆第1會期起) coming soonget_variable_info()
: the API’s endpoint user manuals 使用說明文件review_session_info()
: the session period and year in formatted in Minguo (ROC) calendar. 屆期年對照表get_legislators()
: legislator demographics 提供委員基本資料
How to Contribute
Contributions in the form of comments, code suggestions, and tutorial
examples are very welcome. Please note that the LeigsTaiwan
is released with the Contributor
Code of Conduct. By contributing to this project, you agree to abide
by its terms.