{% extends "base.html" %} {% block title %}Bulk Import Sets - Admin - {{ app_name }}{% endblock %} {% block content %}

Bulk Import Sets from Brickset

Import multiple official LEGO sets at once using Brickset data

Back to Admin
{% if not brickset_configured %}
Brickset API Not Configured

Please add your Brickset API credentials to the .env file:

BRICKSET_API_KEY=your_api_key_here
BRICKSET_USERNAME=your_username
BRICKSET_PASSWORD=your_password

Get your API key at: https://brickset.com/tools/webservices/requestkey

{% endif %}
Import Sets
Enter LEGO set numbers (e.g., 8860, 10497-1, 42100). Variants like -1 are supported.
Sets will be added to this user's collection
Brickset has API rate limits. Increase delay if you get rate limit errors.
How It Works
  1. Enter set numbers (one per line)
  2. Select which user to assign them to
  3. Choose throttle delay
  4. Click "Import Sets"
  5. System fetches data from Brickset
  6. Sets are added to database!
API Rate Limits

Brickset has API rate limits!

  • Recommended: Import 10-20 sets at a time
  • Throttle: Use 0.5s-1.0s delay between requests
  • If rate limited: Wait 5-10 minutes and retry
  • Large batches: Split into multiple smaller imports
What Gets Imported
  • Set Number
  • Set Name
  • Theme
  • Year Released
  • Piece Count
  • Cover Image (from Brickset)

You can upload instructions separately later!
Pro Tips
  • Start Small: Try 5-10 sets first to test
  • Duplicates: Sets already in database will be skipped
  • Not Found: Invalid set numbers will be reported
  • Formats: Works with variants like 10497-1
Example Sets You Can Try
Technic:
8860, 8880, 42100, 42110
Creator Expert:
10497, 10294, 10283
Ideas:
21318, 21330, 21341
Star Wars:
75192, 75313, 75331

{% endblock %}