A Scratch Extension for getting anything sports-related like the NFL! Over the past weeks, I have been experimenting with Scratch Extensions and I thought it was cool to make my own. I started by making YouTube Statistics however someone had done that. This is when I started thinking about ideas and that's when we got a Sports Extension.
These are the basic usage of the Sports Extension. Anyone who reads this will get a basic understanding of how it works.
Note
To use this, use the TurboWarp URL
Important
In order to get an API Key, please sign up at RapidAPI, or else the extension will not work!
To get started, copy your API Key from RapidAPI and enter it in this block below.
The block above will not return anything when clicked, the only way to test to see if your API Key works is to use any block made by this extension. Errors appearing due to no API Key are intentional.
More Usages:
Here are all the blocks that is compatible with the API Key.
/* FOOTBALL / NFL */
(player (Your NFL Player) stats) // Gets the stats for the player, If the Status Code is 200, it's successful.
(player's [short name/jersey/team/height/age/birthday/position v])
/* Details about the block */
// Short name - Gets a shorter version of the name. E.g. Tom Brady -> T. Brady
// Jersey - Player's jersey number
// Team - The player's team they're in
// Height - Player's height
// Age - Player's Age
// Birthday - You get what this is but in case you don't, Player's B-Day
// Position - Player's Position. E.g. QB -> QuarterBack
(get NFL teams) // Gets the NFL Teams
(team index (Number Here) stats) // Gets the index team's stats e.g. 1 being GreenBay Packers
(team's [ratio/abbreviation/streak v]) // Gets the Team's Win-Loss Ratio (5-2), Team Abbreviation (Atlanta -> ATL) or Win/Loss Streak.
(random team stats from (value)) // Replace value with a number. Gets a random team within the value range e.g. 6 will be picking random 1-6
(days until Super Bowl) // The Days until the Super Bowl LVIII (The next Super Bowl will not be accurate like Super Bowl LVIV, no API key needed)
Warning
Using the player stats block incorrectly will cause bugs. Please use actual players, not random letters.
The days until the Super Bowl date are manually set in the extension. We do not want to cause any form of API spam.
For any bug reports, please send a GitHub issue or pull request. Thank you!
Thank you for using the sports extension, this is the end of the documentation.
Credits to @wolfieboy09 for collaborating to make this project.
Credits to RapidAPI for making this possible.
... and everyone who contributed and assisted.