# restsharp/RestSharp

Simple REST and HTTP API Client for .NET

Repository: https://github.com/restsharp/RestSharp
Canonical: https://ross.abutalabs.com/products/restsharp
Homepage: https://restsharp.dev
Language: C#
License: Apache-2.0
License Family: permissive
Last push: 2026-06-02T14:48:54+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 41, longevity 100
- inputs: {"age_days": 6135, "days_push": 92, "days_rel": 181, "gap_med": 258.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9824, forks 2307 (observed 2026-08-28T04:10:37.372120+00:00)

## What it is
RestSharp is a lightweight REST and HTTP API client library for .NET, built as a wrapper around HttpClient. It adds convenient parameter handling, JSON/XML/CSV serialization, and built-in authentication support on top of the standard HttpClient.

## Use cases
- call REST APIs from C# with automatic JSON serialization
- add query, header, cookie, and URL segment parameters to HTTP requests
- authenticate against APIs with basic auth or OAuth2 token refresh
- send multipart form data and file uploads over HTTP
- deserialize API responses into strongly-typed C# objects
- integrate an HTTP client with Microsoft dependency injection and IHttpClientFactory

## When to choose
- you're a .NET developer who wants a friendlier API than raw HttpClient for REST calls
- you need built-in serialization/deserialization of JSON, XML, or CSV request and response bodies
- you want convenient authentication support including OAuth2 token lifecycle handling
- you need easy handling of parameters, cookies, redirects, and multipart forms

## When to avoid
- you're happy with plain HttpClient and prefer zero extra dependencies
- you need a full-featured HTTP client with advanced low-level control beyond what the wrapper exposes
- you require guaranteed fast issue resolution - the project has a single maintainer
- you're on a legacy RestSharp version below v107, since the API surface changed significantly

## Facets
- artifact type: library
- maturity: stable
- function: http-client, serialization, auth
- domain: web-development, apis, backend, developer-tools
- platform: dotnet, cross-platform
- tags: rest-client, http-api, nuget, csharp, json-serialization, oauth2, dependency-injection

## Member repositories
- restsharp/RestSharp (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:37.372120+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:20:56.639659+00:00, confidence not recorded.
  - readme: https://github.com/restsharp/RestSharp (fetched 2026-08-28T04:10:37.372120+00:00, sha 0ab9d3df1acb)
  - homepage: https://restsharp.dev (fetched 2026-08-29T08:20:33.186080+00:00, sha 3c507516cebf)
  - site_page: https://restsharp.dev/docs/changelog (fetched 2026-08-29T08:20:33.188348+00:00, sha e392550eb5a4)
  - site_page: https://restsharp.dev/docs/next/changelog (fetched 2026-08-29T08:20:33.190139+00:00, sha ae816f82ce86)
  - site_page: https://restsharp.dev/docs/v113/changelog (fetched 2026-08-29T08:20:33.191724+00:00, sha 67bdfba8e592)
  - site_page: https://restsharp.dev/docs/v112/changelog (fetched 2026-08-29T08:20:33.194112+00:00, sha cd8ac185c872)
  - site_page: https://restsharp.dev/docs/v111/intro (fetched 2026-08-29T08:20:33.195861+00:00, sha a472b14227a6)
  - site_page: https://restsharp.dev/docs/v110/changelog (fetched 2026-08-29T08:20:33.197572+00:00, sha deb977f37b1c)
  - site_page: https://restsharp.dev/docs/intro (fetched 2026-08-29T08:20:33.199051+00:00, sha 17eabca18e8e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
