RestSharp 111.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RestSharp --version 111.0.0
NuGet\Install-Package RestSharp -Version 111.0.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.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RestSharp --version 111.0.0
#r "nuget: RestSharp, 111.0.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.0.0

// Install RestSharp as a Cake Tool
#tool nuget:?package=RestSharp&version=111.0.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.6K)

Showing the top 5 NuGet packages that depend on RestSharp:

Package Downloads
RestSharp.Serializers.NewtonsoftJson The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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 (186)

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.
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
Version Downloads Last updated
111.0.1-alpha.0.4 227 5/22/2024
111.0.1-alpha.0.3 48 5/22/2024
111.0.1-alpha.0.1 53 5/22/2024
111.0.0 6,884 5/22/2024
110.2.1-alpha.0.26 44 5/22/2024
110.2.1-alpha.0.24 88 5/22/2024
110.2.1-alpha.0.23 44 5/22/2024
110.2.1-alpha.0.22 54 5/22/2024
110.2.1-alpha.0.20 9,651 4/5/2024
110.2.1-alpha.0.16 90,587 10/24/2023
110.2.1-alpha.0.15 316 10/24/2023
110.2.1-alpha.0.13 36,797 9/13/2023
110.2.1-alpha.0.11 15,593 8/14/2023
110.2.1-alpha.0.10 30,370 7/4/2023
110.2.1-alpha.0.9 421 7/4/2023
110.2.1-alpha.0.8 335 7/4/2023
110.2.1-alpha.0.7 316 7/4/2023
110.2.1-alpha.0.6 1,258 7/4/2023
110.2.1-alpha.0.5 306 7/4/2023
110.2.1-alpha.0.3 60,719 5/10/2023
110.2.1-alpha.0.2 8,906 5/3/2023
110.2.1-alpha.0.1 21,945 4/10/2023
110.2.0 13,139,801 4/9/2023
110.1.1-alpha.0.7 352 4/9/2023
110.1.1-alpha.0.6 319 4/9/2023
110.1.1-alpha.0.5 305 4/9/2023
110.1.1-alpha.0.4 423 4/8/2023
110.1.0 814,475 4/4/2023
110.0.1-alpha.0.4 330 4/4/2023
110.0.1-alpha.0.3 345 4/4/2023
110.0.1-alpha.0.2 310 4/4/2023
110.0.1-alpha.0.1 314 4/4/2023
110.0.0 134,187 4/3/2023
109.0.2-alpha.0.7 399 4/3/2023
109.0.2-alpha.0.6 3,013 3/31/2023
109.0.2-alpha.0.5 3,723 3/30/2023
109.0.2-alpha.0.2 2,382 3/26/2023
109.0.1 1,217,895 3/12/2023
109.0.0 59,321 3/12/2023
109.0.0-preview.2 51,914 2/17/2023
109.0.0-preview.1 237,404 11/20/2022
108.0.4-alpha.0.29 811 3/12/2023
108.0.4-alpha.0.28 327 3/12/2023
108.0.4-alpha.0.27 320 3/12/2023
108.0.4-alpha.0.26 328 3/12/2023
108.0.4-alpha.0.25 320 3/12/2023
108.0.4-alpha.0.22 567 1/10/2023
108.0.4-alpha.0.21 368 1/8/2023
108.0.4-alpha.0.20 361 1/8/2023
108.0.4-alpha.0.19 352 1/8/2023
108.0.4-alpha.0.18 349 1/8/2023
108.0.4-alpha.0.17 337 1/8/2023
108.0.4-alpha.0.16 415 12/29/2022
108.0.3 9,159,609 11/19/2022
108.0.3-alpha.0.20 1,236 11/18/2022
108.0.3-alpha.0.19 377 11/18/2022
108.0.3-alpha.0.18 671 11/18/2022
108.0.3-alpha.0.11 8,119 11/9/2022
108.0.3-alpha.0.10 915 11/8/2022
108.0.3-alpha.0.9 652 11/8/2022
108.0.3-alpha.0.8 362 11/8/2022
108.0.3-alpha.0.5 58,446 9/22/2022
108.0.3-alpha.0.4 1,741 9/20/2022
108.0.2 5,377,760 9/20/2022
108.0.2-alpha.0.11 410 9/20/2022
108.0.2-alpha.0.10 4,822 9/13/2022
108.0.2-alpha.0.9 401 9/20/2022
108.0.2-alpha.0.8 388 9/20/2022
108.0.2-alpha.0.6 46,999 7/31/2022
108.0.2-alpha.0.5 9,072 7/21/2022
108.0.2-alpha.0.4 9,915 7/7/2022
108.0.2-alpha.0.2 438 7/7/2022
108.0.2-alpha.0.1 47,360 6/13/2022
108.0.1 8,471,449 6/7/2022
108.0.1-alpha.0.1 479 6/7/2022
108.0.0 235,062 6/7/2022
107.3.1-alpha.0.40 895 6/7/2022
107.3.1-alpha.0.39 448 6/7/2022
107.3.1-alpha.0.38 423 6/7/2022
107.3.1-alpha.0.26 39,032 5/6/2022
107.3.1-alpha.0.24 14,575 4/14/2022
107.3.1-alpha.0.23 488 4/14/2022
107.3.1-alpha.0.20 6,772 4/4/2022
107.3.1-alpha.0.19 476 4/4/2022
107.3.1-alpha.0.18 11,387 3/22/2022
107.3.1-alpha.0.17 1,090 3/22/2022
107.3.1-alpha.0.16 473 3/22/2022
107.3.1-alpha.0.15 475 3/22/2022
107.3.1-alpha.0.14 5,327 3/13/2022
107.3.1-alpha.0.13 1,287 3/12/2022
107.3.1-alpha.0.6 548 3/12/2022
107.3.1-alpha.0.5 10,110 3/3/2022
107.3.0 7,489,863 2/11/2022
107.2.2-alpha.0.7 757 2/11/2022
107.2.2-alpha.0.6 678 2/11/2022
107.2.2-alpha.0.5 689 2/11/2022
107.2.2-alpha.0.1 2,145 2/7/2022
107.2.1 425,759 2/4/2022
107.2.1-alpha.0.3 712 2/4/2022
107.2.0 103,896 2/3/2022
107.1.3-alpha.0.7 691 2/3/2022
107.1.3-alpha.0.6 735 2/3/2022
107.1.3-alpha.0.5 823 2/2/2022
107.1.3-alpha.0.2 6,083 1/25/2022
107.1.2 460,975 1/25/2022
107.1.2-alpha.0.19 785 1/24/2022
107.1.2-alpha.0.18 867 1/24/2022
107.1.2-alpha.0.14 910 1/23/2022
107.1.2-alpha.0.13 693 1/23/2022
107.1.2-alpha.0.12 693 1/23/2022
107.1.2-alpha.0.10 743 1/22/2022
107.1.2-alpha.0.9 730 1/22/2022
107.1.2-alpha.0.8 804 1/21/2022
107.1.2-alpha.0.7 1,425 1/20/2022
107.1.2-alpha.0.4 745 1/20/2022
107.1.2-alpha.0.3 704 1/20/2022
107.1.2-alpha.0.1 859 1/19/2022
107.1.1 328,300 1/17/2022
107.1.1-alpha.0.3 705 1/19/2022
107.1.1-alpha.0.1 696 1/18/2022
107.1.0 18,241 1/17/2022
107.0.4-alpha.0.11 717 1/17/2022
107.0.4-alpha.0.9 715 1/17/2022
107.0.4-alpha.0.6 1,436 1/13/2022
107.0.4-alpha.0.5 595 1/13/2022
107.0.4-alpha.0.4 3,024 1/12/2022
107.0.3 242,358 1/11/2022
107.0.3-alpha.0.4 509 1/11/2022
107.0.3-alpha.0.2 665 1/10/2022
107.0.3-alpha.0.1 3,142 1/9/2022
107.0.2 73,974 1/9/2022
107.0.2-alpha.0.6 511 1/9/2022
107.0.2-alpha.0.5 544 1/8/2022
107.0.2-alpha.0.4 902 1/7/2022
107.0.2-alpha.0.3 507 1/7/2022
107.0.2-alpha.0.2 1,447 1/7/2022
107.0.2-alpha.0.1 547 1/7/2022
107.0.1 62,172 1/7/2022
107.0.1-alpha.0.2 509 1/7/2022
107.0.1-alpha.0.1 624 1/6/2022
107.0.0-preview.20 807 1/6/2022
107.0.0-preview.19 1,590 1/5/2022
107.0.0-preview.18 1,983 1/3/2022
107.0.0-preview.17 1,067 12/28/2021
107.0.0-preview.14 8,298 12/23/2021
107.0.0-preview.13 3,717 12/21/2021
107.0.0-preview.12 3,098 12/18/2021
107.0.0-preview.11 708 12/17/2021
107.0.0-preview.10 535 12/17/2021
107.0.0-preview.9 556 12/17/2021
107.0.0-preview.8 2,763 12/15/2021
107.0.0-preview.7 535 12/15/2021
107.0.0-preview.6 527 12/15/2021
107.0.0-preview.5 527 12/15/2021
107.0.0-preview.4 946 12/13/2021
107.0.0-preview.2 680 12/13/2021
107.0.0-preview.1 1,291 12/13/2021
106.15.1-alpha.0.1 97,307 12/8/2021
106.15.0 16,506,525 12/8/2021
106.14.1-alpha.0.2 704 12/8/2021
106.13.0 12,174,200 10/30/2021
106.12.0 23,722,232 7/15/2021
106.11.8-alpha.0.40 19,379 7/15/2021
106.11.8-alpha.0.39 3,157 7/15/2021
106.11.8-alpha.0.34 701 7/15/2021
106.11.8-alpha.0.14 124,455 5/5/2021
106.11.8-alpha.0.13 260,503 5/5/2021
106.11.8-alpha.0.12 244,595 12/21/2020
106.11.8-alpha.0.11 30,278 12/9/2020
106.11.8-alpha.0.10 1,599 12/9/2020
106.11.8-alpha.0.7 75,215 10/28/2020
106.11.8-alpha.0.6 756 10/28/2020
106.11.8-alpha.0.4 6,220 10/23/2020
106.11.8-alpha.0.3 7,135 10/23/2020
106.11.8-alpha.0.2 26,340 10/23/2020
106.11.7 32,014,738 9/30/2020
106.11.6-alpha.0.1 1,454 9/30/2020
106.11.5 1,401,274 9/17/2020
106.11.5-alpha.0.21 11,304 9/5/2020
106.11.5-alpha.0.20 1,098 9/4/2020
106.11.5-alpha.0.18 66,159 8/5/2020
106.11.5-alpha.0.17 988 8/5/2020
106.11.5-alpha.0.2 108,497 5/13/2020
106.11.5-alpha.0.1 1,134 5/18/2020
106.11.4 22,411,108 5/18/2020
106.11.3-alpha.0.6 1,116 5/11/2020
106.11.3-alpha.0.1 5,705 5/8/2020
106.11.2 393,770 5/7/2020
106.11.1-alpha.0.5 978 5/7/2020
106.11.1-alpha.0.1 1,045 5/7/2020
106.10.2-alpha.0.18 1,082 5/6/2020
106.10.2-alpha.0.16 970 5/6/2020
106.10.2-alpha.0.15 967 5/6/2020
106.10.2-alpha.0.8 173,354 1/23/2020
106.10.2-alpha.0.4 14,644 1/13/2020
106.10.2-alpha.0.3 1,188 1/13/2020
106.10.1 22,153,961 1/12/2020
106.10.1-alpha.0.15 1,273 1/12/2020
106.10.1-alpha.0.9 13,419 1/8/2020
106.10.1-alpha.0.8 1,216 1/8/2020
106.10.0 724,194 1/7/2020
106.9.1-alpha.0.36 1,237 1/7/2020
106.9.1-alpha.0.35 3,255 1/7/2020
106.9.1-alpha.0.34 1,256 1/7/2020
106.9.1-alpha.0.21 2,003 1/6/2020
106.9.1-alpha.0.19 1,215 1/6/2020
106.9.1-alpha.0.18 1,217 1/6/2020
106.9.1-alpha.0.17 1,222 1/6/2020
106.9.1-alpha.0.15 1,174 1/6/2020
106.9.1-alpha.0.11 1,207 1/6/2020
106.9.1-alpha.0.10 1,169 1/6/2020
106.9.1-alpha.0.3 1,501 1/6/2020
106.9.0 167,782 1/6/2020
106.8.10-alpha.0.15 1,461 1/6/2020
106.8.10-alpha.0.13 1,154 1/6/2020
106.8.10-alpha.0.12 1,144 1/6/2020
106.8.10-alpha.0.11 1,249 1/6/2020
106.8.10-alpha.0.10 1,174 1/6/2020
106.8.10-alpha.0.9 1,140 1/6/2020
106.8.10-alpha.0.8 1,154 1/6/2020
106.8.10-alpha.0.7 1,165 1/6/2020
106.8.10-alpha.0.4 1,217 1/6/2020
106.8.10-alpha.0.3 1,204 1/6/2020
106.8.0 36,412 1/6/2020
106.7.1-alpha.0.22 85,835 1/6/2020
106.7.1-alpha.0.21 1,179 1/6/2020
106.7.1-alpha.0.20 40,584 1/5/2020
106.6.10 17,870,819 7/3/2019
106.6.9 12,966,109 2/27/2019
106.6.7 3,586,156 1/16/2019
106.6.6 150,765 1/14/2019
106.6.5 717,140 1/7/2019
106.6.4 86,659 1/7/2019
106.6.3 230,443 1/3/2019
106.6.2 349,331 12/30/2018
106.5.4 6,060,433 10/15/2018
106.5.3 89,422 10/14/2018
106.5.2 443,714 10/8/2018
106.5.1 21,416 10/8/2018
106.5.0 95,989 10/7/2018
106.4.2 1,190,122 9/24/2018
106.4.1 61,858 9/22/2018
106.4.0 421,228 9/18/2018
106.3.1 16,553,736 6/10/2018
106.3.0 654,516 5/31/2018
106.2.2 3,213,246 4/24/2018
106.2.1 5,366,982 1/6/2018
106.2.0 235,947 12/24/2017
106.2.0-alpha0060 6,804 12/22/2017
106.2.0-alpha0032 5,769 12/22/2017
106.2.0-alpha0025 528,313 12/3/2017
106.1.0 2,084,546 11/19/2017
106.1.0-alpha0038 8,488 11/10/2017
106.0.1 913,312 11/8/2017
106.0.0 1,576,341 11/6/2017
106.0.0-alpha0284 54,555 10/22/2017
106.0.0-alpha0282 6,618 10/17/2017
106.0.0-alpha0277 8,045 10/16/2017
105.2.3 25,624,331 8/26/2015
105.2.2 3,403,261 8/19/2015
105.2.1 145,211 8/16/2015
105.1.0 5,192,820 4/30/2015
105.0.1 3,597,907 11/13/2014
105.0.0 631,597 11/1/2014
104.5.0 314,829 10/16/2014
104.4.0 2,527,009 11/19/2013
104.3.3 466,038 10/22/2013
104.2.0 336,356 9/18/2013
104.1.0 1,450,795 9/7/2012
104.0.0 392,077 8/31/2012