API Function - Get Element

Back to API list

Use this service to get a part's design id and color based on a LEGO element id.

URL /api/get_element
Method GET
Parameters key - API Key
format - How to display output data. Valid values: xml, json, csv, tsv
callback - Optional JSONP callback function name
element_id - The Element ID to look up
Returns

Output data with fields:

  • part_id - Part ID
  • color - Part Color ID
  • Error Codes:

  • INVALIDKEY - The API Key is invalid
  • NOPART - The part could not be found
  • Test Values

    API Key:
    Format:
    Element ID:
    Test

    Test Results