Bu verdiğinizle sadece MS ve AÜ bahislerine erişebiliyoruz. Sanırım o maçın id'ini kullanarak diğer bahislere erişebileceğiz. Onu yapmaya çalışıyorum şuan. Teşekkürler
https://www.tuttur.com/draw/single-event/id/{id}
buradan ulaşıcaksınız onlara örnek:
https://www.tuttur.com/draw/single-event/id/875801
Diğer oranlar için
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<?php
$url = 'https://www.tuttur.com/bulletinfiles/1.json';
$json = file_get_contents($url);
$arr = json_decode($json);
echo '<table class="table table-bordered">';
echo '
<thead>
<tr>
<th>Lig</th>
<th>Tarih</th>
<th>Ev Sahibi</th>
<th>Rakip</th>
<th>Min Bahis</th>
</tr>
</thead>
';
if(isset($arr->data)){
foreach($arr->data AS $data){
$matchId = $data->id;
$eventDate = $data->eventDate;
$eventDate = date('d.m.Y H:i',$eventDate);
echo '<tr>';
echo "<td>{$data->leagueCode}</td>";
echo "<td>{$eventDate}</td>";
echo "<td>{$data->homeTeamName}</td>";
echo "<td>{$data->awayTeamName}</td>";
echo "<td>{$data->mbc}</td>";
echo '</tr>';
foreach($data->markets AS $market)
{
echo '<tr>';
echo "<td>{$market->name}</td>";
echo '<td><table>';
foreach($market->odds AS $odd){
if($odd->state != 'Active') continue;
echo '<tr>';
echo "<td><strong>{$odd->name}</strong>: {$odd->outcome} ORAN</td>";
echo '</tr>';
}
echo '</table></td>';
echo '</tr>';
}
$matchDetail = file_get_contents("https://www.tuttur.com/draw/single-event/id/".$matchId);
$matchDetail = json_decode($matchDetail);
foreach($matchDetail AS $markets){
foreach($markets->markets AS $market){
echo '<tr>';
echo "<td>{$market->name}</td>";
echo '<td><table>';
foreach($market->odds AS $odd){
if($odd->state != 'Active') continue;
echo '<tr>';
echo "<td><strong>{$odd->name}</strong>: {$odd->outcome} ORAN</td>";
echo '</tr>';
}
echo '</table></td>';
echo '</tr>';
}
}
echo '<tr><td colspan="5"><hr></td></tr>';
}
}
echo '</table>';
?>
</body>
</html>