Jb extract api calls into model