First recorded (as “Ready or Not”) by Sam the Sham & The Pharoahs (1966).
Hit version by Jay & the Techniques (US #6 1967).
From the wiki: “Sam the Sham and the Pharaohs released a non-single version entitled ‘Ready or Not’ 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. Released as a single in May of that year, it would chart Top-10 on the Billboard Hot 100, and go on to become the title track for the group’s 1968 album Apples, Peaches, Pumpkin Pie.
“Bobby Hebb (‘Sunny‘) was originally offered ‘Apples, Peaches, Pumpkin Pie’, but he rejected the song due to the song’s novelty sound. After Hebb declined, record producer Jerry Ross offered the song to Jay & the Techniques.”