---
# System prepended metadata

title: vp-schedule LoL 勝率相關api

---

**勝率相關**
----
 
 ![截圖 2024-03-25 下午2.51.06](https://hackmd.io/_uploads/rkMeJj0Ca.png)

* **URL**

  https://event-api.vpgame.com/api/v1/schedule/lol/analysis/teams
  
  deprecated
  https://www.vpgame.com/schedule/sha/das/analysis/fe/lol/teams/stats
  

* **Method:**
  

  `GET`
  
*  **URL Params**


   **Required:**
   
   `team_ids=12345`

   **Optional:**
   
    `as= timestamp` // anti crawler seed
   
   `cp= md5(parseInt(as * 2 / 3 + 4 - 5))` // anti crawler secret
 
   `query_param.league_level=all`
   
   `query_param.season=s10`

   
* **Success Response:**
  

  * **Code:** 200 <br />
    **Content:** 
    ```
    {
      "status": 200,
      "message": "success",
      "data": [
                {
                    values: {
                      matches_count: 6,
                      first_blood_win_rate: 0.6,
                      first_destroy_tower_win_rate: 0.4,
                      kill_rift_herald_win_rate: 0.6,
                      first_kill_nashor_win_rate: 0.4,
                      first_destroy_inhibitor_win_rate: 0.6,
                      '0_25_win_rate': 0.45,
                      '25_30_win_rate': 0.5,
                      '30_35_win_rate': 0.6,
                      '35_40_win_rate': 0.35,
                      '40_win_rate': 0.4,
                      '0_25_matches_count': 2,
                      '0_25_win_count': 1,
                      '25_30_matches_count': 1,
                      '25_30_win_count': 0,
                      '30_35_matches_count': 3,
                      '30_35_win_count': 2,
                      '35_40_matches_count': 1,
                      '35_40_win_count': 1,
                      '40_matches_count': 0,
                      '40_win_count': 0,
                    },
                    team: {
                      id: 12345,
                    },
                },
                {
                    values: {
                      matches_count: 6,
                      first_blood_win_rate: 0.6,
                      first_destroy_tower_win_rate: 0.4,
                      kill_rift_herald_win_rate: 0.6,
                      first_kill_nashor_win_rate: 0.4,
                      first_destroy_inhibitor_win_rate: 0.6,
                      '0_25_win_rate': 0.45,
                      '25_30_win_rate': 0.5,
                      '30_35_win_rate': 0.6,
                      '35_40_win_rate': 0.35,
                      '40_win_rate': 0.4,
                      '0_25_matches_count': 2,
                      '0_25_win_count': 1,
                      '25_30_matches_count': 1,
                      '25_30_win_count': 0,
                      '30_35_matches_count': 3,
                      '30_35_win_count': 2,
                      '35_40_matches_count': 1,
                      '35_40_win_count': 1,
                      '40_matches_count': 0,
                      '40_win_count': 0,
                    },
                    team: {
                      id: 67890,
                    },
                },
             
      ],
      "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/analysis/teams?team_ids=510&team_ids=277542

* **Notes:**


   **前端有兩個params是Hard Code**
   
    query_param.league_level=all
    query_param.season=s10
    
   ![截圖 2024-03-25 下午2.56.11](https://hackmd.io/_uploads/BJTjlsART.png)
