.N .NET Landscape

WebApiClient

HTTP Clients & Resilience
github.com/dotnetcore/WebApiClient

A REST API library with better functionality, performance, and scalability than refit

clientformhttpclientjsonjson-rpc-clientoauth2-clientopenapirefitrestfulretrofitswaggerwebapi
GitHub stars
2,137
Forks
445
Open issues
14
NuGet downloads
1,329,675
latest 2.1.6
License
MIT
Language
C#
Last push
3 months ago
17 Jul 2026
Created
28 Mar 2017

README | 中文文档

WebApiClient

A REST API library with better functionality, performance, and scalability than refit.

Features

Semantic Declaration

Client development only requires semantic declaration of C# interfaces.

Diverse serialization

Supports json, xml, form and other custom serialization methods.

Full trimmed and AOT

Supports full trimmed and AOT publishing of .NET8.

Aspect-Oriented Programming

Supports multiple interceptors, filters, logs, retries, custom caches and other aspects.

Code Syntax Analysis

Provides syntax analysis and prompts for interface code declarations to help developers avoid using improper syntax when declaring interfaces.

Quick access

Supports OAuth2 and token management extension packages to facilitate identity authentication and authorization.

Swagger to code

Supports parsing local or remote OpenApi documents to generate WebApiClientCore interface code, which simplifies the workload of interface declaration.

Powerful performance

In BenchmarkDotNet, the performance is 2.X times ahead of the similar product refit under various requests.

Documentation support

https://webapiclient.github.io/