**近期戰況** ---- ![截圖 2024-03-25 下午9.52.47](https://hackmd.io/_uploads/B1pyfbJkA.png) * **URL** https://event-api.vpgame.com/api/v1/schedule/lol/preview deprecated https://www.vpgame.com/schedule/sha/dota2/pro/webservice/lol/schedule/preview * **Method:** `GET` * **URL Params** **Required:** `as= timestamp` // anti crawler seed `cp= md5(parseInt(as * 2 / 3 + 4 - 5))` // anti crawler secret **Optional:** `schedule_id=12345` `length=50` * **Success Response:** * **Code:** 200 <br /> **Content:** ``` { "status": 200, "message": "success", "data": { team1_summary: [ { schedule_name: '2024LPL春季赛', schedule_name_en: '2024LPL', fb: 12345, // 首殺隊伍id fk: 12345, // 先五殺隊伍id win: 12345, // 獲勝隊伍id fk_record: { // 五殺次數 score1: 5, score2: 2, }, team1: { id: 12345, logo: 'https://path-to-logo', name: 'team1', }, team2: { id: 67890, logo: 'https://path-to-logo', name: 'team2', }, duration: 1000, score: [3, 2], game_time: 1710927087, link_uid: 'link_uid', }, ], team2_summary: [ { schedule_name: '2024LPL春季赛', schedule_name_en: '2024LPL', fb: 67890, // 首殺隊伍id fk: 67890, // 先五殺隊伍id win: 67890, // 獲勝隊伍id fk_record: { // 五殺次數 score1: 1, score2: 5, }, team1: { id: 12345, logo: 'https://path-to-logo', name: 'team1', }, team2: { id: 67890, logo: 'https://path-to-logo', name: 'team2', }, duration: 1050, score: [10, 20], game_time: 1711927087, link_uid: 'link_uid', }, ], team1_power: [55, 62, 61, 67, 40, 81, 72, 96, 96, 96], team2_power: [43, 56, 48, 64, 38, 39, 43, 73, 73, 73], }, "statusCode": 200 } ``` * **Error Response:** * **Code:** 120500100 <br /> **Content:** ``` { "code": 120500100, "message": "wrong anti crawler seed and secret, are you a crawler ?", "success": false } ``` * **Sample Call:** https://event-api.vpgame.com/api/v1/schedule/lol/preview?schedule_id=1607811046&length=2 * **Notes:** **前端有一個params是Hard Code** length=50 ![截圖 2024-03-25 下午10.11.36](https://hackmd.io/_uploads/r1l4Lbk1A.png)