Trying to understand api