MangaDex 5.13.1.3

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

MangaDex - the C# library for the MangaDex API

MangaDex is an ad-free manga reader offering high-quality images!

This document details our API as it is right now. It is in no way a promise to never change it, although we will endeavour to publicly notify any major change.

Acceptable use policy

Usage of our services implies acceptance of the following:

  • You MUST credit us
  • You MUST credit scanlation groups if you offer the ability to read chapters
  • You CANNOT run ads or paid services on your website and/or apps

These may change at any time for any and no reason and it is up to you check for updates from time to time.

Security issues

If you believe you found a security issue in our API, please check our security.txt to get in touch privately.

This C# SDK is a hand-maintained client for the MangaDex API, built on Refit and System.Text.Json. It is kept in sync with the MangaDex OpenAPI specification (api/openapi-<version>.yaml, one file per API version — the highest version is current) manually — updates are applied directly to the source.

  • API version: 5.13.1
  • SDK version: 5.13.1 (tracks the API version; a 4th revision component — e.g. 5.13.1.1 — denotes client-only fixes)
  • Source specification: api/openapi-5.13.1.yaml

<a id="frameworks-supported"></a>

Frameworks supported

  • .NET 10.0
  • .NET Framework 4.8

<a id="dependencies"></a>

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package System.Text.Json
Install-Package Refit
Install-Package System.ComponentModel.Annotations

<a id="installation"></a>

Installation

Generate the DLL using your preferred tool (e.g. dotnet build)

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using MangaDex.Api;         // the Refit interfaces (IMangaApi, IChapterApi, ...)
using MangaDex.Client;      // SerializerOptions
using MangaDex.Model;
using Refit;

This client is a set of Refit interfaces. You build a client with an HttpClient and RefitSettings that reuses the library's System.Text.Json options; auth and proxying are configured on the HttpClient/HttpClientHandler.

<a id="usage"></a>

Usage

To route through an HTTP proxy (and add a bearer token), configure the HttpClient:

var handler = new HttpClientHandler
{
    Proxy = new System.Net.WebProxy("http://myProxyUrl:80/"),
    UseProxy = true,
};
var http = new HttpClient(handler) { BaseAddress = new Uri("https://api.mangadex.org") };
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);

<a id="getting-started"></a>

Getting Started

using System;
using System.Diagnostics;
using System.Net.Http;
using MangaDex.Api;
using MangaDex.Client;
using Refit;

namespace Example
{
    public class Example
    {
        public static async System.Threading.Tasks.Task Main()
        {
            var settings = new RefitSettings(
                new SystemTextJsonContentSerializer(SerializerOptions.Default));

            var http = new HttpClient { BaseAddress = new Uri("https://api.mangadex.org") };
            var infrastructure = RestService.For<IInfrastructureApi>(http, settings);

            try
            {
                // Ping healthcheck
                string result = await infrastructure.GetPing();
                Debug.WriteLine(result);
            }
            catch (ApiException e)  // Refit.ApiException
            {
                Debug.Print("Exception when calling IInfrastructureApi.GetPing: " + e.Message);
                Debug.Print("Status Code: " + (int)e.StatusCode);
            }
        }
    }
}

<a id="documentation-for-authorization"></a>

Documentation for Authorization

Authentication schemes defined for the API: <a id="Bearer"></a>

Bearer

  • Type: Bearer Authentication
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 Framework net48 is compatible.  net481 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
5.13.1.3 60 8/11/2026
5.13.1.2 82 8/7/2026
5.13.1 107 7/12/2026

Multi-targets net10.0 and net48. Same MangaDex API surface (5.13.1).