Get LEGO® set info, images and instructions from Brickset
GetSet
extends URLSession
with async/await functions that return deserialized, modeled set info and media URLs. Search sets by set number, name or keyword query.
Requires a free Brickset API key, persisted safely in the system keychain.
GetSet
includes a basic CLI that downloads data, images and building instructions for a given set number, name or keyword query. Demonstrates using the GetSet
extensions to URLCredential
and URLSession
.
Set and validate Brickset API key:
./getset-cli key 3-26cC-J3gUn-63bi
Download images and instructions for a specific set:
./getset-cli get 60098-1 -d
Read the manual:
./getset-cli -h
Written in Swift 6 for Apple stuff:
Build with Xcode 16 or newer. Command-line interface depends on Swift Argument Parser.