As of around March 20th, 2025, the volumeStoreDownloadProduct endpoint (required to download removed apps) has changed and now has a tendancy to not work sometimes. There is not any noticable pattern as to what apps work or not but note that there is a high likelyhood this tutorial may not work.
Due to various reasons (such as Apple developer account termination), apps you had previously purchased can no longer be downloaded from the App Store or iTunes. However, it turns out these applications can still be accessed. Third party .ipa downloading tools such as iMazing, ipatool, and ipatool-py use a special endpoint that allows downloading removed apps.
This app must have been purchased on your Apple ID beforehand. You cannot download any app ever made. Apple only lets you download apps you had bought or downloaded in the past.
I reccomend using the ipatool-py method, because it is easier. However, if you are unable to use it, I have left the original