library api