RestSharp 111.4.0

Prefix Reserved
dotnet add package RestSharp --version 111.4.0                
NuGet\Install-Package RestSharp -Version 111.4.0                
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="RestSharp" Version="111.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RestSharp --version 111.4.0                
#r "nuget: RestSharp, 111.4.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RestSharp as a Cake Addin
#addin nuget:?package=RestSharp&version=111.4.0

// Install RestSharp as a Cake Tool
#tool nuget:?package=RestSharp&version=111.4.0                

RestSharp - Simple .NET REST Client

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

RestSharp is a lightweight HTTP API client library. It's a wrapper around HttpClient, not a full-fledged client on its own.

What RestSharp adds to HttpClient:

  • Default parameters of any kind, not just headers
  • Add a parameter of any kind to requests, like query, URL segment, header, cookie, or body
  • Multiple ways to add a request body, including JSON, XML, URL-encoded form data, multipart form data with and without files
  • Built-in serialization and deserilization of JSON, XML, and CSV, as well as the ability to add custom serializers
  • Rich support for authentication

Compatibility note

RestSharp 107 was a major release that brings a lot of changes. We've removed a lot of legacy code and added new features. Finally, RestSharp has moved to HttpClient. We also deprecated the following:

  • SimpleJson in favour of System.Text.Json.JsonSerialzer
  • IRestRequest, and IRestResponse in favour of implementing classes
  • Everything Http and IHttp as those are just wrappers
  • Client configuration moved to RestClientOptions to make the client thread-safe
  • IRestClient interface surface substantially reduced

Most of the client and some of the request options are now in RestClientOptions.

Check v107+ docs for more information.

Packages

Package What it's for
RestSharp The core library, including System.Text.Json serializer and basical XML serializer
RestSharp.Serializers.NewtonsoftJson Use Newtonsoft.Json as a JSON serializer
RestSharp.Serializers.Xml Use custom RestSharp XML serializer for XML
RestSharp.Serializers.CsvHelper Use CsvHelper as a CSV serializer

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Users violated the aforementioned code of conduct will be blocked.

Support

RestSharp is an open-source project with a single maintainer. Do not expect your issue to be resolved unless it concerns a large group of RestSharp users. The best way to resolve your issue is to fix it yourself. Fork the repository and submit a pull request. You can also motivate the maintainer by sponsoring this project.

Contribute

Please read CONTRIBUTING.md for details on the process for reporting issues and submitting pull requests.

Get help

Read the docs: Official Site

Ask a question on StackOverflow with the tag restsharp.

Join RestSharp Discord server: Discord

Find RestSharp on Twitter: @RestSharp

Community

.NET Foundation

This project is a part of the .NET Foundation.

Code Contributors

This project exists thanks to all the people who contribute. <img src="https://opencollective.com/RestSharp/contributors.svg?width=890&button=false">

Financial Contributors

Become a financial contributor and help us sustain our community. Contribute

License

Apache License 2.0

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

NuGet packages (3.7K)

Showing the top 5 NuGet packages that depend on RestSharp:

Package Downloads
RestSharp.Serializers.NewtonsoftJson

Simple REST and HTTP API Client

SheshaMobile.Core

Common application functionality and features to be shared across the framework

SheshaMobile.Modules

The modules module contains common functionality shared across multiple modules

Yandex.Geocoder.v2

Yandex.Geocoder API client for C# / .NET forked by Marat Fakhrutdinov

Okta.Sdk

Official .NET SDK for the Okta API

GitHub repositories (189)

Showing the top 5 popular GitHub repositories that depend on RestSharp:

Repository Stars
duplicati/duplicati
Store securely encrypted backups in the cloud!
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
felixse/FluentTerminal
A Terminal Emulator based on UWP and web technologies.
QuantConnect/Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Version Downloads Last updated
111.4.0 102,079 7/11/2024
111.3.1-alpha.0.7 91 7/11/2024
111.3.1-alpha.0.6 1,452 7/4/2024
111.3.1-alpha.0.5 1,726 6/25/2024
111.3.1-alpha.0.3 259 6/24/2024
111.3.1-alpha.0.2 98 6/24/2024
111.3.1-alpha.0.1 107 6/24/2024
111.3.0 278,702 6/17/2024
111.2.1-alpha.0.6 118 6/17/2024
111.2.1-alpha.0.5 108 6/17/2024
111.2.1-alpha.0.3 130 6/17/2024
111.2.1-alpha.0.2 1,588 6/12/2024
111.2.0 317,776 5/30/2024
111.1.1-alpha.0.4 118 5/30/2024
111.1.1-alpha.0.3 1,223 5/27/2024
111.1.1-alpha.0.2 110 5/27/2024
111.1.0 101,964 5/26/2024
111.0.1-alpha.0.8 118 5/26/2024
111.0.1-alpha.0.7 121 5/26/2024
111.0.1-alpha.0.5 183 5/25/2024
111.0.1-alpha.0.4 1,435 5/22/2024
111.0.1-alpha.0.3 125 5/22/2024
111.0.1-alpha.0.1 126 5/22/2024
111.0.0 55,523 5/22/2024
110.2.1-alpha.0.26 742 5/22/2024
110.2.1-alpha.0.24 228 5/22/2024
110.2.1-alpha.0.23 121 5/22/2024
110.2.1-alpha.0.22 125 5/22/2024
110.2.1-alpha.0.20 22,265 4/5/2024
110.2.1-alpha.0.16 114,692 10/24/2023
110.2.1-alpha.0.15 351 10/24/2023
110.2.1-alpha.0.13 41,670 9/13/2023
110.2.1-alpha.0.11 19,138 8/14/2023
110.2.1-alpha.0.10 36,718 7/4/2023
110.2.1-alpha.0.9 464 7/4/2023
110.2.1-alpha.0.8 366 7/4/2023
110.2.1-alpha.0.7 346 7/4/2023
110.2.1-alpha.0.6 1,290 7/4/2023
110.2.1-alpha.0.5 339 7/4/2023
110.2.1-alpha.0.3 63,141 5/10/2023
110.2.1-alpha.0.2 9,502 5/3/2023
110.2.1-alpha.0.1 23,586 4/10/2023
110.2.0 16,655,602 4/9/2023
110.1.1-alpha.0.7 413 4/9/2023
110.1.1-alpha.0.6 359 4/9/2023
110.1.1-alpha.0.5 340 4/9/2023
110.1.1-alpha.0.4 456 4/8/2023
110.1.0 957,330 4/4/2023
110.0.1-alpha.0.4 365 4/4/2023
110.0.1-alpha.0.3 381 4/4/2023
110.0.1-alpha.0.2 344 4/4/2023
110.0.1-alpha.0.1 350 4/4/2023
110.0.0 148,632 4/3/2023
109.0.2-alpha.0.7 439 4/3/2023
109.0.2-alpha.0.6 4,147 3/31/2023
109.0.2-alpha.0.5 3,886 3/30/2023
109.0.2-alpha.0.2 2,460 3/26/2023
109.0.1 1,353,120 3/12/2023
109.0.0 75,578 3/12/2023
109.0.0-preview.2 56,706 2/17/2023
109.0.0-preview.1 244,210 11/20/2022
108.0.4-alpha.0.29 1,032 3/12/2023
108.0.4-alpha.0.28 360 3/12/2023
108.0.4-alpha.0.27 349 3/12/2023
108.0.4-alpha.0.26 364 3/12/2023
108.0.4-alpha.0.25 356 3/12/2023
108.0.4-alpha.0.22 609 1/10/2023
108.0.4-alpha.0.21 401 1/8/2023
108.0.4-alpha.0.20 396 1/8/2023
108.0.4-alpha.0.19 385 1/8/2023
108.0.4-alpha.0.18 384 1/8/2023
108.0.4-alpha.0.17 372 1/8/2023
108.0.4-alpha.0.16 452 12/29/2022
108.0.3 10,171,386 11/19/2022
108.0.3-alpha.0.20 1,275 11/18/2022
108.0.3-alpha.0.19 412 11/18/2022
108.0.3-alpha.0.18 707 11/18/2022
108.0.3-alpha.0.11 8,453 11/9/2022
108.0.3-alpha.0.10 964 11/8/2022
108.0.3-alpha.0.9 697 11/8/2022
108.0.3-alpha.0.8 399 11/8/2022
108.0.3-alpha.0.5 64,687 9/22/2022
108.0.3-alpha.0.4 1,816 9/20/2022
108.0.2 5,720,859 9/20/2022
108.0.2-alpha.0.11 441 9/20/2022
108.0.2-alpha.0.10 5,064 9/13/2022
108.0.2-alpha.0.9 433 9/20/2022
108.0.2-alpha.0.8 425 9/20/2022
108.0.2-alpha.0.6 49,513 7/31/2022
108.0.2-alpha.0.5 9,396 7/21/2022
108.0.2-alpha.0.4 10,075 7/7/2022
108.0.2-alpha.0.2 470 7/7/2022
108.0.2-alpha.0.1 47,934 6/13/2022
108.0.1 9,147,248 6/7/2022
108.0.1-alpha.0.1 515 6/7/2022
108.0.0 278,726 6/7/2022
107.3.1-alpha.0.40 954 6/7/2022
107.3.1-alpha.0.39 491 6/7/2022
107.3.1-alpha.0.38 454 6/7/2022
107.3.1-alpha.0.26 41,204 5/6/2022
107.3.1-alpha.0.24 14,951 4/14/2022
107.3.1-alpha.0.23 520 4/14/2022
107.3.1-alpha.0.20 7,198 4/4/2022
107.3.1-alpha.0.19 508 4/4/2022
107.3.1-alpha.0.18 11,988 3/22/2022
107.3.1-alpha.0.17 1,122 3/22/2022
107.3.1-alpha.0.16 508 3/22/2022
107.3.1-alpha.0.15 508 3/22/2022
107.3.1-alpha.0.14 5,719 3/13/2022
107.3.1-alpha.0.13 1,320 3/12/2022
107.3.1-alpha.0.6 580 3/12/2022
107.3.1-alpha.0.5 10,570 3/3/2022
107.3.0 7,867,081 2/11/2022
107.2.2-alpha.0.7 788 2/11/2022
107.2.2-alpha.0.6 711 2/11/2022
107.2.2-alpha.0.5 722 2/11/2022
107.2.2-alpha.0.1 2,212 2/7/2022
107.2.1 440,651 2/4/2022
107.2.1-alpha.0.3 741 2/4/2022
107.2.0 106,267 2/3/2022
107.1.3-alpha.0.7 723 2/3/2022
107.1.3-alpha.0.6 767 2/3/2022
107.1.3-alpha.0.5 856 2/2/2022
107.1.3-alpha.0.2 6,203 1/25/2022
107.1.2 477,724 1/25/2022
107.1.2-alpha.0.19 818 1/24/2022
107.1.2-alpha.0.18 899 1/24/2022
107.1.2-alpha.0.14 942 1/23/2022
107.1.2-alpha.0.13 725 1/23/2022
107.1.2-alpha.0.12 727 1/23/2022
107.1.2-alpha.0.10 777 1/22/2022
107.1.2-alpha.0.9 762 1/22/2022
107.1.2-alpha.0.8 839 1/21/2022
107.1.2-alpha.0.7 1,458 1/20/2022
107.1.2-alpha.0.4 777 1/20/2022
107.1.2-alpha.0.3 735 1/20/2022
107.1.2-alpha.0.1 896 1/19/2022
107.1.1 342,282 1/17/2022
107.1.1-alpha.0.3 738 1/19/2022
107.1.1-alpha.0.1 730 1/18/2022
107.1.0 18,828 1/17/2022
107.0.4-alpha.0.11 745 1/17/2022
107.0.4-alpha.0.9 747 1/17/2022
107.0.4-alpha.0.6 1,484 1/13/2022
107.0.4-alpha.0.5 650 1/13/2022
107.0.4-alpha.0.4 3,344 1/12/2022
107.0.3 250,984 1/11/2022
107.0.3-alpha.0.4 541 1/11/2022
107.0.3-alpha.0.2 697 1/10/2022
107.0.3-alpha.0.1 3,179 1/9/2022
107.0.2 74,918 1/9/2022
107.0.2-alpha.0.6 546 1/9/2022
107.0.2-alpha.0.5 576 1/8/2022
107.0.2-alpha.0.4 944 1/7/2022
107.0.2-alpha.0.3 540 1/7/2022
107.0.2-alpha.0.2 1,531 1/7/2022
107.0.2-alpha.0.1 587 1/7/2022
107.0.1 65,267 1/7/2022
107.0.1-alpha.0.2 542 1/7/2022
107.0.1-alpha.0.1 662 1/6/2022
107.0.0-preview.20 848 1/6/2022
107.0.0-preview.19 1,677 1/5/2022
107.0.0-preview.18 2,022 1/3/2022
107.0.0-preview.17 1,099 12/28/2021
107.0.0-preview.14 8,333 12/23/2021
107.0.0-preview.13 3,792 12/21/2021
107.0.0-preview.12 3,132 12/18/2021
107.0.0-preview.11 743 12/17/2021
107.0.0-preview.10 570 12/17/2021
107.0.0-preview.9 586 12/17/2021
107.0.0-preview.8 2,843 12/15/2021
107.0.0-preview.7 566 12/15/2021
107.0.0-preview.6 560 12/15/2021
107.0.0-preview.5 567 12/15/2021
107.0.0-preview.4 993 12/13/2021
107.0.0-preview.2 808 12/13/2021
107.0.0-preview.1 1,345 12/13/2021
106.15.1-alpha.0.1 105,575 12/8/2021
106.15.0 17,946,950 12/8/2021
106.14.1-alpha.0.2 741 12/8/2021
106.13.0 13,074,782 10/30/2021
106.12.0 25,940,273 7/15/2021
106.11.8-alpha.0.40 20,566 7/15/2021
106.11.8-alpha.0.39 3,200 7/15/2021
106.11.8-alpha.0.34 735 7/15/2021
106.11.8-alpha.0.14 126,150 5/5/2021
106.11.8-alpha.0.13 296,261 5/5/2021
106.11.8-alpha.0.12 254,222 12/21/2020
106.11.8-alpha.0.11 30,430 12/9/2020
106.11.8-alpha.0.10 1,658 12/9/2020
106.11.8-alpha.0.7 75,979 10/28/2020
106.11.8-alpha.0.6 788 10/28/2020
106.11.8-alpha.0.4 6,496 10/23/2020
106.11.8-alpha.0.3 7,390 10/23/2020
106.11.8-alpha.0.2 27,265 10/23/2020
106.11.7 32,976,477 9/30/2020
106.11.6-alpha.0.1 1,493 9/30/2020
106.11.5 1,436,784 9/17/2020
106.11.5-alpha.0.21 11,391 9/5/2020
106.11.5-alpha.0.20 1,137 9/4/2020
106.11.5-alpha.0.18 68,015 8/5/2020
106.11.5-alpha.0.17 1,033 8/5/2020
106.11.5-alpha.0.2 109,478 5/13/2020
106.11.5-alpha.0.1 1,184 5/18/2020
106.11.4 22,776,913 5/18/2020
106.11.3-alpha.0.6 1,153 5/11/2020
106.11.3-alpha.0.1 5,747 5/8/2020
106.11.2 403,118 5/7/2020
106.11.1-alpha.0.5 1,016 5/7/2020
106.11.1-alpha.0.1 1,081 5/7/2020
106.10.2-alpha.0.18 1,309 5/6/2020
106.10.2-alpha.0.16 1,003 5/6/2020
106.10.2-alpha.0.15 1,011 5/6/2020
106.10.2-alpha.0.8 174,732 1/23/2020
106.10.2-alpha.0.4 14,913 1/13/2020
106.10.2-alpha.0.3 1,277 1/13/2020
106.10.1 22,589,097 1/12/2020
106.10.1-alpha.0.15 1,348 1/12/2020
106.10.1-alpha.0.9 14,171 1/8/2020
106.10.1-alpha.0.8 1,301 1/8/2020
106.10.0 749,579 1/7/2020
106.9.1-alpha.0.36 1,309 1/7/2020
106.9.1-alpha.0.35 3,348 1/7/2020
106.9.1-alpha.0.34 1,337 1/7/2020
106.9.1-alpha.0.21 2,081 1/6/2020
106.9.1-alpha.0.19 1,289 1/6/2020
106.9.1-alpha.0.18 1,291 1/6/2020
106.9.1-alpha.0.17 1,293 1/6/2020
106.9.1-alpha.0.15 1,248 1/6/2020
106.9.1-alpha.0.11 1,286 1/6/2020
106.9.1-alpha.0.10 1,249 1/6/2020
106.9.1-alpha.0.3 1,585 1/6/2020
106.9.0 171,336 1/6/2020
106.8.10-alpha.0.15 1,532 1/6/2020
106.8.10-alpha.0.13 1,231 1/6/2020
106.8.10-alpha.0.12 1,214 1/6/2020
106.8.10-alpha.0.11 1,326 1/6/2020
106.8.10-alpha.0.10 1,249 1/6/2020
106.8.10-alpha.0.9 1,215 1/6/2020
106.8.10-alpha.0.8 1,223 1/6/2020
106.8.10-alpha.0.7 1,239 1/6/2020
106.8.10-alpha.0.4 1,292 1/6/2020
106.8.10-alpha.0.3 1,279 1/6/2020
106.8.0 39,163 1/6/2020
106.7.1-alpha.0.22 85,971 1/6/2020
106.7.1-alpha.0.21 1,250 1/6/2020
106.7.1-alpha.0.20 40,823 1/5/2020
106.6.10 18,311,903 7/3/2019
106.6.9 13,272,339 2/27/2019
106.6.7 3,655,515 1/16/2019
106.6.6 154,201 1/14/2019
106.6.5 722,085 1/7/2019
106.6.4 88,752 1/7/2019
106.6.3 232,538 1/3/2019
106.6.2 352,221 12/30/2018
106.5.4 6,168,362 10/15/2018
106.5.3 91,980 10/14/2018
106.5.2 450,139 10/8/2018
106.5.1 21,768 10/8/2018
106.5.0 97,066 10/7/2018
106.4.2 1,214,995 9/24/2018
106.4.1 63,691 9/22/2018
106.4.0 427,518 9/18/2018
106.3.1 16,845,454 6/10/2018
106.3.0 663,881 5/31/2018
106.2.2 3,382,038 4/24/2018
106.2.1 5,505,622 1/6/2018
106.2.0 238,534 12/24/2017
106.2.0-alpha0060 6,917 12/22/2017
106.2.0-alpha0032 5,870 12/22/2017
106.2.0-alpha0025 528,508 12/3/2017
106.1.0 2,190,947 11/19/2017
106.1.0-alpha0038 8,570 11/10/2017
106.0.1 937,478 11/8/2017
106.0.0 1,611,324 11/6/2017
106.0.0-alpha0284 56,331 10/22/2017
106.0.0-alpha0282 6,708 10/17/2017
106.0.0-alpha0277 8,277 10/16/2017
105.2.3 26,035,643 8/26/2015
105.2.2 3,439,607 8/19/2015
105.2.1 147,533 8/16/2015
105.1.0 5,320,270 4/30/2015
105.0.1 3,670,163 11/13/2014
105.0.0 649,580 11/1/2014
104.5.0 318,175 10/16/2014
104.4.0 2,566,551 11/19/2013
104.3.3 470,561 10/22/2013
104.2.0 341,246 9/18/2013
104.1.0 1,470,757 9/7/2012
104.0.0 401,947 8/31/2012