using the api you can get your purchase items in a list using this which gives you the id of the purchases.
With your ID’s in an array, use this to iterate through the ID’s downloading each item to a location of your choice using curl