{"repo":"kevbite/CompaniesHouse.NET","free":true,"listed":false,"github":"https://github.com/kevbite/CompaniesHouse.NET","clone":"git clone https://github.com/kevbite/CompaniesHouse.NET.git","description":"A simple .NET client wrapper for CompaniesHouse API","language":"C#","stars":40,"topics":["companieshouse-api","api-client","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"CompaniesHouse.NET A .NET client for the Companies House Public Data API. Upgrading from an earlier version? This is a major, deliberately breaking rewrite. See MIGRATION.md for the full list of changes and before/after snippets. Installation Two NuGet packages are published: Both packages multi-target net8.0 , net9.0 and net10.0 . Getting an API key Register an application on the Companies House developer hub to get an API key for the public data API. Getting started Constructing the client directly CompaniesHouseClient implements IDisposable - always dispose it (or wrap it in a using block) once you're done, since it owns an underlying HttpClient . You can also construct the client from your own HttpClient (useful in tests, or when you want full control over handlers/base address): Dependency injection Install CompaniesHouse.Extensions.Microsoft.DependencyInjection and register the client on your IServiceCollection . Several overloads are available, built on IOptions : Every overload also accepts an optional configureHttpClientBuilder delegate, letting you customise the underlying IHttpClientBuilder (e.g. to add Polly resilience handlers): Once registered, inject ICompaniesHouseClient - the main facade interface - into your dependencies: Document endpoints ( GetDocumentMetadataAsync / DownloadDocumentAsync ) talk to a separate host and are registered independently via AddCompaniesHouseDocumentClient , with the same set of overloads. IConfiguration example Enum/value-type ha","default_branch":null,"files":null,"tree":[],"storefront":"/r/kevbite","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kevbite/CompaniesHouse.NET/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}