Forum Discussion

nicgutierrez's avatar
10 years ago

Number of new threads created in the last 24 hours (for a specific board)

Hi all.

 

I was trying to use the APIs to get the count of new threads (for a specific board) created in the last 24 hours.


I tried to use the "recent" API but I'm not sure whats the logic behind that and it's always returning the same value.
I was thinking using the Search API with a date range but I can't find anything like that.

 

Thanks.

Nic

  • nicgutierrez 

     

    I wonder how long before people start to be annoyed by my 'Rest API v2' responses ... ;-)

     

    If not urgent, just wait until the Rest API v2 comes out the beta version (very soon). Then, I strongly believe LiQL will help you achieving what you want.

     

    Having said that, I'm not 100% sure you will get the count with a select query ...

     

    Now, if it's a bit more urgent, you could have a look at the metrics. In your community admin, in metrics, if you can manage to get the count of your new thread in a specific board, you should be able to do the same using our metrics api.

  • OlivierS's avatar
    OlivierS
    Lithium Alumni (Retired)

    nicgutierrez 

     

    I wonder how long before people start to be annoyed by my 'Rest API v2' responses ... ;-)

     

    If not urgent, just wait until the Rest API v2 comes out the beta version (very soon). Then, I strongly believe LiQL will help you achieving what you want.

     

    Having said that, I'm not 100% sure you will get the count with a select query ...

     

    Now, if it's a bit more urgent, you could have a look at the metrics. In your community admin, in metrics, if you can manage to get the count of your new thread in a specific board, you should be able to do the same using our metrics api.

    • Hey OlivierS .

       

      Thanks for your reply.

      I wasn't aware of Rest API v2, is there any link that we can use to know a little more about that?

      I'll give a try at the metrics solution.

       

      Cheers.

      Nic

      • OlivierS's avatar
        OlivierS
        Lithium Alumni (Retired)

        nicgutierrez 

         

        Well, there is a link. But it might just be visible for Lithium employees and customers who are on the beta program ... I just assumed the link was visible to everyone as I was seeing it. Doh!

         

        Have a look here. If nothing happens, then you will have to wait a little bit.

         

        Best is probably to subscribe to the release notes - if not already - to get notify when it gets out.

         

        I will try to update this thread too once it's public ...