AllSportsApi

FREEMIUM
Por REcodeX | Atualizado 2 месяца назад | Sports
Popularidade

9.9 / 10

Latência

550ms

Nível de serviço

100%

Health Check

100%

Voltar para todos os tutoriais (19)

How to get all leagues of the sport?

To get all the leagues of the sport, you will need to list all categories first and then list all tournaments inside the category.
The category represents the country/tour/game of the tournaments. To get all categories, you can use the following endpoint: “/api/tournament/categories” for football or “/api/{sport}/tournament/categories” for other sports. With the response you can get all the leagues with the following endpoint: “/api/tournament/all/category/{category_id}” for football or “/api/{sport}/tournament/all/category/{category_id}" for other sports. Additionally, there are the category schedules that shows the events played in certain day for that category alone: “/api/category/{category_id}/events/{day}/{month}/{year}” for football or “/api/{sport}/category/{category_id}/events/{day}/{month}/{year}" for other sports, with the day being integer.