Soenneker.Rebrickable.Client 11.0.330

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Rebrickable.Client --version 11.0.330
                    
NuGet\Install-Package Soenneker.Rebrickable.Client -Version 11.0.330
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Rebrickable.Client" Version="11.0.330" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Rebrickable.Client" Version="11.0.330" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Rebrickable.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Rebrickable.Client --version 11.0.330
                    
#r "nuget: Soenneker.Rebrickable.Client, 11.0.330"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Rebrickable.Client@11.0.330
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Rebrickable.Client&version=11.0.330
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Rebrickable.Client&version=11.0.330
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 154 10/27/2026
11.0.332 122 10/27/2026
11.0.331 117 10/26/2026
11.0.330 109 10/26/2026
11.0.329 91 10/26/2026
4.0.328 278 10/15/2026
4.0.327 107 10/14/2026
4.0.326 117 10/14/2026
4.0.324 110 10/14/2026
4.0.323 118 10/14/2026
4.0.317 115 10/13/2026
4.0.316 97 10/13/2026
4.0.312 131 10/12/2026
4.0.311 92 10/12/2026
4.0.310 136 10/11/2026
4.0.309 98 10/11/2026
4.0.308 121 10/11/2026
4.0.307 143 10/9/2026
4.0.306 228 10/1/2026
4.0.305 133 9/29/2026
Loading failed

Update dependency Soenneker.Extensions.Configuration to 11.0.914 (#626)