Javascript API based in extract and GET in json