The acquisition of the precise spatial distribution of precipitation is of great importance and necessity in many fields, such as hydrology, meteorology and ecological environments. However, in the arid and semiarid regions of Northwest China, especially over mountainous areas such as the Heihe River basin (HRB), the scarcity and uneven distribution of rainfall stations have created certain challenges in gathering information that accurately describes the spatial distribution of precipitation for use in applications. In this study, the accuracy of precipitation estimates from eight high-resolution gridded precipitation products (CMORPHv1-CRT, CRU TSv.4.05, ERA5, GSMaP_NRT, IMERG V06B-Final, MSWEPv2.0, PERSIANN-CDR and TRMM 3B42v7) are comprehensively evaluated by referring to the precipitation observations from 23 stations over the HRB using six indices (root mean square error, standard deviation, Pearson correlation coefficient, relative deviation, mean error and Kling–Gupta efficiency) from different spatial and temporal scales. The results show that at an annual scale, MSWEP has the highest accuracy over the entire basin, while PERSIANN, CRU and ERA5 show the most accurate results in the upper, middle and lower reaches of the HRB, respectively. At a seasonal scale, the performance of IMERG, CRU and ERA5 is superior to that of the other products in all seasons in the upper, middle and lower reaches, respectively. Over the entire HRB, PERSIANN displays the smallest deviation in all seasons except for spring. TRMM shows the highest accuracy in spring and autumn, while MSWEP and CRU show the highest accuracy in summer and winter, respectively. At a monthly scale, TRMM is superior to the other products, with a relatively stronger correlation almost every month, while GSMaP is inferior to the other products. Moreover, MSWEP and PERSIANN perform relatively best, with favorable statistical results around almost every station, while GSMaP shows the worse performance. In addition, ERA5 tends to overestimate higher values, while GSMaP tends to overestimate lower values over the entire basin. Moreover, the overestimation of ERA5 tends to appear in the upper reach area, while that of GSMaP tends to appear in the lower reach area. Only CRU and PERSIANN yield underestimations of precipitation, with the strongest tendency appearing in the upper reach area. The results of this study display some findings on the uncertainties of several frequently used precipitation datasets in the high mountains and poorly gauged regions in the HRB and will be helpful to researchers in various fields who need high-resolution gridded precipitation datasets over the HRB, as well as to data producers who want to improve their products.