How to insert current topic id to the first post

If it’s for multiple posts then using div with data- then it’s easier to use api.onPageChange + querySelectorAll to reverse the iframe.