Great article (from Dec 2016) by @borncorp:
Getting Item Earliest Available Date Programmatically | Ursus Code
Using DOMparser to query the ATP availability page/popup in script.
I wonder if this still works, as I haven't seen another way of accessing the ATP feature via script