Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Experimental ChatGPT plugin to retrieve statistics from the NBA API

Notifications You must be signed in to change notification settings

garysm/chatgpt-nba-api-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT NBA Stats API Plugin

This plugin is an experiment using the NBA's APIs to make their data & statistics easily accessible in ChatGPT.

Built with the nba_api client to access NBA APIs.

Scoreboard Screenshot

Player Screenshot

Setup

To install the required packages for this plugin, run the following command:

pip install -r requirements.txt

To run the plugin, enter the following command:

python main.py

Once the local server is running:

  1. Navigate to https://chat.openai.com.
  2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
  3. Select "Plugin store"
  4. Select "Develop your own plugin"
  5. Enter in localhost:5003 since this is the URL the server is running on locally, then select "Find manifest file".

Start asking a question relevant to the plugin, like "Is Raymond Felton still active in the NBA?", or "Get me today's games."

Endpoints

  • /scoreboard: Get today's scheduled NBA games. Returns results in the format below:
    • {gameId}: {awayTeam} vs. {homeTeam} @ {gameTimeLTZ}
    • Example: Celtics vs. 76ers at 7:30 PM Eastern Time
  • /player/:player_name: Returns basic information about the requested player, notably if they are active or not.

About

Experimental ChatGPT plugin to retrieve statistics from the NBA API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages