First recorded (as “Ready or Not”) by Sam the Sham & The Pharoahs (1966).
Hit version by Jay & the Techniques (US #6/R&B #8/CAN #61 1967).
From the wiki: “Sam the Sham and the Pharaohs released a non-single version entitled ‘Ready or Not’, written by Maurice Irby, Jr., on their 1966 The Best of Sam the Sham and the Pharaohs (MGM SE-4422). ‘Ready or Not’ was then retitled ‘Apples, Peaches, Pumpkin Pie’ when recorded by Jay & the Techniques in 1967.
“Bobby Hebb (‘Sunny‘) was originally offered ‘Apples, Peaches, Pumpkin Pie’, but rejected the song due to its ‘novelty sound’. After Hebb declined, record producer Jerry Ross offered the song to Jay & the Techniques.