Forum Discussion

DylanGeorgeFiel's avatar
9 years ago

API returing different results from API V1/V2 and Studio

Hello,

 

I'm new to lithium,

 

I'm running the following queries from V1, V2

- SELECT count(*) FROM messages

 

restadmin('/metrics/name/net_overall_posts?js_string')

These are returning the following:

- 177 and 162

 

What is the difference between these two calls? Thanks,

 

Edit: When I create a new thread or reply, they both increment by one. I'll also add that when using the API Browser and calling the method I get 180. Which is different from the first query I'm making with a URL?

  • VarunGrazitti's avatar
    VarunGrazitti
    9 years ago
    Could be a reason, why don't you compare a normal V1 /posts/count call with this V2 instead of metrics call and see how it works.