Bir ö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?
<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>