Rest.Net 2.1.1

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Rest.Net --version 2.1.1
NuGet\Install-Package Rest.Net -Version 2.1.1
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="Rest.Net" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rest.Net --version 2.1.1
#r "nuget: Rest.Net, 2.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rest.Net as a Cake Addin
#addin nuget:?package=Rest.Net&version=2.1.1

// Install Rest.Net as a Cake Tool
#tool nuget:?package=Rest.Net&version=2.1.1

A simple to use REST client for .NET Core

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Rest.Net:

Package Downloads

An unofficial .NET Core SDK for Facebook API


Package Description


A library for sending metrics to Google Analytics to keep statistics of .NET apps

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.2 3,701 3/15/2020
2.2.1 31,153 10/7/2019
2.2.0 510 9/10/2019
2.1.1 2,224 8/4/2019
2.1.0 413 8/4/2019
2.0.1 5,628 3/3/2018
2.0.0 1,166 8/16/2017
1.0.6 3,898 6/24/2017
1.0.5 758 6/24/2017
1.0.4 853 6/23/2017
1.0.3 828 6/18/2017
1.0.2 840 6/8/2017
1.0.1 914 5/24/2017
1.0.0 2,015 12/6/2016

Major refactoring.
Library is not more async and opinionated - Working with tasks is now completly async.
Remove unneeded overloads and code making the library smaller and more lightweight.
Support for internal response properties serialization.
Support returning anonymous types as result from an API call.

Change the request AddContent to SetContent to be more explicit about what this method actually does (add implies that more Content can later be added, but in reality it overrides existing Content).

Update to .NET Standard 2.0.
Library version also updated to 2.0.0 to be consisted with the new 2.0.
For erlier .NET Core or .NET Standard versions, use version < 2.0.0

Minor bug fix

Minor bug fix
Allow using a base url with a relative path in it

Fix bug with authorization header setup

Fix bug that's causing a string response to raise an error flag