Build better C# API Clients: OpenAPI and Kiota

Integrating with external APIs has become a fundamental part of modern application development. However, building and maintaining API client libraries can be tedious and error-prone, especially when dealing with complex APIs that change frequently. Traditionally, developers have written these clients manually, which has resulted in a lot of code and models that need maintaining when the API evolves. In this blog post, we will explore an alternative approach using Microsoft Kiota for automatically generating strongly-typed API clients from an API’s OpenAPI specification. There’s also the added benefit that all client implementations look and feel similar, providing a better developer experience. ...

May 11, 2025 · 6 min · 1211 words · Frederik Baun