FantasyData.Api.Client 1.4.0

dotnet add package FantasyData.Api.Client --version 1.4.0
                    
NuGet\Install-Package FantasyData.Api.Client -Version 1.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FantasyData.Api.Client" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FantasyData.Api.Client" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="FantasyData.Api.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FantasyData.Api.Client --version 1.4.0
                    
#r "nuget: FantasyData.Api.Client, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FantasyData.Api.Client@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FantasyData.Api.Client&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=FantasyData.Api.Client&version=1.4.0
                    
Install as a Cake Tool

fantasydata-api-csharp

SportsDataIO API client (formerly branded as FantasyData) library wrapper for C# (.NET 4.5). For more information on the SportsDataIO API check the SportsDataIO Developer Portal.

Installation

This library is distributed on Nuget. In order to add to your visual studio project, open the nuget package manager console and use the command:

PM> Install-Package FantasyData.Api.Client

Authentication

You can find your API keys in the SportsDataIO API Documentation. See Usage for implementation details.

Usage

In this simple example we authenticate the and MLBv3Projections client with its respective key. We then pull projections for 2018-03-29 and just output some information to the console. Be sure to replace <license key> with your API key for this client.

// Connect to client and get data
var client = new MLBv3ProjectionsClient("<license key>");
var projections = client.GetPlayerGameProjectionStatsByDate("2018-03-29").OrderByDescending(p => p.DraftKingsSalary).Take(20).ToList();
// Write data to console
foreach(var projection in projections)
{
    Console.WriteLine($"{projection.PlayerID} - {projection.Name} ({projection.DraftKingsPosition}) DraftKings Salary: {projection.DraftKingsSalary}");
}

Documentation

API Documentation
NFL API
MLB API
NBA API
NHL API
NCAA Football API
NCAA Basketball API
PGA / Golf API
NASCAR API
Soccer API
UFC / MMA API
WNBA API
NCAA Women's Basketball API
Tennis API
LoL API
CS:GO API
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.0 208 10/22/2025
1.3.1 3,033 10/29/2024
1.3.0 211 9/19/2024
1.2.0 967 4/22/2024
1.1.0 875 4/17/2023
1.0.0 1,661 5/19/2022
0.9.4 628 11/12/2021
0.9.3 522 10/11/2021
0.9.2 563 7/21/2021
0.9.1 601 3/22/2021
0.9.0 893 6/2/2020
0.8.0 765 2/13/2020
0.7.0 896 11/15/2019
0.6.0 1,535 5/8/2019
0.5.1 784 3/4/2019
0.5.0 784 2/22/2019
0.4.3 941 12/6/2018
0.4.2 858 12/6/2018
0.4.1 856 11/23/2018
0.4.0 1,049 9/7/2018
0.3.0 1,067 8/16/2018
0.2.1 1,508 3/26/2018
0.2.0 1,425 3/26/2018
0.1.0 1,500 3/9/2018
0.0.0 1,478 3/3/2018

Updated client to include a boatload of new endpoints and data structures.