How to build the SEO URL?

Hey guys,

I have to write a "latest posts" script for an external website that shows the latest posts of a xenforo forum.

There is only one problem: I have no idea how to build/generate the urls of the posts because they are not stored in the database (I think).

Can you please tell me how I can do this?

Kind regards.
Thank you Brogan :)

the function/method I was looking for is placed in line 740 (/library/Xenforo/Link.php).

Kind regards.