If you have a forum on one host (A) and want to serve it on another host (B) you're probably better off creating a Reverse Proxy from B to A then trying to solve it with an API (in which case you might as well write your own forum because implementing one from another host through an API is about as much work as writing a forum from scratch).