Is there an API to obtain article information via DOI?
You are looking for https://doi2bib.org . It shouldn't be very hard to extract the actual bibtex entry from the html you get from that page.

If you want to see how it works under the hood, take a look at the sources here: https://github.com/davidagraf/doi2bib2/ .