Skip to content

MLB v3 Projections API

by sportsdata.io

API keyHTTPSEntertainment
Open documentation ↗

Overview

MLB projections API.

MLB v3 Projections is an entertainment API from sportsdata.io. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 7 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Base URL
http://azure-api.sportsdata.io/v3/mlb/projections
Version
1.0
Endpoints
7
Spec updated
2023-03-05

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://azure-api.sportsdata.io/v3/mlb/projections/FORMAT/DepthCharts" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("http://azure-api.sportsdata.io/v3/mlb/projections/FORMAT/DepthCharts", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://azure-api.sportsdata.io/v3/mlb/projections/FORMAT/DepthCharts",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/{format}/DepthChartsDepth Charts
GET/{format}/DfsSlatesByDate/{date}DFS Slates by Date
GET/{format}/InjuredPlayersInjured Players
GET/{format}/PlayerGameProjectionStatsByDate/{date}Projected Player Game Stats by Date (w/ Injuries, DFS Salaries)
GET/{format}/PlayerGameProjectionStatsByPlayer/{date}/{playerid}Projected Player Game Stats by Player (w/ Injuries, DFS Salaries)
GET/{format}/PlayerSeasonProjectionStats/{season}Projected Player Season Stats (with ADP)
GET/{format}/StartingLineupsByDate/{date}Starting Lineups by Date

Questions

Does the MLB v3 Projections API need an API key?

Yes. The MLB v3 Projections API uses API key authentication; the documentation explains how to get credentials.

Does the MLB v3 Projections API support HTTPS?

Yes, the MLB v3 Projections API is served over HTTPS.

How many endpoints does the MLB v3 Projections API have?

Its OpenAPI description lists 7 endpoints in version 1.0. All of them are shown on this page.

What are alternatives to the MLB v3 Projections API?

Other Entertainment APIs include Techy, Imgflip, Official Joke, Betfair: Exchange Streaming API, Listen API: Podcast Search, Directory, and Insights API.

Compare alternatives →

Listed from APIs.guru (CC0).