Abstract Flares close to the solar limb, where the footpoints are occulted, can reveal the spectrum and structure of the coronal looptop source in X-rays. We aim at studying the properties of the corresponding energetic electrons near their acceleration site, without footpoint contamination. To this end, a statistical study of partially occulted flares observed with Reuven Ramaty High-Energy Solar Spectroscopic Imager is presented here, covering a large part of solar cycles 23 and 24. We perform detailed spectra, imaging, and light curve analyses for 116 flares and include contextual observations from SDO and STEREO when available, providing further insights into flare emission that were previously not accessible. We find that most spectra are fitted well with a thermal component plus a broken power-law, non-thermal component. A thin-target kappa distribution model gives satisfactory fits after the addition of a thermal component. X-ray imaging reveals small spatial separation between the thermal and non-thermal components, except for a few flares with a richer coronal source structure. A comprehensive light curve analysis shows a very good correlation between the derivative of the soft X-ray flux (from GOES) and the hard X-rays for a substantial number of flares, indicative of the Neupert effect. The results confirm that non-thermal particles are accelerated in the corona and estimated timescales support the validity of a thin-target scenario with similar magnitudes of thermal and non-thermal energy fluxes.