Does hitting a topic's JSON endpoint count towards its views?

I have 20 article pages that hit distinct Discourse topic JSON endpoints to get the number of comments related to that article. On the forum itself I see that the topics’ view counts are almost the same as the article pages’ analytics. Either 99% of article visitors are clicking the link into the Discourse post or (more likely) hitting the endpoint counts towards a topic’s view. Can someone confirm?

1 Like

Yes, that is pretty much the same thing. A topic view is when the endpoint is being hit, regardless if it is by the Discourse Javascript client, or by a third party client requesting it.


Thanks for the reply. So there’s no distinction between asking for the topic’s metadata and reading its contents, as far as views go? I wonder if I’m calling the wrong API.

1 Like