We give an explicit formula for the twisted Koecher–Maaß series of the Duke–Imamoglu–Ikeda lift. As an application we prove a certain algebraicity result for the values of twisted Rankin–Selberg series at integers of half-integral weight modular forms, which was not treated by Shimura (J Math Soc Japan 33:649–672, 1981).