Soenneker.Rebrickable.Client
4.0.263
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Rebrickable.Client --version 4.0.263
NuGet\Install-Package Soenneker.Rebrickable.Client -Version 4.0.263
<PackageReference Include="Soenneker.Rebrickable.Client" Version="4.0.263" />
<PackageVersion Include="Soenneker.Rebrickable.Client" Version="4.0.263" />
<PackageReference Include="Soenneker.Rebrickable.Client" />
paket add Soenneker.Rebrickable.Client --version 4.0.263
#r "nuget: Soenneker.Rebrickable.Client, 4.0.263"
#:package Soenneker.Rebrickable.Client@4.0.263
#addin nuget:?package=Soenneker.Rebrickable.Client&version=4.0.263
#tool nuget:?package=Soenneker.Rebrickable.Client&version=4.0.263
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.868)
- Soenneker.Utils.HttpClientCache (>= 4.0.2031)
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.276 | 0 | 9/5/2026 |
| 4.0.275 | 8 | 9/5/2026 |
| 4.0.274 | 49 | 9/4/2026 |
| 4.0.272 | 61 | 9/4/2026 |
| 4.0.271 | 48 | 9/4/2026 |
| 4.0.269 | 55 | 9/4/2026 |
| 4.0.268 | 49 | 9/3/2026 |
| 4.0.267 | 137 | 9/1/2026 |
| 4.0.266 | 96 | 8/31/2026 |
| 4.0.265 | 99 | 8/31/2026 |
| 4.0.264 | 102 | 8/31/2026 |
| 4.0.263 | 81 | 8/31/2026 |
| 4.0.261 | 81 | 8/30/2026 |
| 4.0.260 | 227 | 8/26/2026 |
| 4.0.259 | 110 | 8/26/2026 |
| 4.0.258 | 101 | 8/26/2026 |
| 4.0.257 | 125 | 8/25/2026 |
| 4.0.256 | 150 | 8/22/2026 |
| 4.0.255 | 118 | 8/21/2026 |
| 4.0.254 | 111 | 8/21/2026 |
Align Rebrickable generated paths