Here we provide a description of the optical behavior of nickelate heterostructures, that have recently gained remarkable interest, particularly those based on LaNiO3 (LNO), the unique nickelate that does not exhibit antiferromagnetic phase. Thus one may think to control its ground state by tuning several parameters, like two-dimensionality, strain due to the substrate and doping. In particular we have addressed the optical behavior in different LNO heterostructures in order to understand how some of the above mentioned degrees of freedom make rise a metal to insulator transition (MIT) in these systems.Taking the cue from the case of (LaNiO3)n/(LaMnO3)2 superlattices, in which interfacial doping makes them a system that is not a pure combination of LNO and LMO, we have studied LaNiO3/LaAlO3 (LNO/LAO) heterostructures. The interest of these systems is that the tuning of the dimensionality is the cause of the suppression of the Fermi-liquid behaviour in the metallic LNO and the occurrence of a metal-to-insulator transition. In particular, the optical conductivity of the thin films well reproduces that of thick LNO, while the conductivity of the SL becomes insulating, confirming the MIT observed by transport measurements. Another example of the dimensionality tuning in nickelates heterostructures is the Lan+1NinO3n+1 Ruddlesden-Popper series (R-P series), in which the intercalation of the rock salt LaO with n layers of the perovskite LaNiO3 provides an intrinsic tuning of the dimensionality of the LNO heterostructure itself, without physically changing the number of LNO unit cells. In particular, we found thatthe optical conductivity of larger n resembles that of the bulk metallic LNO, while for smaller n the system undergoes a metal to insulator transition, perfectly recovering the LNO/LAO behaviour.