How to get the number of file accesses using API

I’m trying to check with an API how many times a file has been accessed.

Since there is no API to obtain the insight information provided on the web screen, I think that the FILE (Full) objects shared_link.download_count and shared_link.preview_count are appropriate alternatives.

However, these values always remain 0 whether I preview or download the file. When are download_count and preview_count updated?