OSS TanbouSign in with GitHub

Build REST and HTTP requests in .NET and map responses to C# types

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
9,818
Primary language
C#
License
Apache-2.0
Repository last updated
Sep 28, 2026
On this page

Overview

This client library calls REST and other HTTP APIs from .NET applications. Built as a wrapper around HttpClient, it simplifies URL, query, header, cookie, and body construction together with JSON or XML serialization and deserialization.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Assemble request parameters and bodies through one API

Clients and individual requests can add query values, URL segments, forms, attachments, serialized bodies, and headers. RestSharp serializes C# objects to JSON or XML and sets content headers such as Content-Type.

Sources: [3]

Choose between full response details and typed results

The ExecuteAsync family returns RestResponse or RestResponse<T> with status, content, and error details. Methods such as GetAsync<T> and PostAsync<T> return the deserialized value directly and throw when the call fails.

Sources: [2][4]

Best fit

Implement typed .NET clients for individual external APIs

It fits .NET applications that want to encapsulate URL building, authentication, request models, and response models in an API-specific client. The official guide recommends wrapping calls in a typed client without exposing RestClient publicly.

Sources: [3]

Before adoption

Set migration and exception policies before adoption

Version 107 and later changed the API surface and behavior substantially, so older examples require the official migration guidance. HTTP 404 still produces ResponseStatus.Completed, and exception behavior differs by execution method. The README also states that the project has a single maintainer.

Sources: [2][4][1]

Official sources

  1. [1]RestSharp 114.0.0 README(2026-10-04)
  2. [2]RestSharp v114 quick start(2026-10-04)
  3. [3]RestSharp v114 basics(2026-10-04)
  4. [4]RestSharp v114 error handling(2026-10-04)
  5. [5]RestSharp 114.0.0 release(2026-10-04)
  6. [6]RestSharp GitHub repository metadata(2026-10-04)
  7. [7]RestSharp 114.0.0 license(2026-10-04)
Supplemental curator note

Evaluate RestSharp as a focused layer over HttpClient, rather than as a replacement transport. Because return values and exception behavior vary by execution method, agree on a team-wide calling style before adoption.

Try it in 3 steps

  1. 1

    Create a .NET 8 test project

    Create a small console project away from an existing application and keep this directory for the next commands.

    dotnet new console -n RestSharpDemo --framework net8.0 && cd RestSharpDemo
  2. 2

    Add RestSharp 114.0.0

    Install the same fixed NuGet package version reviewed in this article.

    dotnet add package RestSharp --version 114.0.0
  3. 3

    Send a GET request to a public API

    Call GitHub’s public repository endpoint and print both the HTTP status code and RestSharp response status without credentials.

    printf '%s\n' 'using RestSharp;' '' 'using var client = new RestClient("https://api.github.com");' 'var request = new RestRequest("repos/restsharp/RestSharp").AddHeader("User-Agent", "RestSharpDemo");' 'var response = await client.ExecuteGetAsync(request);' 'Console.WriteLine($"{(int)response.StatusCode} {response.ResponseStatus}");' > Program.cs && dotnet run
Check the official README

Growth

Growth trends · Last 30 days

9,818 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
0
Open PRs
11

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data
Stars
9,818
Forks
2,299
Watchers
414
Open issues
28
Contributors
266
Owner type
Organization
Primary language
C#
License
Apache-2.0
Repository last updated
Sep 28, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?