API Function - Get Colors

Back to API list

Use this service to get a list of all the colors used by parts in the database. Basically the data in this table.

URL /api/get_colors
Method GET
Parameters key - API Key
format - How to display output data. Valid values: xml, json, csv, tsv
callback - Optional JSONP callback function name

Output data with fields:

  • rb_color_id - Internal Rebrickable color ID used
  • ldraw_color_id - Array of mapped LDraw colors
  • bricklink_color_id - Array of mapped BrickLink colors
  • brickowl_color_id - Array of mapped BrickOwl colors
  • color_name - Color name
  • num_parts - Number of parts the color appears in.
  • num_sets - Number of sets the color appears in.
  • year1 - First year it was used.
  • year2 - Last year it was used.
  • rgb - Hex codes for the RGB value of this color: RRGGBB
  • Error Codes:

  • INVALIDKEY - The API Key is invalid
  • Test Values

    API Key:

    Test Results