Catalysis of the reaction: N-(5-phospho-beta-D-ribosyl)anthranilate + diphosphate = 5-phospho-alpha-D-ribose 1-diphosphate + anthranilate.
N-(5-phospho-D-ribosyl)-anthranilate:diphosphate phospho-alpha-D-ribosyltransferase activity