Added libs and pgs to api request