total api