api library