Soenneker.Rebrickable.Client
11.0.337
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Rebrickable.Client --version 11.0.337
NuGet\Install-Package Soenneker.Rebrickable.Client -Version 11.0.337
<PackageReference Include="Soenneker.Rebrickable.Client" Version="11.0.337" />
<PackageVersion Include="Soenneker.Rebrickable.Client" Version="11.0.337" />
<PackageReference Include="Soenneker.Rebrickable.Client" />
paket add Soenneker.Rebrickable.Client --version 11.0.337
#r "nuget: Soenneker.Rebrickable.Client, 11.0.337"
#:package Soenneker.Rebrickable.Client@11.0.337
#addin nuget:?package=Soenneker.Rebrickable.Client&version=11.0.337
#tool nuget:?package=Soenneker.Rebrickable.Client&version=11.0.337
Soenneker.Rebrickable.Client
Provides a cached HttpClient configured for Rebrickable's LEGO catalog and user-collection API.
Installation
dotnet add package Soenneker.Rebrickable.Client
Configuration
{
"Rebrickable": {
"ApiKey": "your-api-key"
}
}
The client uses https://rebrickable.com/ by default. Set Rebrickable:ClientBaseUrl only when routing through a proxy or compatible endpoint.
Usage
using Soenneker.Rebrickable.Client.Abstract;
using Soenneker.Rebrickable.Client.Registrars;
services.AddRebrickableHttpClientAsSingleton();
public sealed class RebrickableColorService
{
private readonly IRebrickableHttpClient _rebrickable;
public RebrickableColorService(IRebrickableHttpClient rebrickable)
{
_rebrickable = rebrickable;
}
public async Task<string> GetColors(CancellationToken cancellationToken)
{
HttpClient client = await _rebrickable.Get(cancellationToken);
return await client.GetStringAsync("api/v3/lego/colors/", cancellationToken);
}
}
The provider sends Authorization: key <api-key> on every request, as required by Rebrickable. List endpoints are paginated; use their next response value or the page and page_size query parameters rather than assuming the first response is complete.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.914)
- Soenneker.Utils.HttpClientCache (>= 11.0.2143)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Rebrickable.Client:
| Package | Downloads |
|---|---|
|
Soenneker.Rebrickable.ClientUtil
Provides a lazily initialized, authenticated Rebrickable API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.338 | 154 | 11/3/2026 |
| 11.0.337 | 100 | 11/3/2026 |
| 11.0.336 | 107 | 11/3/2026 |
| 11.0.335 | 95 | 11/3/2026 |
| 11.0.334 | 101 | 11/3/2026 |
| 11.0.333 | 297 | 10/27/2026 |
| 11.0.332 | 141 | 10/27/2026 |
| 11.0.331 | 124 | 10/26/2026 |
| 11.0.330 | 118 | 10/26/2026 |
| 11.0.329 | 97 | 10/26/2026 |
| 4.0.328 | 288 | 10/15/2026 |
| 4.0.327 | 111 | 10/14/2026 |
| 4.0.326 | 121 | 10/14/2026 |
| 4.0.324 | 116 | 10/14/2026 |
| 4.0.323 | 124 | 10/14/2026 |
| 4.0.317 | 119 | 10/13/2026 |
| 4.0.316 | 101 | 10/13/2026 |
| 4.0.312 | 136 | 10/12/2026 |
| 4.0.311 | 96 | 10/12/2026 |
| 4.0.310 | 140 | 10/11/2026 |
Updated Soenneker.Utils.HttpClientCache to 11.0.2143