← All datasets

Lego Sets

Every Lego set in the open Rebrickable catalog, 28,553 of them, one row each. Columns: set number, name, release year, theme, the top-level theme it rolls up into, piece count, an image link and the Rebrickable page. Sets span 1949 to the present. The largest is the Lego Art World Map at 11,695 pieces, ahead of the Eiffel Tower and Titanic Icons sets, and Star Wars, City and Technic are among the deepest building themes (the Gear theme, which is non-building merchandise, is the most numerous). A fun dataset for analysis: how set sizes have grown over the decades, the biggest builds, and output by theme over time. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.
28,553 rows 1 file last pulled 2026-10-25
Source: Rebrickable
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • How has Lego set size (piece count) grown by decade?
  • Which themes released the most sets per year of existence?
  • Is price per piece rising or falling across eras?
Lego Sets 28,553 rows × 8 columns
Set_NumberNameYearThemeRoot_ThemeNum_PartsImage_URLSet_URL

Questions and answers

What is the Lego Sets dataset?

Every Lego set in the open Rebrickable catalog, 28,553 of them, one row each. Columns: set number, name, release year, theme, the top-level theme it rolls up into, piece count, an image link and the Rebrickable page. Sets span 1949 to the present. The largest is the Lego Art World Map at 11,695 pieces, ahead of the Eiffel Tower and Titanic Icons sets, and Star Wars, City and Technic are among the deepest building themes (the Gear theme, which is non-building merchandise, is the most numerous). A fun dataset for analysis: how set sizes have grown over the decades, the biggest builds, and output by theme over time. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.

How big is the Lego Sets dataset?

28,553 rows in one CSV file, with 8 columns in total: Set_Number, Name, Year, Theme, Root_Theme, Num_Parts, Image_URL, Set_URL.

Where does the data come from?

It is built by programmatically scraping rebrickable.com, last pulled on 2026-10-25. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.

Browse every free dataset on CodeSights