Does using the API increase topic view counts?

General Discussion
  • Hello, i am using the following two API's for a C# app to pull the recent list and get topic votes.. Since releasing the software i have noticed a huge increase in page views...

    Does either of these two APIs in crease the view counts on topics:

    /api/recent
    /api/topic

    If so, is there anyway to stop it from doing this?

    Thanks

  • /api/topic does increase page view

    Hmm, maybe in this hook
    https://github.com/NodeBB/NodeBB/blob/master/src/topics.js#L202

    Subtract a pageview from the topic if some value was passed in?

    Ideally, you could create your own api call to send back topic data

  • Thanks.. As an emergency I just removed the topic call (I suspected it was that) every post in the recent list went from a few hundred views to 1k+ in half a day. There aren't enough employees in my department for that many views :). I was only using it to show up votes.. I would have just used the rss feed if I could have but it's hardly includes any information.

    Subtracting from the view counts sounds doable..

    Thanks again.


Suggested Topics


  • What is topics.1.xml?

    General Discussion
    0 Votes
    5 Posts
    651 Views
  • 1 Votes
    4 Posts
    1944 Views
  • 0 Votes
    10 Posts
    3057 Views
  • 1 Votes
    1 Posts
    887 Views
  • Sorting sticky topics

    General Discussion
    0 Votes
    3 Posts
    1272 Views