projects / python
TheSpike.GG Unofficial API
- Published on
- TheSpike.GG Unofficial API · 2 min read
Brief Summary
An Unofficial REST API for TheSpike.GG, a site for Valorant Esports match and news coverage.
Current Endpoints
All endpoints are relative to https://thespikeggapi.herokuapp.com.
Note: API has been deprecated.
/matches/results
-
Method: GET
-
Cached Time: 300 seconds (5 Minutes)
-
Response:
[ { 'event': str, 'score1': str, 'score2': str, 'team1': str, 'team2': str, 'url_path': str }, # list of matches (dictionaries) ]
/rankings
-
Method: GET
-
Cached Time: 300 seconds (5 Minutes)
-
Response:
{ 'region_name': [ { 'name': str, 'points': str, 'rank': str, 'roster': [ { 'ign': str, 'name': str, 'url_path': str }, # list of players within team (dictionaries) ] }, # list of teams within region (dictionaries) ], # dictionary of regions }
/news
-
Method: GET
-
Cached Time: 300 seconds (5 Minutes)
-
Response:
{ 'time': [ { 'comment_count': str, 'date': str, 'title': str, 'url_path': str }, # list of articles (dictionaries) ], # dictionary of times (past, today, yesterday) }
Installation
Source
$ git clone https://github.com/josephsookim/thespikeggapi/
$ cd thespikeggapi
$ pip3 install -r requirements.txt
Usage
python3 main.py