oEmbed

Pnut has basic oEmbed support.

Base URL: https://api.pnut.io/v1/oembed

The only format supported is JSON.

Posts

To retrieve data for a post, include the query parameter ?url=https://posts.pnut.io/{post_id}.

Audio

To retrieve data for an audio file, include the query parameter ?url=https://audio.pnut.io/{file_id}.

Image

To retrieve data for an image file, include the query parameter ?url=https://photos.pnut.io/{file_id}.