Sports API

This API endpoint is responsible for returning all sports (titles) that we currently support.

                
HTTP GET api.hudstats.com/sports[?skip=<integer>&take=<integer>]
        
                
curl -X GET -H "Content-Type: application/json" -H
"Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoidXNlciIsImV4cCI6MTYwMjE2MzY4M30.ydn5qW6_PxPeTtWdXmCDGEpYqksvlD7e5m1wLK7WbL4"
https://api.hudstats.com/sports
        
                
[{"sport-name":"dota2","game-title":"Dota 2"},
 {"sport-name":"lol","game-title":"League of Legends"},
 {"sport-name":"csgo","game-title":"Counter-Strike: Global Offensive"}]
        

This endpoint has optional pagination. If you provide step and take query parameters they will be used. If you don’t provide these parameters default values will be used.

Parameter Range Default Description
take [0, 50] 50 Page size, how many records to return.
skip [0, ∞) 0 Offset, how many records to skip before selecting the consecutive take ones.

Pagination works the same way for endpoints that are described below.