Skip to content

REST APIs#

There are a number of APIs across several sports these including American Football, Basketball and Hockey, and Baseball.

Pre-Game Data APIs#

All API responses use the JSON:API format and accept the count, page as well as additional sorting and filtering options. Please see the Getting Started guide for details on connecting and consuming the information in your applications and review the individual API specs below for details on each call.

American Football Data & Prediction API

American Football includes data and prediction apis for NFL and NCAA.

Baseball Data & Prediction API

Baseball includes data and prediction apis for MLB.

Basketball Data & Prediction API

Basketball includes data and prediction apis for NBA, WNBA, and NCAA.

Hockey Data & Prediction API

Hockey includes data and prediction apis for NHL.

!!! abstract "O.D.D.S Forecast API" (Deprecated) Includes prediction feeds for the items listed in the O.D.D.S Forecast dashboard (for all leagues).

* :material-console-network: [Interactive API Docs](./ODDS-forecast.md)
* :material-folder-network: [OpenAPI Spec](https://api.quarter4.io/search/docs.json?spec_version=3)

In-Game Data APIs#

Our In-Game APIs use the socket.io v4 libraries to allow connections via WebSocket, or if not possible, fall back to HTTP long-polling. If the connection is lost, the client will automatically try to reconnect. For an example of setting up a basic socket connection using Socket.io

Events and Predictions

The In-Game Predictions use the power of our AI to give predicted outcomes on a play-by-play level, for each available game. Be among the first to experience our In-game next generation prediction model and help us make it better.

Checkout the In-Game Quick Start guide here