AllSportsApi

FREEMIUM
Par REcodeX | Mise à jour 23 days ago | Sports
Popularité

9.9 / 10

Latence

511ms

Niveau de service

100%

Health Check

100%

Retour à tous les tutoriels (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.