摘要:Context. Due to the extreme extinction towards the Galactic centre (AV ∼ 30 mag), its stellar population is mainly studied in the near-infrared (NIR) regime. Therefore, a proper analysis of the NIR extinction curve is necessary to fully characterise the stellar structure and population of the inner part of the galaxy.Aims. We studied the dependence of the extinction index (αλ) in the NIR on the line of sight, wavelength, and extinction.Methods. We used the GALACTICNUCLEUS imaging survey, a high angular resolution catalogue (0.2″) for the inner part of the Galaxy inJHKs, and studied the spatial variation in the extinction index. We also applied two independent methods based on red clump stars to compute the extinction index between different bands and its variation with wavelength.Results. We did not detect any significant line-of-sight or extinction variation inαwithin the studied region in the nuclear stellar disc. The extinction index betweenJHandHKsdiffers by 0.19 ± 0.05. We obtained mean values for the extinction indicesαJH = 2.43 ± 0.03 andαHKs = 2.23 ± 0.03. The dependence of the extinction index on the wavelength could explain the differences obtained forαλin the literature since it was assumed constant for the NIR regime.