Marketplace
BrickLink logo

BrickLink API

bricklink.com

LEGO parts and sets catalog - item details, listings, and price-guide data.

Actions
8
Category
Marketplace
Login
Not required
Output
JSON

Call the BrickLink API

Submit a task, then poll the job until it settles. This example runs act_bricklink_catalog_category_tree.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_bricklink_catalog_category_tree",
    "params": {
      "item_type": "P"
    }
  }'

8 actions on bricklink.com

Read

  • Catalog Category Tree

    act_bricklink_catalog_category_treeread1 credit / call

    Returns the parts or sets catalog category hierarchy with subcategory names, IDs, and listing URLs.

    item_type
    string · required
  • Catalog Item Images

    act_bricklink_catalog_item_imagesread1 credit / call

    Returns image URLs and color variants for a catalog item and color.

    id_item
    string · required
    color_id
    string · required
  • Marketplace Items For Sale

    act_bricklink_marketplace_items_for_saleread2 credits / call

    Returns marketplace seller listings with prices, quantities, condition, and seller details for an item.

    itemid
    string · required
    color
    string · required
  • Parts Catalog Listing

    act_bricklink_parts_catalog_listingread2 credits / call

    Returns a paginated parts list for a catalog subcategory with IDs, names, thumbnails, and links.

    cat_type
    string · required
    category_id
    string · required
    page
    string
  • Price Guide Details

    act_bricklink_price_guide_detailread1 credit / call

    Returns price-guide details with historical sales and for-sale summaries for a part and color.

    part_id
    string · required
    color_id
    string · required
  • Price Guide Summary

    act_bricklink_price_guide_summaryread2 credits / call

    Returns min, average, and max price-guide tiers for an item, color, and currency.

    id_item
    string · required
    color_id
    string · required
    currency
    string · required
  • Site Header Navigation

    act_bricklink_site_header_navigationread1 credit / call

    Returns the header navigation tree with catalog section links for Parts, Sets, and Minifigures.

  • Site Homepage

    act_bricklink_site_homepageread1 credit / call

    Returns featured homepage sets with titles, prices, images, and wanted counts.

BrickLink API questions

Is there an API for BrickLink?
BrickLink does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for bricklink.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape BrickLink data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when bricklink.com changes its markup, Anakin updates the action.
Do I need a BrickLink account?
No. Every BrickLink action listed here runs anonymously — no account and no credentials required.
What does the BrickLink API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Marketplace APIs

All Marketplace sites