add api key to library requests