RestSharp 112.1.0

RestSharp - Simple .NET REST Client

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.

Financial Contributors

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

License

Apache License 2.0

Showing the top 20 packages that depend on RestSharp.

Packages Downloads
DocuSign.Admin
The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
1
DocuSign.eSign.dll
The DocuSign NuGet package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-csharp-client repository. Join the eSign revolution!
1
DocuSign.eSign.dll
The DocuSign NuGet package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-csharp-client repository. Join the eSign revolution!
3
DocuSign.eSign.dll
The DocuSign NuGet package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-csharp-client repository. Join the eSign revolution!
4

.NET Framework 4.7.1

.NET Framework 4.8

.NET 6.0

  • No dependencies.

.NET 7.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
112.1.1-alpha.0.4 0 17.12.2024
112.1.1-alpha.0.1 0 16.12.2024
112.1.0 5 26.11.2024
112.0.1-alpha.0.1 3 20.12.2024
112.0.0 3 20.12.2024
111.4.2-alpha.0.3 3 20.12.2024
111.4.1 0 30.07.2024
111.4.1-alpha.0.7 3 24.12.2024
111.4.1-alpha.0.1 0 30.07.2024
111.4.0 0 11.07.2024
111.3.1-alpha.0.7 3 20.12.2024
111.3.1-alpha.0.6 0 04.07.2024
111.3.1-alpha.0.5 0 25.06.2024
111.3.1-alpha.0.3 0 24.06.2024
111.3.1-alpha.0.2 0 24.06.2024
111.3.1-alpha.0.1 0 24.06.2024
111.3.0 3 19.12.2024
111.2.1-alpha.0.6 0 17.06.2024
111.2.1-alpha.0.5 3 20.12.2024
111.2.1-alpha.0.3 0 17.06.2024
111.2.1-alpha.0.2 3 20.12.2024
111.2.0 0 30.05.2024
111.1.1-alpha.0.4 3 19.12.2024
111.1.1-alpha.0.3 3 19.12.2024
111.1.1-alpha.0.2 3 20.12.2024
111.1.0 0 26.05.2024
111.0.1-alpha.0.8 3 20.12.2024
111.0.1-alpha.0.7 3 20.12.2024
111.0.1-alpha.0.5 3 20.12.2024
111.0.1-alpha.0.4 3 19.12.2024
111.0.1-alpha.0.3 0 22.05.2024
111.0.1-alpha.0.1 3 19.12.2024
111.0.0 3 24.12.2024
110.2.1-alpha.0.26 3 20.12.2024
110.2.1-alpha.0.24 3 16.12.2024
110.2.1-alpha.0.23 0 22.05.2024
110.2.1-alpha.0.22 0 22.05.2024
110.2.1-alpha.0.20 3 16.12.2024
110.2.1-alpha.0.16 0 24.10.2023
110.2.1-alpha.0.15 3 16.12.2024
110.2.1-alpha.0.13 0 13.09.2023
110.2.1-alpha.0.11 0 14.08.2023
110.2.1-alpha.0.10 0 04.07.2023
110.2.1-alpha.0.9 0 04.07.2023
110.2.1-alpha.0.8 0 04.07.2023
110.2.1-alpha.0.7 3 16.12.2024
110.2.1-alpha.0.6 3 17.12.2024
110.2.1-alpha.0.5 0 04.07.2023
110.2.1-alpha.0.3 0 10.05.2023
110.2.1-alpha.0.2 0 03.05.2023
110.2.1-alpha.0.1 0 10.04.2023
110.2.0 7 08.04.2024
110.1.1-alpha.0.7 3 20.12.2024
110.1.1-alpha.0.6 3 20.12.2024
110.1.1-alpha.0.5 3 20.12.2024
110.1.1-alpha.0.4 0 08.04.2023
110.1.0 3 17.12.2024
110.0.1-alpha.0.4 0 04.04.2023
110.0.1-alpha.0.3 0 04.04.2023
110.0.1-alpha.0.2 0 04.04.2023
110.0.1-alpha.0.1 0 04.04.2023
110.0.0 3 16.12.2024
109.0.2-alpha.0.7 3 17.12.2024
109.0.2-alpha.0.6 3 17.12.2024
109.0.2-alpha.0.5 0 30.03.2023
109.0.2-alpha.0.2 0 26.03.2023
109.0.1 3 19.12.2024
109.0.0 0 12.03.2023
109.0.0-preview.2 3 19.12.2024
109.0.0-preview.1 3 16.12.2024
108.0.4-alpha.0.29 3 20.12.2024
108.0.4-alpha.0.28 0 12.03.2023
108.0.4-alpha.0.27 3 20.12.2024
108.0.4-alpha.0.26 3 20.12.2024
108.0.4-alpha.0.25 3 20.12.2024
108.0.4-alpha.0.22 3 19.12.2024
108.0.4-alpha.0.21 3 20.12.2024
108.0.4-alpha.0.20 3 20.12.2024
108.0.4-alpha.0.19 3 20.12.2024
108.0.4-alpha.0.18 3 20.12.2024
108.0.4-alpha.0.17 3 20.12.2024
108.0.4-alpha.0.16 3 19.12.2024
108.0.3 3 19.12.2024
108.0.3-alpha.0.20 3 20.12.2024
108.0.3-alpha.0.19 3 20.12.2024
108.0.3-alpha.0.18 3 20.12.2024
108.0.3-alpha.0.11 3 24.12.2024
108.0.3-alpha.0.10 0 08.11.2022
108.0.3-alpha.0.9 3 24.12.2024
108.0.3-alpha.0.8 3 20.12.2024
108.0.3-alpha.0.5 3 23.12.2024
108.0.3-alpha.0.4 3 19.12.2024
108.0.2 3 24.12.2024
108.0.2-alpha.0.11 3 20.12.2024
108.0.2-alpha.0.10 0 13.09.2022
108.0.2-alpha.0.9 3 20.12.2024
108.0.2-alpha.0.8 3 20.12.2024
108.0.2-alpha.0.6 0 31.07.2022
108.0.2-alpha.0.5 3 20.12.2024
108.0.2-alpha.0.4 3 20.12.2024
108.0.2-alpha.0.2 3 20.12.2024
108.0.2-alpha.0.1 3 20.12.2024
108.0.1 3 20.12.2024
108.0.1-alpha.0.1 3 20.12.2024
108.0.0 0 07.06.2022
107.3.1-alpha.0.40 3 20.12.2024
107.3.1-alpha.0.39 0 07.06.2022
107.3.1-alpha.0.38 3 20.12.2024
107.3.1-alpha.0.26 3 24.12.2024
107.3.1-alpha.0.24 3 20.12.2024
107.3.1-alpha.0.23 3 20.12.2024
107.3.1-alpha.0.20 0 04.04.2022
107.3.1-alpha.0.19 3 20.12.2024
107.3.1-alpha.0.18 4 01.10.2024
107.3.1-alpha.0.17 3 20.12.2024
107.3.1-alpha.0.16 3 20.12.2024
107.3.1-alpha.0.15 3 19.12.2024
107.3.1-alpha.0.14 3 20.12.2024
107.3.1-alpha.0.13 3 20.12.2024
107.3.1-alpha.0.6 3 20.12.2024
107.3.1-alpha.0.5 3 19.12.2024
107.3.0 3 20.12.2024
107.2.2-alpha.0.7 0 11.02.2022
107.2.2-alpha.0.6 0 11.02.2022
107.2.2-alpha.0.5 3 20.12.2024
107.2.2-alpha.0.1 0 07.02.2022
107.2.1 3 19.12.2024
107.2.1-alpha.0.3 3 19.12.2024
107.2.0 3 24.12.2024
107.1.3-alpha.0.7 0 03.02.2022
107.1.3-alpha.0.6 3 16.12.2024
107.1.3-alpha.0.5 0 02.02.2022
107.1.3-alpha.0.2 0 25.01.2022
107.1.2 0 25.01.2022
107.1.2-alpha.0.19 3 20.12.2024
107.1.2-alpha.0.18 0 24.01.2022
107.1.2-alpha.0.14 3 20.12.2024
107.1.2-alpha.0.13 3 20.12.2024
107.1.2-alpha.0.12 0 23.01.2022
107.1.2-alpha.0.10 0 22.01.2022
107.1.2-alpha.0.9 0 22.01.2022
107.1.2-alpha.0.8 0 21.01.2022
107.1.2-alpha.0.7 0 20.01.2022
107.1.2-alpha.0.4 0 20.01.2022
107.1.2-alpha.0.3 3 20.12.2024
107.1.2-alpha.0.1 0 19.01.2022
107.1.1 0 17.01.2022
107.1.1-alpha.0.3 3 20.12.2024
107.1.1-alpha.0.1 0 18.01.2022
107.1.0 0 17.01.2022
107.0.4-alpha.0.11 3 20.12.2024
107.0.4-alpha.0.9 3 20.12.2024
107.0.4-alpha.0.6 0 13.01.2022
107.0.4-alpha.0.5 0 13.01.2022
107.0.4-alpha.0.4 3 20.12.2024
107.0.3 3 20.12.2024
107.0.3-alpha.0.4 3 20.12.2024
107.0.3-alpha.0.2 3 20.12.2024
107.0.3-alpha.0.1 0 09.01.2022
107.0.2 3 20.12.2024
107.0.2-alpha.0.6 0 09.01.2022
107.0.2-alpha.0.5 0 08.01.2022
107.0.2-alpha.0.4 0 07.01.2022
107.0.2-alpha.0.3 0 07.01.2022
107.0.2-alpha.0.2 0 07.01.2022
107.0.2-alpha.0.1 3 19.12.2024
107.0.1 3 20.12.2024
107.0.1-alpha.0.2 0 07.01.2022
107.0.1-alpha.0.1 3 20.12.2024
107.0.0-preview.20 3 20.12.2024
107.0.0-preview.19 3 20.12.2024
107.0.0-preview.18 3 20.12.2024
107.0.0-preview.17 3 23.12.2024
107.0.0-preview.14 3 20.12.2024
107.0.0-preview.13 3 20.12.2024
107.0.0-preview.12 3 19.12.2024
107.0.0-preview.11 3 24.12.2024
107.0.0-preview.10 0 17.12.2021
107.0.0-preview.9 0 17.12.2021
107.0.0-preview.8 3 20.12.2024
107.0.0-preview.7 0 15.12.2021
107.0.0-preview.6 3 20.12.2024
107.0.0-preview.5 0 15.12.2021
107.0.0-preview.4 0 13.12.2021
107.0.0-preview.2 3 24.12.2024
107.0.0-preview.1 3 19.12.2024
106.15.1-alpha.0.1 0 08.12.2021
106.15.0 3 19.12.2024
106.14.1-alpha.0.2 3 20.12.2024
106.13.0 0 30.10.2021
106.12.0 0 15.07.2021
106.11.8-alpha.0.40 3 20.12.2024
106.11.8-alpha.0.39 0 15.07.2021
106.11.8-alpha.0.34 3 20.12.2024
106.11.8-alpha.0.14 3 19.12.2024
106.11.8-alpha.0.13 3 20.12.2024
106.11.8-alpha.0.12 3 20.12.2024
106.11.8-alpha.0.11 3 20.12.2024
106.11.8-alpha.0.10 0 09.12.2020
106.11.8-alpha.0.7 3 19.12.2024
106.11.8-alpha.0.6 0 28.10.2020
106.11.8-alpha.0.4 0 23.10.2020
106.11.8-alpha.0.3 0 23.10.2020
106.11.8-alpha.0.2 3 19.12.2024
106.11.7 0 30.09.2020
106.11.6-alpha.0.1 0 30.09.2020
106.11.5 0 17.09.2020
106.11.5-alpha.0.21 3 20.12.2024
106.11.5-alpha.0.20 3 20.12.2024
106.11.5-alpha.0.18 3 23.12.2024
106.11.5-alpha.0.17 3 19.12.2024
106.11.5-alpha.0.2 3 24.12.2024
106.11.5-alpha.0.1 0 18.05.2020
106.11.4 0 18.05.2020
106.11.3-alpha.0.6 3 24.12.2024
106.11.3-alpha.0.1 0 08.05.2020
106.11.2 0 07.05.2020
106.11.1-alpha.0.5 0 07.05.2020
106.11.1-alpha.0.1 0 07.05.2020
106.10.2-alpha.0.18 3 20.12.2024
106.10.2-alpha.0.16 0 06.05.2020
106.10.2-alpha.0.15 0 06.05.2020
106.10.2-alpha.0.8 0 23.01.2020
106.10.2-alpha.0.4 0 13.01.2020
106.10.2-alpha.0.3 0 13.01.2020
106.10.1 3 19.12.2024
106.10.1-alpha.0.15 3 20.12.2024
106.10.1-alpha.0.9 3 19.12.2024
106.10.1-alpha.0.8 3 20.12.2024
106.10.0 3 19.12.2024
106.9.1-alpha.0.36 0 07.01.2020
106.9.1-alpha.0.35 3 20.12.2024
106.9.1-alpha.0.34 0 07.01.2020
106.9.1-alpha.0.21 3 19.12.2024
106.9.1-alpha.0.19 0 06.01.2020
106.9.1-alpha.0.18 0 06.01.2020
106.9.1-alpha.0.17 3 20.12.2024
106.9.1-alpha.0.15 3 20.12.2024
106.9.1-alpha.0.11 0 06.01.2020
106.9.1-alpha.0.10 3 19.12.2024
106.9.1-alpha.0.3 0 06.01.2020
106.9.0 3 19.12.2024
106.8.10-alpha.0.15 3 19.12.2024
106.8.10-alpha.0.13 3 19.12.2024
106.8.10-alpha.0.12 3 20.12.2024
106.8.10-alpha.0.11 3 20.12.2024
106.8.10-alpha.0.10 3 20.12.2024
106.8.10-alpha.0.9 3 20.12.2024
106.8.10-alpha.0.8 3 19.12.2024
106.8.10-alpha.0.7 0 06.01.2020
106.8.10-alpha.0.4 3 19.12.2024
106.8.10-alpha.0.3 0 06.01.2020
106.8.0 3 20.12.2024
106.7.1-alpha.0.22 0 06.01.2020
106.7.1-alpha.0.21 3 19.12.2024
106.7.1-alpha.0.20 3 20.12.2024
106.6.10 3 27.08.2024
106.6.9 0 27.02.2019
106.6.7 0 16.01.2019
106.6.6 0 14.01.2019
106.6.5 0 07.01.2019
106.6.4 0 07.01.2019
106.6.3 3 20.12.2024
106.6.2 3 20.12.2024
106.5.4 3 17.12.2024
106.5.3 0 14.10.2018
106.5.2 0 08.10.2018
106.5.1 0 08.10.2018
106.5.0 0 07.10.2018
106.4.2 0 24.09.2018
106.4.1 0 22.09.2018
106.4.0 3 19.12.2024
106.3.1 3 20.12.2024
106.3.0 0 31.05.2018
106.2.2 0 24.04.2018
106.2.1 0 06.01.2018
106.2.0 0 24.12.2017
106.2.0-alpha0060 0 22.12.2017
106.2.0-alpha0032 3 20.12.2024
106.2.0-alpha0025 0 03.12.2017
106.1.0 0 19.11.2017
106.1.0-alpha0038 0 10.11.2017
106.0.1 3 20.12.2024
106.0.0 0 06.11.2017
106.0.0-alpha0284 3 20.12.2024
106.0.0-alpha0282 3 20.12.2024
106.0.0-alpha0277 0 16.10.2017
105.2.3 3 20.12.2024
105.2.2 3 24.12.2024
105.2.1 0 16.08.2015
105.1.0 3 07.08.2024
105.0.1 0 13.11.2014
105.0.0 0 01.11.2014
104.5.0 0 16.10.2014
104.4.0 3 20.12.2024
104.3.3 0 22.10.2013
104.2.0 3 19.12.2024
104.1.0 0 07.09.2012
104.0.0 3 20.12.2024