Skip to content

Instantly share code, notes, and snippets.

@marcosrocha85
Created February 9, 2026 00:43
Show Gist options
  • Select an option

  • Save marcosrocha85/ca0bc17ef57284a6050efd168d63b3f5 to your computer and use it in GitHub Desktop.

Select an option

Save marcosrocha85/ca0bc17ef57284a6050efd168d63b3f5 to your computer and use it in GitHub Desktop.
Super Bowl - Current Score Tracker
const axios = require('axios');
async function getSuperBowlScore() {
try {
const response = await axios.get('https://api.sportsdata.io/v3/nfl/scores/json/CurrentScore'); // API Key Needed
console.log(`Score: ${response.data.AwayTeam} ${response.data.AwayScore} x ${response.data.HomeScore} ${response.data.HomeTeam}`);
} catch (error) {
console.error('Fetch error:', error);
}
}
getSuperBowlScore();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment