SA.Automate.Brickset 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SA.Automate.Brickset --version 1.0.0
                    
NuGet\Install-Package SA.Automate.Brickset -Version 1.0.0
                    
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="SA.Automate.Brickset" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SA.Automate.Brickset" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SA.Automate.Brickset" />
                    
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 SA.Automate.Brickset --version 1.0.0
                    
#r "nuget: SA.Automate.Brickset, 1.0.0"
                    
#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 SA.Automate.Brickset@1.0.0
                    
#: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=SA.Automate.Brickset&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SA.Automate.Brickset&version=1.0.0
                    
Install as a Cake Tool

SA.Automate.Brickset

Downloads NuGet GitHub license

Brickset connection types and actions for Umbraco Automate. Look up and search LEGO sets as part of an automation workflow.

What is Brickset?

Brickset is a database of LEGO sets, providing details such as pieces, minifigs, theme, pricing, and images, looked up by set number or free-text search.

What can this be used for?

This package is useful when you want LEGO set data inside an Umbraco Automate workflow, for example:

  • Enriching content: pull set details (name, image, piece count) into content as part of an automation.
  • Conditional content: branch a workflow based on a set's theme, year, or availability.
  • Logging/reporting: record set data alongside other workflow data.

Installation

dotnet add package SA.Automate.Brickset

No further setup required. The composer registers itself automatically via Umbraco's IComposer discovery.

Connection types

This package registers a single Brickset connection type:

  • API Key: required. The Brickset API key used by this connection.

Setup

1. Get an API key

Get an API key from brickset.com.

2. Store the key in appsettings.json (optional)

The connection's API Key field is marked sensitive, so instead of entering the key directly in the backoffice you can store it in appsettings.json and reference it using Umbraco Automate's configuration reference syntax:

{
  "Umbraco": {
    "Automate": {
      "Secrets": {
        "BricksetApiKey": "your-api-key"
      }
    }
  }
}

The API Key field already defaults to $Umbraco:Automate:Secrets:BricksetApiKey, so once this is set you can leave the field as-is when creating the connection below — no need to paste the reference in manually.

3. Create the connection in the backoffice

  1. Go to Automate → Connections and create a new Brickset connection.
  2. Give the connection a name and enter your API Key — either the key itself, or, if you stored it in appsettings.json above, the reference $Umbraco:Automate:Secrets:BricksetApiKey (the field's default value).
  3. Click Test connection to verify. This requests a well-known set to confirm the API key is valid.

Usage

Get Set By Number

Add the Get Set By Number action to any automation and select the connection to use. Available fields:

Field Description
Set Number The LEGO set number to look up, e.g. 71043 or 71043-1. If no variant suffix (e.g. -1) is given, -1 is assumed. Supports ${ binding } expressions.

The action outputs the following, which can be referenced via bindings in later workflow steps:

Output Description
SetId Brickset's internal numeric ID for the set.
Name The set's name, e.g. "Millennium Falcon".
SetNumber The resolved set number including variant suffix, e.g. "71043-1".
Year The year the set was released.
Theme The theme, e.g. "Star Wars".
Subtheme The subtheme, e.g. "Ultimate Collector Series".
Pieces The number of pieces in the set.
Minifigs The number of minifigs included in the set.
ImageUrl The URL of the full-size set image.
ThumbnailUrl The URL of the thumbnail set image.
BricksetUrl The URL of the set's page on Brickset.
Rating The average user rating for the set.
ReviewCount The number of user reviews for the set.
PackagingType The packaging type, e.g. "Box".
Availability The set's availability, e.g. "Retail".
InstructionsCount The number of instructions available for the set.
AgeMin The minimum recommended age for the set.
AgeMax The maximum recommended age for the set.
DimensionsHeight The packaging height in centimetres.
DimensionsWidth The packaging width in centimetres.
DimensionsDepth The packaging depth in centimetres.
DimensionsWeight The packaging weight in grams.
Ean The set's EAN barcode.
Upc The set's UPC barcode.
RetailPriceUs The US retail price in USD, as reported by LEGO.com.
RetailPriceUk The UK retail price in GBP, as reported by LEGO.com.
RetailPriceCa The Canadian retail price in CAD, as reported by LEGO.com.
RetailPriceDe The German retail price in EUR, as reported by LEGO.com.
LastUpdated When Brickset's data for this set was last updated.
RawResponse The full, unprocessed JSON response returned by the Brickset API.

Search Sets

Add the Search Sets action to any automation and select the connection to use. Available fields:

Field Description
Query Optional. Free-text search, e.g. a set name. Supports ${ binding } expressions. At least one of Query, Theme, or Year is required.
Theme Optional. Filters by theme, e.g. "Star Wars". Supports ${ binding } expressions. At least one of Query, Theme, or Year is required.
Year Optional. Filters by release year, e.g. 2023. Supports ${ binding } expressions. At least one of Query, Theme, or Year is required.
Page Size Optional. The maximum number of results to return. Defaults to 20. Supports ${ binding } expressions.

The action outputs the following, which can be referenced via bindings in later workflow steps:

Output Description
MatchCount The total number of sets matching the search, as reported by Brickset (may exceed the page size).
Sets The page of matching sets returned, summarised (SetNumber, Name, Year, Theme, Subtheme, Pieces, Minifigs, ThumbnailUrl, BricksetUrl, Rating, RetailPriceUs, RetailPriceUk, RetailPriceCa, RetailPriceDe).
RawResponse The full, unprocessed JSON response returned by the Brickset API.

Compatibility

Package version Umbraco Automate Umbraco CMS
1.x 17.x – 18.x 17.x – 18.x
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 105 8/9/2026
1.0.0 99 8/5/2026