Football standings API in Python
Fetch a league table, including matches that are in play, with one request.
1. Get an API key
Start a 14-day trial at /register (no card needed). Your key is shown straight after signup and on your dashboard.
2. Find a league ID
List the leagues, then pick the id of the competition you want.
import requests
API = "https://api.predictiqpro.com"
HEADERS = {"Authorization": "Token YOUR_API_KEY"}
leagues = requests.get(f"{API}/api/v2/leagues/", headers=HEADERS, timeout=15)
print(leagues.json())3. Request the table
Call /standings/ with the league_id. The table includes played, results, goals and points, and counts matches in play.
LEAGUE_ID = 39 # replace with an id from the list above
r = requests.get(f"{API}/standings/", headers=HEADERS, params={"league_id": LEAGUE_ID}, timeout=15)
r.raise_for_status()
print(r.json())Related guides
Ready to build?
Full endpoint reference is in the docs; plans are on the pricing page.
Start 14-day trial