Photovoltaic devices based on 2D materials still suffer from low quantum efficiencies due to interfacial charge recombination and inefficient contacts. Here, the authors design photovoltaic detectors and photodiodes based on MoS2 and doped AsP heterojunction with unilateral depletion region reporting high external quantum efficiency of 71% under zero applied bias.