Skip to main content
Solved

API To Get All the Recent Posts(Topics,Replies) Based On Time Period

  • November 4, 2021
  • 2 replies
  • 70 views

Hi,

 

Is there any API to retrieve all the recent posts based on given time period?

Eg:  I need to get all  new posts ( questions, replies ) in last 10 minutes. 

Is there any existing API to do this ? Can we do this using search api (https://api2-us-west-2.insided.com/search)?Is there any documentation regarding this? 

Best answer by ravi.kurma

Hi @DimuthuKasun 

Apologies for the delay. You can get the information using the following API Call.

https://api2-us-west-2.insided.com/docs/community/#operation/getTopicList

You can get the last 24 hrs worth of content but filter out specified times as you will get timestamps:

Example: createdAt": "2021-12-08T15:29:06+00:00"

Sincerely,

Ravi

 

2 replies

ravi.kurma
  • Helper ⭐️⭐️⭐️
  • Answer
  • December 9, 2021

Hi @DimuthuKasun 

Apologies for the delay. You can get the information using the following API Call.

https://api2-us-west-2.insided.com/docs/community/#operation/getTopicList

You can get the last 24 hrs worth of content but filter out specified times as you will get timestamps:

Example: createdAt": "2021-12-08T15:29:06+00:00"

Sincerely,

Ravi

 


  • Author
  • Contributor ⭐️
  • December 10, 2021

Hi Ravi ,

No worries. Thank you . I will try this out.