I'm wondering how oneboxing on chat works.
Do you fetch the data from an API of a site for which oneboxing is implemented or do you scrape the content of that page and extract the desired data?
Someone once asked the chat developer (balpha) this very question...
Diago:
@balpha Very serious question. Is there anywhere that I can read up on how you guys got OneBox to work? Are you using the API and then formatting?balpha:
@Diago which oneboxes specifically?
the SE question, answer and user oneboxes just use the public SE API
(including the styling information from stackauth)
wikipedia has a public API too
amazon has an api (not with anonymous access, though)
twitter has a public API