Iframely converts URLs in your posts into responsive embed widgets for 900+ domains.
The server-side API is open-source. Check it out here: http://iframely.com/gateway.
If you choose to host API on your own, just change the endpoint address in the plugin code.
Responsive embeds concept is part of Iframely Protocol For Responsive Embeds (oEmbed/2).