curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/statsimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total": 1858,
"knockoutStage": 0,
"groupStage": 0,
"matches": 101,
"tournament": 1757,
"live": 0
}Aggregate event counters (sidebar tiles)
Event counters: total (still-current events with at least one visible PRE_MARKET, OPEN, PAUSED or POSTPONED market, or POSTPONED themselves, sibling long-crypto periods counted once — not the length of a full GET /api/events walk, which also carries in-play fixtures whose markets have all closed), matches + tournament (a partition of total), groupStage / knockoutStage (stage subsets from the parent match) and live (reserved, currently always 0). No parameters. Cached server-side for 3 minutes and sent with Cache-Control: public, max-age=60, so values can be a few minutes old.
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/statsimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/events/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total": 1858,
"knockoutStage": 0,
"groupStage": 0,
"matches": 101,
"tournament": 1757,
"live": 0
}Response
OK
Event counters. matches and tournament partition total; groupStage and knockoutStage are stage subsets of it.
Events on the default open view with at least one visible PRE_MARKET, OPEN, PAUSED or POSTPONED market (or a POSTPONED event); sibling long-crypto periods count once. Not the length of a full GET /api/events walk: the list also carries in-play fixtures whose markets have all closed, and these counters can be a few minutes old.
1858
Subset of total whose parent match is in a knockout round (r32, r16, quarter_finals, semi_finals, third_place, final).
0
Reserved; currently always 0. For in-play events use GET /api/events?sort=live.
0
Events bound to a match. matches + tournament = total.
101
Events with no parent match (outrights and match-less fixtures). matches + tournament = total.
1757
Subset of total whose parent match is in the group stage.
0