RestSharp

RestSharp

Probably, the most popular REST API client library for .NET

Get Started →

Serialization

JSON, XML and custom serialization and deserialization

Fully async

Variety of overloads to make asynchronous HTTP calls

Extensive configuration

Almost every aspect of an HTTP call can be customized

Authentication

Basic, OAuth1, OAuth2, and JWT are supported. Not enough? Write your own!

Forms, request body, and files

Send objects as the request body in JSON or XML, or as a form. Upload and download files as bytes or as streams.

Parameters

Add query, URL segment, body, form or header parameter using an easy and fluent API

RestSharp is probably the most popular HTTP client library for .NET. Featuring automatic serialization and deserialization, request and response type detection, variety of authentications and other useful features, it is being used by hundreds of thousands of projects.

RestSharp passed over 190 million downloads on NuGet, with average daily download count over 43,000. It's being used by many popular OSS projects, including Roslyn and Swagger.

Supported by AWSopen in new window.

AWS logo

Supported by the .NET Foundationopen in new window.