Retrieve only post ids from api

Hello everybody,

i am trying to retrieve topic stream attribute containing every post ids, it’s pretty easy using /t/{id}.json but it also send back topic basic data (like firsts posts, participants, etc…).

That’s not that much expensive (50kB lol) but i was wondering if there was any way to filter the fields so i only get stream property?

Thank you.

For all posts IDs excluding the first post, this might be a solution: /t/<topic_id>/post_ids.json?post_number=1

Another solution is to create a custom SQL query with Data Explorer plugin.


Thank you! That was exactly what i was looking for! :slight_smile:

EDIT: Unfortunately /t/<topic_id>/post_ids.json only return the 20ids. Is there any way to automatically received the twenty last ids post without knowing the topic post count?

EDIT2: Huh nevermind as stated by Arkshine, post_number skip the 1rst post but ALSO break the 20ids limit.