Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

League eSports sports data #108

Open
RaasAhsan opened this issue Feb 28, 2019 · 2 comments
Open

League eSports sports data #108

RaasAhsan opened this issue Feb 28, 2019 · 2 comments

Comments

@RaasAhsan
Copy link

RaasAhsan commented Feb 28, 2019

Fetch API Key from:

https://watch.na.lolesports.com/Common/Service/RelApi/RelApi.js

Prettified: http://cdn.paste.click/I936jchwVk4I1JXMhVa8HA

With the prod key, get live games:

curl -X GET \
  -H "x-api-key: $API_KEY" \
  "https://prod-relapi.ewp.gg/persisted/gw/getLive?hl=en-US
@RaasAhsan
Copy link
Author

getLive with event data:

{
  "data": {
    "schedule": {
      "updated": "2019-02-28T07:44:48.576Z",
      "events": [
        {
          "startTime": "2019-02-28T08:00:00Z",
          "state": "inProgress",
          "blockName": "Week 6",
          "league": {
            "name": "LCK"
          },
          "match": {
            "id": "101388913431558969",
            "teams": [
              {
                "name": "SANDBOX Gaming",
                "code": "SB",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/team-battlecomics-150mx44g.png",
                "result": {
                  "outcome": null,
                  "gameWins": 0
                },
                "record": {
                  "wins": 7,
                  "losses": 3
                }
              },
              {
                "name": "Afreeca Freecs",
                "code": "AF",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/afreeca-freecs-2a8dak1f.png",
                "result": {
                  "outcome": null,
                  "gameWins": 0
                },
                "record": {
                  "wins": 3,
                  "losses": 7
                }
              }
            ],
            "strategy": {
              "type": "bestOf",
              "count": 3
            }
          }
        }
      ]
    }
  }
}

@RaasAhsan
Copy link
Author

{
  "data": {
    "schedule": {
      "updated": "2019-03-09T21:33:43.941Z",
      "events": [
        {
          "startTime": "2019-03-09T00:00:00.000Z",
          "state": "inProgress",
          "type": "show",
          "league": {
            "name": "LCS",
            "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/league/lcs-79qe3e0y.png"
          }
        },
        {
          "startTime": "2019-03-09T14:00:00Z",
          "state": "inProgress",
          "type": "match",
          "blockName": "Week 8",
          "league": {
            "name": "TCL"
          },
          "match": {
            "id": "101422616594612452",
            "teams": [
              {
                "name": "1907 Fenerbahçe Espor",
                "code": "FB",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/1907-fenerbahce-espor-b5nuqf04.png",
                "result": {
                  "outcome": "win",
                  "gameWins": 1
                },
                "record": {
                  "wins": 13,
                  "losses": 2
                }
              },
              {
                "name": "Galatasaray Espor",
                "code": "GS",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/galatasaray-esports-bamvqliv.png",
                "result": {
                  "outcome": "loss",
                  "gameWins": 0
                },
                "record": {
                  "wins": 8,
                  "losses": 7
                }
              }
            ],
            "strategy": {
              "type": "bestOf",
              "count": 1
            }
          }
        },
        {
          "startTime": "2019-03-09T21:00:00Z",
          "state": "inProgress",
          "type": "match",
          "blockName": "Week 8",
          "league": {
            "name": "LLA"
          },
          "match": {
            "id": "101383792625791006",
            "teams": [
              {
                "name": "XTEN Esports",
                "code": "XTN",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/predators-esports-e6cx9vic.png",
                "result": {
                  "outcome": null,
                  "gameWins": 0
                },
                "record": {
                  "wins": 4,
                  "losses": 10
                }
              },
              {
                "name": "Furious Gaming",
                "code": "FG",
                "image": "https://lolstatic-a.akamaihd.net/esports-assets/production/team/furious-gaming-ej5t1yl9.png",
                "result": {
                  "outcome": null,
                  "gameWins": 0
                },
                "record": {
                  "wins": 2,
                  "losses": 12
                }
              }
            ],
            "strategy": {
              "type": "bestOf",
              "count": 1
            }
          }
        }
      ]
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant