Trakt.NET.UserAgentFix 1.6.0

dotnet add package Trakt.NET.UserAgentFix --version 1.6.0
                    
NuGet\Install-Package Trakt.NET.UserAgentFix -Version 1.6.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="Trakt.NET.UserAgentFix" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trakt.NET.UserAgentFix" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Trakt.NET.UserAgentFix" />
                    
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 Trakt.NET.UserAgentFix --version 1.6.0
                    
#r "nuget: Trakt.NET.UserAgentFix, 1.6.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 Trakt.NET.UserAgentFix@1.6.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=Trakt.NET.UserAgentFix&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Trakt.NET.UserAgentFix&version=1.6.0
                    
Install as a Cake Tool

This library is a fork of Trakt.NET, which is not under development anymore.

This version adds an User Agent Header to not get flagged as bot traffic.

The user agent can be changed in the constructor of the TraktClient class.

Trakt.NET

NuGet Package License codecov

Overview

This is a .NET wrapper library with which developers can build .NET applications that integrate with the Trakt.tv API and access its features and data.

Some examples that Trakt.NET can be used for include:

  • Retrieve information about movies and TV shows, including details such as titles, descriptions, ratings and release dates
  • Tracking what TV shows and movies a user is watching, has watched or wants to watch
  • Providing recommendations for TV shows and movies based on a user's watch history
  • Building custom TV show and movie lists

To use Trakt.NET, you will need to obtain an API key from Trakt and follow the guidelines for using the API.

Features

  • Full Trakt.tv API Coverage (As of April 2024)
  • Authentication and Authorization Support (OAuth 2.0 and Device)
  • Completely asynchronous
  • API Environments (Production and Sandbox)
  • Serialization Service

Supported Platforms

.NET >= 5 .NET MAUI .NET Framework >= 4.6.1 .NET Core >= 2.0
Xamarin.Android >= 8.0 Xamarin.iOS >= 10.14 Xamarin.Mac >= 3.8
Windows UWP >= 10.0.16299 Mono >= 5.4

Quickstart

> dotnet add package Trakt.NET
using System;
using TraktNet;
using TraktNet.Exceptions;
using TraktNet.Objects.Get.Shows;
using TraktNet.Responses;
using TraktNet.Services;

var client = new TraktClient("Your Trakt Client ID");

try
{
    TraktResponse<ITraktShow> showResponse = await client.Shows.GetShowAsync("the-last-of-us");
    ITraktShow show = showResponse.Value;
    
    Console.WriteLine($"Title: {show.Title}");
    Console.WriteLine($"Year: {show.Year}");
    Console.WriteLine();

    string json = await TraktSerializationService.SerializeAsync(show, indentation: true);
    Console.WriteLine(json);
}
catch (TraktException ex)
{
    Console.WriteLine(ex);
}

Output:

Title: The Last of Us
Year: 2023
{
    "title": "The Last of Us",
    "year": 2023,
    "ids": {
        "trakt": 158947,
        "slug": "the-last-of-us",
        "tvdb": 392256,
        "imdb": "tt3581920",
        "tmdb": 100088
    }
}

Documentation

https://henrikfroehling.github.io/Trakt.NET/docs/index.html

Examples

https://henrikfroehling.github.io/Trakt.NET/examples/index.html

License

The MIT License (MIT)

Copyright (c) 2016 - 2025 Henrik Fröhling and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.6.0 300 4/3/2025
1.5.0 370 3/23/2025