I looked into something similar some time ago and came across a few options. The ones I remember:
https://impossiblesoftware.com/
https://developers.magisto.com/ (not exactly what you're looking for, and very expensive, when I inquired)
Anyway, I ended up rolling my own solution (not an API, but for internal use only).