status

View token status ⬜ 🟨 🟦 🟩

GET https://api.soccerfootball.info/v1/token/status

This endpoint returns with token status, expire data and costs ecc.. This call is for DIRECT API ONLY

Query Parameters

NameTypeDescription

t

string

Your API Token

{
   "status":200,
   "errors":[

   ],
   "pagination":[

   ],
   "result":[
      {
         "token":"TOKEN",
         "allowed_ips":"all",
         "plan":"ULTRA",
         "expire_date":"2021-05-01 00:00:00",
         "status":"active",
         "reference":"[email protected]",
         "payment":{
            "cadence":"1m",
            "next_amount":"75.00",
            "next_payment":"2021-05-01 00:00:00"
         },
         "usage":{
            "requests_p_hour":3600,
            "pagination_items":50,
            "last_request_date":"2021-03-11 16:15:04",
            "last_hour_requests":164
         }
      }
   ]
}

Example of code for direct API

$url = 'https://api.soccerfootball.info/v1/token/status/?t=TOKEN';

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => $url,
    CURLOPT_PROXY => null,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_CUSTOMREQUEST => "GET"
));

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if (!$err) {
  $result = json_decode($response);
  print_r($result);
} else {
    echo "cURL Error:" . $err;
}

Last updated