Football fixtures API in JavaScript
A short, working walkthrough: get an API key, request upcoming football fixtures, filter by date and league, and read the prediction for a match. About five minutes.
1. Get an API key
Start a 14-day trial (no card needed). Your key appears straight after signup and on your dashboard.
2. Fetch fixtures
Send the key in the Authorization: Token header. Filter with status, date_from, date_to and league_id.
const API = "https://api.predictiqpro.com";
const headers = { Authorization: "Token YOUR_API_KEY" };
const qs = new URLSearchParams({
status: "NS",
date_from: "2026-10-12",
date_to: "2026-10-19",
// league_id: "39",
});
const res = await fetch(`${API}/fixtures?${qs}`, { headers });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const { results } = await res.json();
for (const f of results) {
console.log(f.kickoff_time, f.home_team, "vs", f.away_team);
}3. Read predictions and respect limits
Every response carries rate-limit headers (X-RateLimit-Remaining-Daily, X-RateLimit-Remaining-Monthly), so you can back off before you hit a 429.
console.log(res.headers.get("X-RateLimit-Remaining-Daily"));
console.log(res.headers.get("X-RateLimit-Remaining-Monthly"));
if (res.status === 429) console.log("Quota reached - back off or upgrade");Ready to build?
Full endpoint reference is in the docs; plans are on the pricing page.
Start 14-day trial