Complete Swift interface to the Brickset API version 3
Search LEGO sets and minifigs by set number, name, era and theme. Look up set metadata, building instructions and images for almost every set. Even manage collections for individual Brickset accounts.
Brickset
package includes a basic CLI for searching LEGO sets and reading building instructions. brickset-cli
demonstrates using the Brickset
extensions to URLCredential
and URLSession
types in your own apps.
% ./brickset-cli key 3-26cC-J3gUn-63bi
API key: •••••••••••••••••
% ./brickset-cli search "heavy haul"
2 sets matched "heavy haul":
➤ 7998 Heavy Hauler
➤ 60098 Heavy-Haul Train
% ./brickset-cli build 60098 -o
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6125616.pdf
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6125620.pdf
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6125622.pdf
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6201488.pdf
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6201493.pdf
https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6201498.pdf
Written in Swift 6 for Apple stuff:
Build with Xcode 16 or newer. Command-line interface depends on Swift Argument Parser.