<script>
// Fetch data from the API
fetch('https://api.football-data.org/v2/competitions/2014/standings', {
method: 'GET',
headers: {
'X-Auth-Token': '45d9895417cb43dca79681dac94c8d28'
}
})
.then(response => response.json())
.then(data => {
// Get the table body element
const tableBody = document.querySelector('#standingsTable tbody');
// Loop through the standings table and add each team to the table
data.standings[0].table.forEach(team => {
const row = document.createElement('tr');
const teamNameCell = document.createElement('td');
const pointsCell = document.createElement('td');
teamNameCell.textContent = team.team.name;
pointsCell.textContent = team.points;
row.appendChild(teamNameCell);
row.appendChild(pointsCell);
tableBody.appendChild(row);
});
})
.catch(error => console.error('Error fetching data:', error));
</script> JavaScript API hk?
4
●110
- 13-05-2024, 18:00:42Bir ödevim için web siteme maç skor APIsi eklemek istiyorum. Birkaç API sağlayıcısından denedim, yapamdım. Bildiğiniz API sağlayıcısı var mı? Yardım edebilir misiniz?
- 13-05-2024, 18:09:01bunu nasıl koduma bağlayabilirimtaylanweb adlı üyeden alıntı: mesajı görüntüle
- 13-05-2024, 18:11:49Aylık 100 Requests Ücretsiz , olarak belirtmiştim
Ek olarak R10 ÜCRETSİZ MAÇ SONUÇLARI API sayfasını inceleyebilirsiniz.
- 13-05-2024, 18:16:51hocam bu ara kafam dalgın her konunun altında ticari bir şeyler satmaya çalışan insanlar oluyor tam anlamadım mesajıınızı onlardan sanmıştım sonradan fark edip güncelledim zaten kusura bakmayın verdiğiniz kaynaklar içinde teşekkürler inceliyorum yazdığım mesaj içinde özür dilerimtaylanweb adlı üyeden alıntı: mesajı görüntüle
Ek olarak