Forum Discussion

vishwajit_shind's avatar
11 years ago

Why the difference in posts Count

Hi,

 

Why so much of difference between the below two values when the shown REST API's are fired,

 

/restapi/vc/metrics/name/posts:-

 

<response status="success">

<value type="long">8137</value>

</response>

 

/restapi/vc/posts/count:-

 

<response status="success">

<value type="int">9484</value>

</response>

 

Thanks,

Vishwajit

 
  • vishwajit_shind - We had similar issue with following call, which returned different results despite being similar:

     

    /restapi/vc/users/count

    <response status="success">
    <value type="int">1623</value>
    </response>

     

    /restapi/vc/search/users/count?q=reg_date:[1333311559%20TO%201407399035]

    <response status="success">
    <value type="int">1213</value>
    </response>

     

    When we raised a support ticket for this, it was found that second API worked well with smaller date ranges, so we tried it with 30 days, and then 15 days, but the results were same for the second API always. And to verify it, when we pulled out the data from admin metrics, we found that the correct results were indeed in the second API which pulled 1213 users.

     

    You can check with support on the root cause.