Custom
Custom endpoints 🟨 🟦 🟩
GET
https://api.soccerfootball.info/v1/custom/
With our service you can request the development of a customized endpoint.
That is, a call tailored to your needs. Just send an email to [email protected] explaining what you need and we will get back to you with all the information you need to proceed.
At this endpoint, as well as passing your unique ID via the parameter i
, you will have to pass all the additional parameters necessary for the operation of your call.
The return can be JSON, CSV or HTML
Query Parameters
Name
Type
Description
t
string
Your API Token DIRECT API ONLY
i
string
Your endpoint unique ID
Headers
Name
Type
Description
x-rapidapi-key
string
Your API token RAPIDAPI ONLY
x-rapidapi-host
string
soccerfootballinfo.rapidapi.com RAPIDAPI ONLY
{
"status": 200,
"errors": [],
"pagination": [],
"result": [
...
]
}
Example of code for direct API
$url = 'https://api.soccerfootball.info/v1/custom/?t=TOKEN&i=ID';
$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;
}
Example of code for RapidAPI
$url = 'https://soccerfootballinfo.rapidapi.com/custom/?i=ID';
$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",
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: soccerfootballinfo.rapidapi.com",
"x-rapidapi-key: TOKEN"
],
));
$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;
}
More example of code on rapidAPI
Last updated
Was this helpful?