OpenAPI specs and copy-paste Python / JavaScript examples for Recodex sports data APIs: live scores, fixtures, standings, odds, lineups, players, and shotmaps. Covers football/soccer, tennis, basketball, ice hockey, cricket, esports, and more.
| Product | What you get | Start here |
|---|---|---|
| AllSportsAPI | Multi-sport live and historical data — scores, fixtures, standings, odds, players, media, shotmaps | allsportsapi/README.md |
| Live Sports Data API | Scoreboards, feeds, tournaments, matches, rankings, news, GraphQL hashes | flashscore/README.md |
| SKAlpha | Market data, news, symbols, screeners, fundamentals | skalpha/README.md |
Subscribe on RapidAPI (every sport API plus the All Sports bundle) or API.market (complete All Sports bundle).
Same authentication, response shapes, and endpoint structure across every sport. Learn one API and you know them all.
| Sport | RapidAPI | Host (X-RapidAPI-Host) |
|---|---|---|
| All Sports (bundle) | allsportsapi2 | allsportsapi2.p.rapidapi.com |
| Football / Soccer | footapi7 | footapi7.p.rapidapi.com |
| Tennis | tennisapi1 | tennisapi1.p.rapidapi.com |
| Basketball | basketapi1 | basketapi1.p.rapidapi.com |
| Ice Hockey | icehockeyapi | icehockeyapi.p.rapidapi.com |
| American Football | americanfootballapi | americanfootballapi.p.rapidapi.com |
| Baseball | baseballapi | baseballapi.p.rapidapi.com |
| Cricket | cricketapi21 | cricketapi21.p.rapidapi.com |
| Esports | esportapi1 | esportapi1.p.rapidapi.com |
| Motorsport | motorsportapi | motorsportapi.p.rapidapi.com |
| Rugby | rugbyapi2 | rugbyapi2.p.rapidapi.com |
| Volleyball | volleyballapi | volleyballapi.p.rapidapi.com |
| Handball | handballapi | handballapi.p.rapidapi.com |
| MMA | mmaapi | mmaapi.p.rapidapi.com |
Always copy the exact host from the RapidAPI Endpoints tab for the API you subscribed to.
Every request needs two headers: X-RapidAPI-Key (your key) and X-RapidAPI-Host (the sport you are calling). Keep the key on the server — never ship it in browser or mobile code.
curl --request GET \
--url 'https://footapi7.p.rapidapi.com/api/matches/live' \
--header 'X-RapidAPI-Key: YOUR_API_KEY' \
--header 'X-RapidAPI-Host: footapi7.p.rapidapi.com'import os, requests
url = "https://footapi7.p.rapidapi.com/api/matches/live"
headers = {
"X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
"X-RapidAPI-Host": "footapi7.p.rapidapi.com",
}
resp = requests.get(url, headers=headers, timeout=15)
resp.raise_for_status()
print(len(resp.json().get("events", [])), "live matches")const res = await fetch("https://footapi7.p.rapidapi.com/api/matches/live", {
headers: {
"X-RapidAPI-Key": process.env.RAPIDAPI_KEY,
"X-RapidAPI-Host": "footapi7.p.rapidapi.com",
},
});
const data = await res.json();
console.log(data.events?.length, "live matches");Runnable clients and a server-side proxy: allsportsapi/Examples. Full authentication notes, data model, and workflows: allsportsapi/README.md.
| Example | Python | JavaScript | What it shows |
|---|---|---|---|
| Quickstart | quickstart.py | quickstart.js | Auth → live matches → parse events |
| Server proxy | server_proxy_flask.py | server_proxy_express.js | Keep the API key off the client |
| Match clock | match_clock.py | match_clock.js | Elapsed time, added time, display clock |
| List all leagues | list_all_leagues.py | list_all_leagues.js | Categories → tournaments tree |
| Timezone schedule | filter_schedule_by_timezone.py | filter_schedule_by_timezone.js | Local-day filter (DST-safe) |
Sport-specific demos: football heatmap / shotmap, basketball shotmap, tennis cup trees.
Import into Swagger UI, Postman, Insomnia, or a client generator.
- All sports (full) and simplified
- Per sport: football, tennis, basketball, ice hockey, cricket, esports, and more
- Live Sports Data API: flashscore/flashscore_openapi.yaml
- SKAlpha: skalpha/openapi/openapi-skalpha.yaml
- AllSportsAPI guide — auth, data model, workflows, best practices
- FAQ — leagues, match time, images, status codes
- Response models — Event, Team, Player, Tournament, odds, statistics
- Daily matches — how to assemble a day's schedule
- Live Sports Data API — scoreboards, feeds, matches, rankings
- SKAlpha — market data, news, symbols
MIT. See LICENSE.
