Soenneker.Rebrickable.OpenApiClient 4.0.318

Prefix Reserved
dotnet add package Soenneker.Rebrickable.OpenApiClient --version 4.0.318
                    
NuGet\Install-Package Soenneker.Rebrickable.OpenApiClient -Version 4.0.318
                    
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.OpenApiClient" Version="4.0.318" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Rebrickable.OpenApiClient" Version="4.0.318" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Rebrickable.OpenApiClient" />
                    
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.OpenApiClient --version 4.0.318
                    
#r "nuget: Soenneker.Rebrickable.OpenApiClient, 4.0.318"
                    
#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.OpenApiClient@4.0.318
                    
#: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.OpenApiClient&version=4.0.318
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=4.0.318
                    
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.OpenApiClient

Generated request builders for Rebrickable LEGO sets, parts, colors, minifigures, elements, themes, and user collections.

Installation

dotnet add package Soenneker.Rebrickable.OpenApiClient

Usage

using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Rebrickable.OpenApiClient;

using var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Add("Authorization", $"key {apiKey}");

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient)
{
    BaseUrl = "https://rebrickable.com"
};

var client = new RebrickableOpenApiClient(adapter);
await using Stream colors = await client.Api.V3.Lego.Colors.GetAsync(
    cancellationToken: cancellationToken);

Rebrickable requires the literal key prefix in the Authorization header. The generated operations return raw response streams because that is how the source schema describes their payloads; callers own and must dispose those streams.

List endpoints are paginated. Use the page and page_size query parameters or deserialize the response's next value rather than assuming the first stream contains every result.

Product 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. 
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.OpenApiClient:

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.318 29 9/5/2026
4.0.317 75 9/4/2026
4.0.316 51 9/4/2026
4.0.315 91 9/3/2026
4.0.314 64 9/3/2026
4.0.313 42 9/3/2026
4.0.312 79 9/1/2026
4.0.311 128 8/31/2026
4.0.310 126 8/31/2026
4.0.309 83 8/30/2026
4.0.308 128 8/29/2026
4.0.307 153 8/28/2026
4.0.306 220 8/25/2026
4.0.305 341 8/20/2026
4.0.304 157 8/18/2026
4.0.303 120 8/16/2026
4.0.302 102 8/15/2026
4.0.301 123 8/14/2026
4.0.300 154 8/12/2026
4.0.299 132 8/10/2026
Loading failed

Automated Update