Created
February 9, 2026 00:43
-
-
Save marcosrocha85/ca0bc17ef57284a6050efd168d63b3f5 to your computer and use it in GitHub Desktop.
Super Bowl - Current Score Tracker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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