This makes sense to me, none of those counts is completely live, I assume they are cached and regenerated only every so often (every 10 minutes?), to reduce server load. If the api and the site front page are not generated at the same time, then there will always be a small difference between them, with the api or the site higher depending on which one re-gened most recently.