Let's say I want to fly from Prague to New York, with 1 stop or direct, on a route that takes less than 16 hours. I don't particularly care about the airline, the exact times, the exact airports in New York, etc. The only thing I care about is the price and I want to automatically purchase a ticket if it's less than $300 on a given day. Currently the lowest price I can see is $380, but perhaps a great deal will pop-up in the future.
Is there a platform or at least an API that would allow me to do so? There is a related question about being notified if such a cheap flight pops up, but in my case I want everything done automatically and the only notification I need is an actual ticket in my inbox whenever it's booked.