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 32 million downloads on NuGet, with average daily download count of 10,000. It's being used by many popular OSS projects, including Roslyn and Swagger. The main purpose of RestSharp is to make synchronous and asynchronous calls to remote resources over HTTP. As the name suggests, the main audience of RestSharp are developers who use REST APIs. However, RestSharp can call any API over HTTP (but not HTTP/2), as long as you have the resource URI and request parameters that you want to send comply with W3C HTTP standards. RestSharp can take care of serializing the request body to JSON or XML and deserialize the response. It can also form a valid request URI based on different parameter kinds.

Features

  • JSON, XML and custom serialization and deserialization
  • Variety of overloads to make synchronous and asynchronous HTTP calls
  • Almost every aspect of an HTTP call can be customized
  • Basic, OAuth 1, OAuth 2, JWT, NTLM are supported, or write your own!
  • Send objects as the request body in JSON or XML, or as a form. Upload and download files as bytes or as streams
  • Add query, URL segment, body, form or header parameter using an easy and fluent API

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow RestSharp

RestSharp Web Site

Other Useful Business Software
Run Any Workload on Compute Engine VMs Icon
Run Any Workload on Compute Engine VMs

From dev environments to AI training, choose preset or custom VMs with 1–96 vCPUs and industry-leading 99.95% uptime SLA.

Compute Engine delivers high-performance virtual machines for web apps, databases, containers, and AI workloads. Choose from general-purpose, compute-optimized, or GPU/TPU-accelerated machine types—or build custom VMs to match your exact specs. With live migration and automatic failover, your workloads stay online. New customers get $300 in free credits.
Try Compute Engine
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RestSharp!

Additional Project Details

Programming Language

C#

Related Categories

C# HTTP Clients, C# JSON Serialization Libraries, C# XML Serialization Libraries, C# API Clients

Registered

2021-07-06