Soenneker.Rebrickable.Client
4.0.303
Prefix Reserved
dotnet add package Soenneker.Rebrickable.Client --version 4.0.303
NuGet\Install-Package Soenneker.Rebrickable.Client -Version 4.0.303
<PackageReference Include="Soenneker.Rebrickable.Client" Version="4.0.303" />
<PackageVersion Include="Soenneker.Rebrickable.Client" Version="4.0.303" />
<PackageReference Include="Soenneker.Rebrickable.Client" />
paket add Soenneker.Rebrickable.Client --version 4.0.303
#r "nuget: Soenneker.Rebrickable.Client, 4.0.303"
#:package Soenneker.Rebrickable.Client@4.0.303
#addin nuget:?package=Soenneker.Rebrickable.Client&version=4.0.303
#tool nuget:?package=Soenneker.Rebrickable.Client&version=4.0.303
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Configuration (>= 4.0.897)
- Soenneker.Utils.HttpClientCache (>= 4.0.2096)
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 |
|---|---|---|
| 4.0.303 | 42 | 9/26/2026 |
| 4.0.302 | 36 | 9/26/2026 |
| 4.0.301 | 47 | 9/25/2026 |
| 4.0.299 | 46 | 9/25/2026 |
| 4.0.298 | 45 | 9/24/2026 |
| 4.0.297 | 217 | 9/17/2026 |
| 4.0.296 | 95 | 9/16/2026 |
| 4.0.295 | 119 | 9/16/2026 |
| 4.0.294 | 118 | 9/16/2026 |
| 4.0.293 | 112 | 9/15/2026 |
| 4.0.292 | 171 | 9/13/2026 |
| 4.0.291 | 92 | 9/13/2026 |
| 4.0.290 | 120 | 9/13/2026 |
| 4.0.289 | 123 | 9/13/2026 |
| 4.0.288 | 118 | 9/12/2026 |
| 4.0.287 | 90 | 9/12/2026 |
| 4.0.285 | 197 | 9/9/2026 |
| 4.0.284 | 131 | 9/9/2026 |
| 4.0.283 | 113 | 9/9/2026 |
| 4.0.282 | 131 | 9/8/2026 |
Updated Multiple NuGet packages