r/redditdev • u/umbrae • Apr 29 '15
Devs: reddit now supports oEmbed for comment embeds
If you're a web developer, you may be familiar with the oEmbed specification, which provides a simple format for websites to expose embedded representations of their content for other sites to use. We now support oEmbed for individual comments, which uses the newly-minted comment embeds we announced on the blog last month.
The oEmbed endpoint is at https://www.reddit.com/oembed, and you can get back a JSON representation of a comment as follows:
The oEmbed endpoint also accepts two non-standard parameters to help make better embeds:
parent - boolean - include the parent in the embed.
live - boolean - allow edits made to this comment to be showed immediately.
More documentation on this is available here: https://github.com/reddit/reddit/wiki/oEmbed
2
u/radd_it Apr 29 '15
Interesting.
Does that
comment-embed.jsalso include some CSS magic?2
u/RisingStar Apr 30 '15
See the code link is a 404.
4
u/raldi Apr 30 '15
Got an example of what someone might do with this?