Zulip get latest messages in a topic/stream

The idea is:

To get the latest N messages from a topic / stream

My use case:

check if there are any recent messages, if not ping the topic as a reminder

I think it would be beneficial to add this because:

Currently you cannot fetch new messages except by id, but how do I get the message id?

Any resources to support this?

Are you willing to work on this?

maybe