Sports Info API
Erik Swanson

Backend / Data

Sports Info API

A Python-based sports analytics API that retrieves NBA and MLB statistics and allows users to query data using natural language processing.

GitHub

Last updated on GitHub: May 22, 2024

Tech Stack

Python REST API NLP Data Parsing

Key Highlights

  • Retrieved and processed NBA and MLB statistical data
  • Implemented NLP-based query handling for sports questions
  • Translated natural language input into structured data queries

Architecture and Data

  • Python backend responsible for data ingestion and processing
  • Natural Language Processing layer to interpret user queries
  • Query engine that maps interpreted intent to sports datasets

Problem and Solution

Problem

Sports statistics are often locked behind rigid query formats, making data exploration difficult for non-technical users.


Solution

This project introduces a Python-based API that allows users to ask natural language questions about NBA and MLB data, converting them into structured queries and returning relevant statistics.

What's next for this project

  • Improve NLP accuracy with expanded training data
  • Add support for additional sports leagues
  • Expose the system through a public API or frontend interface

Screenshots

Natural Language Sports Query Interface
Natural Language Sports Query Interface
Structured Statistical Results Output
Structured Statistical Results Output

← Back to projects