object info method for api