Soenneker.Rebrickable.OpenApiClient 4.0.334

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Rebrickable.OpenApiClient --version 4.0.334
                    
NuGet\Install-Package Soenneker.Rebrickable.OpenApiClient -Version 4.0.334
                    
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.334" />
                    
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.334" />
                    
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.334
                    
#r "nuget: Soenneker.Rebrickable.OpenApiClient, 4.0.334"
                    
#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.334
                    
#: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.334
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=4.0.334
                    
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.335 54 9/25/2026
4.0.334 71 9/24/2026
4.0.333 64 9/23/2026
4.0.332 93 9/22/2026
4.0.331 102 9/21/2026
4.0.330 106 9/20/2026
4.0.329 99 9/19/2026
4.0.328 110 9/18/2026
4.0.327 143 9/16/2026
4.0.326 136 9/15/2026
4.0.325 140 9/14/2026
4.0.324 232 9/12/2026
4.0.323 130 9/11/2026
4.0.322 128 9/10/2026
4.0.321 152 9/9/2026
4.0.320 220 9/8/2026
4.0.319 243 9/6/2026
4.0.318 118 9/5/2026
4.0.317 165 9/4/2026
4.0.316 133 9/4/2026
Loading failed

Enable Native AOT compatibility analysis