國會調查兵團開放API
編輯歷史
| 時間 | 作者 | 版本 |
|---|---|---|
| 2015-12-25 09:48 – 09:51 | r1073 – r1081 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-04-17 16:08 – 16:10 | r1022 – r1072 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-04-17 16:08 | r1021 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-04-17 15:49 – 16:08 | r677 – r1020 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-04-07 13:49 – 13:50 | r659 – r676 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-02-14 01:49 – 01:49 | r652 – r658 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-02-05 17:07 – 17:07 | r650 – r651 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-02-05 15:41 – 15:58 | r600 – r649 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-02-05 15:36 | r599 | |
顯示 diff(diff 過大,略過)
|
||
| 2015-02-05 13:55 – 15:36 | r21 – r598 | |
顯示 diff 國會調查兵團開放API
+
+ *介紹
+
+ 這邊是國會調查兵團網站的開放API,歡迎介接。
+ 內容以CC-BY-ND 3.0 TW釋出。
+
+ 網站code以MIT釋出。
+
+ https://github.com/billy3321/cic-website
+
+
+ *API內容
+
+ 立委列表
https://cic.tw/legislators.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * legislators:
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *count: 筆數
+
+
+
+ 有記錄的立委
+ https://cic.tw/legislators/has_records.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * legislators:
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *count: 筆數
+
+
+
+ 無記錄的立委
+ https://cic.tw/legislators/no_record.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * legislators:
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *count: 筆數
+
+
+ 單一立委
+ https://cic.tw/legislators/:id.json
+ ex:
+ https://cic.tw/legislators/1738.json
+
+ 立委使用g0v的資料,id相同。
+
+
+ *回應
+ ---
+ * status: "success"
+ * legislator:
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *elections
+ *legislator_id: 立委id
+ *id: 選舉id
+ *ad_id: 屆次id
+ *party_id: 黨id
+ *constituency: 參選區域
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+ *questions: 質詢列表,內容請參見下面
+ *entries: 新聞列表,內容請參見下面
+ *videos: 影片列表,內容請參見下面
+
+
+ 單一立委的新聞記錄
+ https://cic.tw/legislators/:id/entries.json
+ ex:
+ https://cic.tw/legislators/1738/entries.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ * status: "success"
+ * entries:
+ *id: 新聞id
+ *title: 新聞標題
+ *content: 新聞內容
+ *source_url: 新聞來源網址
+ *source_name: 新聞來源名稱
+ *date: 新聞日期
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ * count: 新聞筆數
+
+
+ 單一立委的影片記錄
+ https://cic.tw/legislators/:id/videos.json
+ ex:
+ https://cic.tw/legislators/1738/videos.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * videos:
+ *id: 影片id
+ *title: 影片標題
+ *content: 影片內容
+ *video_type: 影片種類:"ivod" or "news"
+ *committee_id: 委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *youtube_url: youtube網址
+ *youtube_id: youtube id
+ *image: 影片縮圖
+ *ivod_url: ivod網址
+ *source_url: 來源網址
+ *source_name: 來源名稱
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *date: 影片發生時間
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *target: 質詢對象
+ *ad_session:
+ *id: 會期id
+ *name: 會期名稱
+ *ad_id: 屆次id
+ *date_start: 會期開始時間
+ *date_end: 會期結束時間
+ *committee:
+ *id: 委員會id
+ *name: 委員會名稱
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+ * count: 影片筆數
+
+
+
+ 單一立委的質詢記錄
+ https://cic.tw/legislators/:id/questions.json
+ ex:
+ https://cic.tw/legislators/1738/questions.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * questions:
+ * -
+ *id: 質詢id
+ *title: 質詢標題
+ *content: 質詢內容
+ *committee_id: 所屬委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *ivod_url: ivod網址
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *target: 質詢對象
+ *date: 質詢發生時間
+ *comment: 意見
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *ad_session:
+ *id: 會期id
+ *name: 會期名
+ *ad_id: 會期所屬屆次id
+ *date_start: 會期開始
+ *date_end: 會期結束
+ *committee:
+ *id: 委員會id
+ *name: 委員會名字
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+ * count: 質詢筆數
+
+
+
+ 所有的新聞記錄
+ https://cic.tw/entries.json
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ * status: "success"
+ * entries:
+ *id: 新聞id
+ *title: 新聞標題
+ *content: 新聞內容
+ *source_url: 新聞來源網址
+ *source_name: 新聞來源名稱
+ *date: 新聞日期
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ * count: 新聞筆數
+
+
+ 單一新聞記錄
+ https://cic.tw/entries/:id.json
+ ex:
+ https://cic.tw/entries/1.json
+
+ *回應
+ * status: "success"
+ * entry:
+ *id: 新聞id
+ *title: 新聞標題
+ *content: 新聞內容
+ *source_url: 新聞來源網址
+ *source_name: 新聞來源名稱
+ *date: 新聞日期
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+
+
+ 所有的質詢記錄
+ https://cic.tw/questions.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * questions:
+ * -
+ *id: 質詢id
+ *title: 質詢標題
+ *content: 質詢內容
+ *committee_id: 所屬委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *ivod_url: ivod網址
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *target: 質詢對象
+ *date: 質詢發生時間
+ *comment: 意見
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *ad_session:
+ *id: 會期id
+ *name: 會期名
+ *ad_id: 會期所屬屆次id
+ *date_start: 會期開始
+ *date_end: 會期結束
+ *committee:
+ *id: 委員會id
+ *name: 委員會名字
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+ * count: 質詢筆數
+
+ 單一質詢記錄
+ https://cic.tw/questions/:id.json
+ ex:
+ https://cic.tw/questions/1.json
+
+
+ *回應
+ ---
+ * status: "success"
+ * question:
+ * -
+ *id: 質詢id
+ *title: 質詢標題
+ *content: 質詢內容
+ *committee_id: 所屬委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *ivod_url: ivod網址
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *target: 質詢對象
+ *date: 質詢發生時間
+ *comment: 意見
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *ad_session:
+ *id: 會期id
+ *name: 會期名
+ *ad_id: 會期所屬屆次id
+ *date_start: 會期開始
+ *date_end: 會期結束
+ *committee:
+ *id: 委員會id
+ *name: 委員會名字
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+
+ 所有的影片記錄
+ https://cic.tw/videos.json
+
+ *GET參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * videos:
+ *id: 影片id
+ *title: 影片標題
+ *content: 影片內容
+ *video_type: 影片種類:"ivod" or "news"
+ *committee_id: 委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *youtube_url: youtube網址
+ *youtube_id: youtube id
+ *image: 影片縮圖
+ *ivod_url: ivod網址
+ *source_url: 來源網址
+ *source_name: 來源名稱
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *date: 影片發生時間
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *target: 質詢對象
+ *ad_session:
+ *id: 會期id
+ *name: 會期名稱
+ *ad_id: 屆次id
+ *date_start: 會期開始時間
+ *date_end: 會期結束時間
+ *committee:
+ *id: 委員會id
+ *name: 委員會名稱
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
+ * count: 影片筆數
+
+
+ 單一影片記錄
+ https://cic.tw/videos/:id.json
+ ex:
+ https://cic.tw/videos/1.json
+
+ *參數
+ limit:限制筆數
+ offset:從第幾筆開始
+ query:查詢立委姓名
+
+ *回應
+ ---
+ * status: "success"
+ * video:
+ *id: 影片id
+ *title: 影片標題
+ *content: 影片內容
+ *video_type: 影片種類:"ivod" or "news"
+ *committee_id: 委員會id
+ *ad_session_id: 會期id
+ *meeting_description: 會議內容
+ *youtube_url: youtube網址
+ *youtube_id: youtube id
+ *image: 影片縮圖
+ *ivod_url: ivod網址
+ *source_url: 來源網址
+ *source_name: 來源名稱
+ *time_start: 開始時間
+ *time_end: 結束時間
+ *date: 影片發生時間
+ *created_at: 建立時間
+ *updated_at: 更新時間
+ *target: 質詢對象
+ *ad_session:
+ *id: 會期id
+ *name: 會期名稱
+ *ad_id: 屆次id
+ *date_start: 會期開始時間
+ *date_end: 會期結束時間
+ *committee:
+ *id: 委員會id
+ *name: 委員會名稱
+ *legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫legislators
+ *id: 立委id
+ *name: 立委名字
+ *image: 圖片
+ *in_office: 是否在職
+ *party:
+ *id: 黨id
+ *name: 黨名
+ *image: 黨圖片
+ *abbreviation: 黨縮寫
+ *ad:
+ *id: 屆次id
+ *name: 屆次名
+ *vote_date:投票日期
+ *term_start: 任期開始
+ *term_end: 任期結束
|
||
| 2015-02-05 09:26 – 09:27 | r1 – r20 | |
顯示 diff- Untitled
-
- This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
+ 國會調查兵團開放API
+ https://cic.tw/legislators.json
|
||
| 2015-02-05 09:26 | r0 | |
顯示 diff+ Untitled
+ This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
|
||