Recent and Popular Posts in Beast Forum

Hi,

so I've integrated the Beast forum into my ruby on rails website and
would like to display some of the forum data throughout the website.
Basically, I'd like to list the last 5 posts to a UNIQUE topic, and
also the most popular topics.

I'm sure this wouldn't be too tough to accomplish but I was wondering
if anyone else had already implemented it so that it might save me
time?

I'd try posting on the Beast support forum but I think I'd just
receive viagra related answers!

Thanks a lot.