A small wrapper for APIs