Version:1.1


格式

JSON API(使用fast_jsonapi產生)

縣市議員候選人資料

欄位

  • name:姓名
  • avatar:大頭照(300x300)
  • region:選區
  • vote_number:號碼(抽籤後產生)
  • info:簡述
  • title:現職
  • experience:經歷
  • school:學歷
  • social_media:社群媒體
  • contact:聯絡方式
  • relationships:
    • images:各候選人圖片,最多8張(300x200)
    • city:參選縣市
    • videos:各候選人影片(Youtube)

全體:https://npp.vote/api/v1/candidates

範例

{"data":{"id":"54","type":"candidate","attributes":{"name":"張志翔","region":"東區","vote_number":"16","info":"我是張志翔,我決定參選嘉義市東區市議員。\r\n\r\n在嘉義生活了十多年,認識了許多在地的朋友,這些朋友們,有些與我一樣留在嘉義奮鬥,大部分則是選擇離開家鄉打拚。\r\n\r\n近幾年來我發現,願意回來嘉義的朋友很多,但實際上真正能夠回家的又有多少呢?留在嘉義的朋友實際上有許多人都是咬緊牙關在苦撐。\r\n\r\n與他們對家鄉的愛在對抗的,是勞動權益的低落,是薪資待遇的不公,是買房安居的困難。\r\n\r\n之所以決定參加本次選舉,就是為了解決這些問題,讓嘉義市成為一個能夠讓青年樂意回來的城市。\r\n\r\n我和在嘉義市生活的多數人沒有什麼不同。\r\n我是個學貸族,在屆滿30歲時才努力將學貸全償還完。\r\n我是個租屋族,因為在嘉義市要買個自己的小窩好難。\r\n我是個機車族,因為我覺得在嘉義市找停車位好麻煩。\r\n\r\n我也曾經質疑過自己為何不離開,追根究柢到最後,我才知道是我對這塊土地,以及在這塊土地上生活著忙碌著的人們的愛。\r\n這次選舉,我將代表的不只是時代力量,更是在螢幕前的你,所有與我一樣喜歡這個城市的朋友。\r\n2018,請與我一同努力。\r\n\r\n今年,請與我一起改變嘉義市議會。\r\n\r\n1. 議會透明 \r\n2. 勞權提升 \r\n3. 交通改善\r\n4. 文化發揚\r\n\r\n","title":"職業軍人-工兵中士","experience":"1223勞工大遊行嘉義專車招集人","school":"國立嘉義大學中國文學系\r\n","social_media":{"line":"","website":"https://winforchiayi2018.npp.vote/","facebook":"https://www.facebook.com/winforchiayi2018/","instagram":""},"contact":{"fax":"","email":"[email protected]","phone":"0963681205"},"avatar":"https://npp.vote/system/candidates/avatars/000/000/054/original/chiayi-1.png?1524567144"},"relationships":{"city":{"data":{"id":"13","type":"city"}},"images":{"data":[]},"videos":{"data":[{"id":"5","type":"video"}]}}}}

個別:https://npp.vote/api/v1/candidate/:id

ID對照表

[ { "id": 3, "name": "陳薇仲" }, { "id": 12, "name": "林亮君" }, { "id": 13, "name": "劉祐龍" }, { "id": 15, "name": "簡智翔" }, { "id": 16, "name": "宋國鼎" }, { "id": 17, "name": "簡嘉佑" }, { "id": 18, "name": "李國禎" }, { "id": 19, "name": "廖郁賢" }, { "id": 20, "name": "鍾政翰" }, { "id": 21, "name": "林易瑩" }, { "id": 22, "name": "林于凱" }, { "id": 23, "name": "林子盟" }, { "id": 24, "name": "蔡尚至" }, { "id": 25, "name": " 林高捷" }, { "id": 26, "name": "莊建威" }, { "id": 27, "name": "林瑞文" }, { "id": 28, "name": "彭盛韶" }, { "id": 30, "name": "林穎孟" }, { "id": 31, "name": "蔡惠婷" }, { "id": 34, "name": "廖子齊" }, { "id": 37, "name": "林彥甫" }, { "id": 38, "name": "連郁婷" }, { "id": 40, "name": "許皓甯" }, { "id": 42, "name": "吳佩芸" }, { "id": 43, "name": "歐志銘" }, { "id": 44, "name": "林正芳" }, { "id": 45, "name": "陳志明" }, { "id": 46, "name": "吳崢" }, { "id": 47, "name": "蕭新晟" }, { "id": 48, "name": "黃郁芬" }, { "id": 51, "name": "曾玟學" }, { "id": 54, "name": "張志翔" }, { "id": 58, "name": "黃捷" }, { "id": 64, "name": " 張祐銓" }, { "id": 65, "name": "唐聖捷" }, { "id": 67, "name": "曾柏瑜" }, { "id": 68, "name": "吳韋達" }, { "id": 77, "name": "黃智姍" }, { "id": 78, "name": "黃瑞誠" }, { "id": 79, "name": "陳珊珊" } ]
參選縣市

全體:https://npp.vote/api/v1/cities

範例

{"data":{"id":"1","type":"city","attributes":{"name":"基隆市","position":1},"relationships":{"candidates":{"data":[{"id":"3","type":"candidate"}]}}}}

個別:https://npp.vote/api/v1/city/:id

ID對照表

[ { "id": 1, "name": "基隆市" }, { "id": 2, "name": "台北市" }, { "id": 3, "name": "新北市" }, { "id": 4, "name": "桃園市" }, { "id": 5, "name": "新竹縣" }, { "id": 6, "name": "新竹市" }, { "id": 7, "name": "苗栗縣" }, { "id": 8, "name": "台中市" }, { "id": 9, "name": "彰化縣" }, { "id": 11, "name": "雲林縣" }, { "id": 12, "name": "嘉義縣" }, { "id": 13, "name": "嘉義市" }, { "id": 14, "name": "台南市" }, { "id": 15, "name": "高雄市" }, { "id": 16, "name": "屏東縣" }, { "id": 17, "name": "宜蘭縣" }, { "id": 18, "name": "花蓮縣" }, { "id": 19, "name": "台東縣" }, { "id": 20, "name": "澎湖縣" } ]