Using the api I was able to retrieve the info i needed trough the following endpoints and create the following object.
var lego = { "name" : item.n