TvdbClient 4.7.12
dotnet add package TvdbClient --version 4.7.12
NuGet\Install-Package TvdbClient -Version 4.7.12
<PackageReference Include="TvdbClient" Version="4.7.12" />
<PackageVersion Include="TvdbClient" Version="4.7.12" />
<PackageReference Include="TvdbClient" />
paket add TvdbClient --version 4.7.12
#r "nuget: TvdbClient, 4.7.12"
#:package TvdbClient@4.7.12
#addin nuget:?package=TvdbClient&version=4.7.12
#tool nuget:?package=TvdbClient&version=4.7.12
TvdbClient
A C# HttpClient-based API client for TheTVDB v4 API.
This is a thin client AS IS — it does not implement the caching/proxying that TheTVDB recommends. Add your own caching layer if you call the API at volume.
Packages
The client is split into three packages so the API-versioned models can be regenerated independently of the generic client code:
| Package | What | Versioning |
|---|---|---|
TvdbClient |
Client core: generated clients, auth, DI wiring. | Generic SemVer |
TvdbClient.Models |
The generated DTOs (Tvdb.Models). |
Tracks the TheTVDB API version (Major.Minor) |
TvdbClient.Abstractions |
Generic contracts, configuration, response envelope. | Generic SemVer |
Installing TvdbClient pulls in the other two.
dotnet add package TvdbClient
Usage
Configuration
Provide your TheTVDB API key (and optional subscriber PIN) via configuration —
either appsettings.json or a standalone TvdbClientConfig.json:
{
"TvdbConfiguration": {
"BaseUrl": "https://api4.thetvdb.com/v4",
"ApiKey": "<your-api-key>",
"Pin": "<optional-subscriber-pin>"
}
}
Get an API key from TheTVDB's API Key dashboard.
DI registration
using Microsoft.Extensions.DependencyInjection;
builder.Configuration.AddTvdbClient();
builder.Services.AddTvdbClient(builder.Configuration);
Using the clients
Resolve the per-resource client you need. Login/token acquisition and the
Authorization header are handled automatically by the registered handler.
using Tvdb.Clients;
var series = serviceProvider.GetRequiredService<ISeriesClient>();
var response = await series.SeriesGetAsync(121361); // ids are long
var record = response.Data; // { data, status } envelope
Building
This project builds with Fallout
(a NUKE fork) — the build lives in build/Build.cs and runs through the ./build.ps1
bootstrapper (no global tool required). CI (build.yml) invokes the same targets.
./build.ps1 Test # run the *.Specs test suite
./build.ps1 Pack # produce the three NuGet packages in artifacts/packages
./build.ps1 Generate # regenerate the client + models from TheTVDB's OpenAPI spec
Regenerating the models
Models + clients are generated from TheTVDB's OpenAPI spec via the Fallout
Generate target (NSwag under the hood):
./build.ps1 Generate
This downloads the live v4 spec, applies a small overlay (integer-id coercion,
inline-enum hoisting), and regenerates TvdbClient.Models + the clients.
Versioning
Major.Minor track the TheTVDB API version; the patch is this library's own
release counter. Managed with GitVersion (dotnet-gitversion).
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Microsoft.Extensions.Configuration.Json (>= 9.0.1)
- Microsoft.Extensions.DependencyInjection (>= 9.0.1)
- Microsoft.Extensions.Hosting (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.1)
- Microsoft.Extensions.Options (>= 9.0.1)
- Scrutor.Extensions.HttpClient (>= 5.0.1)
- TvdbClient.Abstractions (>= 4.7.12)
- TvdbClient.Models (>= 4.7.12)
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 |
|---|---|---|
| 4.7.12 | 147 | 7/23/2026 |
| 4.7.11 | 88 | 7/23/2026 |
| 4.7.10 | 185 | 1/31/2025 |
| 4.7.10-refactoring-change-f... | 76 | 7/21/2025 |