Listing / Access ALL previous releases of a repo including ( non-published releases )

I am interested in running static code analysis on a sample of releases across the entire life span of a given repo.

Is there any way I can use the API to give me access to the “non-published releases”. I many cases I can only access the most recent releases via the API however I can manually access older versions going back years in browser.

The endpoint includes draft releases for authenticated requests (including an HTTP Authorization header).