allow api parameters to be passed in kwargs for calling outside of view