store api as object