I am working on a project to assemble GitHub profile statistics. In particular, I am interested in retrieving project page views. For this I have been using the v3 REST API traffic endpoints, since this data is unavailable on the v4 GraphQL API.
Because page views are only presented for the past 14 days, I have been logging them offline. That way, I can accumulate an accurate long-term view total as the API stops returning data from more than two weeks ago.
Unexpectedly, I have noticed that view data from past days (within the two-week period, and thus returned by the API endpoint) has decreased. Specifically, the view count and number of unique viewers from one day last week has decreased in subsequent API accesses.
Edit: Looking more at the logs seems to show that the decrease happens on the date exactly 14 days ago. It seems like the view data is for exactly 14 days from the current moment, and thus data for the last day “fades out” even though the timestamp indicates it represents the whole day.
Is this a glitch or intended behavior? What can I do to ensure the maximum accuracy of my data?
Thanks in advance!