Soenneker.Rebrickable.Client
11.0.329
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Rebrickable.Client --version 11.0.329
NuGet\Install-Package Soenneker.Rebrickable.Client -Version 11.0.329
<PackageReference Include="Soenneker.Rebrickable.Client" Version="11.0.329" />
<PackageVersion Include="Soenneker.Rebrickable.Client" Version="11.0.329" />
<PackageReference Include="Soenneker.Rebrickable.Client" />
paket add Soenneker.Rebrickable.Client --version 11.0.329
#r "nuget: Soenneker.Rebrickable.Client, 11.0.329"
#:package Soenneker.Rebrickable.Client@11.0.329
#addin nuget:?package=Soenneker.Rebrickable.Client&version=11.0.329
#tool nuget:?package=Soenneker.Rebrickable.Client&version=11.0.329
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.913)
- Soenneker.Utils.HttpClientCache (>= 4.0.2128)
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.333 | 45 | 10/27/2026 |
| 11.0.332 | 59 | 10/27/2026 |
| 11.0.331 | 68 | 10/26/2026 |
| 11.0.330 | 69 | 10/26/2026 |
| 11.0.329 | 55 | 10/26/2026 |
| 4.0.328 | 229 | 10/15/2026 |
| 4.0.327 | 104 | 10/14/2026 |
| 4.0.326 | 113 | 10/14/2026 |
| 4.0.324 | 106 | 10/14/2026 |
| 4.0.323 | 113 | 10/14/2026 |
| 4.0.317 | 111 | 10/13/2026 |
| 4.0.316 | 94 | 10/13/2026 |
| 4.0.312 | 128 | 10/12/2026 |
| 4.0.311 | 90 | 10/12/2026 |
| 4.0.310 | 132 | 10/11/2026 |
| 4.0.309 | 95 | 10/11/2026 |
| 4.0.308 | 119 | 10/11/2026 |
| 4.0.307 | 136 | 10/9/2026 |
| 4.0.306 | 225 | 10/1/2026 |
| 4.0.305 | 132 | 9/29/2026 |
Merge remote-tracking branch 'origin/main'
# Conflicts:
# test/Soenneker.Rebrickable.Client.Tests/Soenneker.Rebrickable.Client.Tests.csproj