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
<PackageReference Include="FantasyData.Api.Client" Version="1.4.0" />
<PackageVersion Include="FantasyData.Api.Client" Version="1.4.0" />
<PackageReference Include="FantasyData.Api.Client" />
paket add FantasyData.Api.Client --version 1.4.0
#r "nuget: FantasyData.Api.Client, 1.4.0"
#:package FantasyData.Api.Client@1.4.0
#addin nuget:?package=FantasyData.Api.Client&version=1.4.0
#tool nuget:?package=FantasyData.Api.Client&version=1.4.0
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
| Product | Versions 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. |
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.