π¦ ClawHub
Brickset
by @stanestane
Human-friendly Brickset API v3 access for LEGO set lookup and Brickset automation. Use when you need to search LEGO sets, browse themes, years, or subthemes,...
TERMINAL
clawhub install bricksetπ About This Skill
name: brickset description: Human-friendly Brickset API v3 access for LEGO set lookup and Brickset automation. Use when you need to search LEGO sets, browse themes, years, or subthemes, validate a Brickset API key, fetch building instructions or additional images, inspect API usage, or build scripts and agents on top of Brickset web services.
Brickset
Use this skill for real Brickset API v3 operations with either raw JSON output or readable text summaries.
Requirements
BRICKSET_API_KEY must be set in the environment or workspace .env, or passed with --api-keyWhat works well
check-key β validate the API keyusage-stats β inspect 30-day API usagethemes β list Brickset themessubthemes β list subthemes for a themeyears β list release years, globally or per themesearch β simple wrapper around getSetsget-sets β raw getSets access with JSON paramsinstructions2 β fetch instructions by set numberadditional-images β fetch extra image URLs by Brickset setIDraw β call any Brickset method directly when the built-in subcommands are not enoughOutput modes
--format text: readable summaries for humansCommands
# Validate key
python {{baseDir}}/scripts/brickset.py --format text check-keyUsage stats
python {{baseDir}}/scripts/brickset.py --format text usage-statsBrowse catalog metadata
python {{baseDir}}/scripts/brickset.py --format text themes
python {{baseDir}}/scripts/brickset.py --format text subthemes Technic
python {{baseDir}}/scripts/brickset.py --format text years
python {{baseDir}}/scripts/brickset.py --format text years --theme SpaceSearch sets
python {{baseDir}}/scripts/brickset.py --format text search "Galaxy Explorer" --page-size 5
python {{baseDir}}/scripts/brickset.py --format text search Blacktron --theme Space --page-size 10 --order-by YearFromDESC
python {{baseDir}}/scripts/brickset.py get-sets --params '{"setNumber":"6990-1","extendedData":1}'Instructions and images
python {{baseDir}}/scripts/brickset.py --format text instructions2 10497-1
python {{baseDir}}/scripts/brickset.py --format text additional-images 1700Direct/raw API access
python {{baseDir}}/scripts/brickset.py raw getReviews --param setID=1700
python {{baseDir}}/scripts/brickset.py --format text raw getCollection --param userHash=
Notes
getSets consumes Brickset API quota.getSets endpoint is happier when userHash is present, so the CLI sends an empty one automatically for anonymous searches.raw for methods like login, checkUserHash, getReviews, getCollection, or collection-management calls that are not wrapped yet.Reference
references/api.md when you need the compact parameter guide for getSets or a reminder of which methods are available.Script
scripts/brickset.py β main CLI entrypointπ Tips & Best Practices
getSets consumes Brickset API quota.getSets endpoint is happier when userHash is present, so the CLI sends an empty one automatically for anonymous searches.raw for methods like login, checkUserHash, getReviews, getCollection, or collection-management calls that are not wrapped yet.