Get API call records.
This is a method of the Profiler class in the profiler module.
def get_api_calls() -> List[APICallRecord]