Wrapper for an API