Ingram Spark has a company called Lightning Source that I am pretty sure has a backend API to do this. Another site uses it to fuel their print on demand program. I have no clue if it is an exclusive agreement, but it's worth checking out. Another company that might be able to provide this is http://www.chicagopressmen.com/ but I am not sure.