oEmbed discovery in a nutshell
/oembed API endpoint enables programmatically fetching a NEXT story that can then be embedded into an external document or tool.
Parse the HTML, and detect the
<link>elements that identify the board as oEmbed-compliant content.
Send a request to the oEmbed API endpoint: this is the value of the
hrefattribute in the
Extract and embed the iframe that the API returns: this is the value of the
htmlfield in the JSON or XML response.
oEmbed discovery on NEXT pages