Use xenforo data outside of xenforo?

Hey there,
I've really searched the forums like crazy for this and also searched other sites and I couldn't find anything relevant to the latest pages.
So essentially, I was wondering how I could use data such as $visitor and other functions outside of xenforo and in my external pages which I am making.
So essentially my question is how would I bridge xenforo data into my pages?