⚠ Deprecated: Legacy
This package is deprecated. Please use the new package "Modrinth.Net" instead. It has the same base functionality, but with a new name and namespace. How to upgrade is explained in the README.md file of the new package in the "Upgrade from 2.X.X to 3.0.0" section for Modrinth.Net version 3.0.1.
Suggested alternative: Modrinth.Net
A Modrinth API wrapper using RestEase
$ dotnet add package Modrinth.RestClientusing Modrinth.RestClient;
// Modrinth recommends to set a uniquely-identifying user-agent
var api = ModrinthApi.NewClient(userAgent: "My_Awesome_Project");
var project = await api.GetProjectAsync("sodium");
Console.WriteLine(project.Description);