Bluesky app fork with some witchin' additions 馃挮
at viewport 52 lines 1.9 kB view raw view rendered
1 2## oEmbed 3 4<https://oembed.com/> 5 6* URL scheme: `https://bsky.app/profile/*/post/*` 7* API endpoint: `https://embed.bsky.app/oembed` 8 9Request params: 10 11- `url` (required): support both AT-URI and bsky.app URL 12- `maxwidth` (optional): [220..550], 325 is default 13- `maxheight` (not supported!) 14- `format` (optional): only `json` supported 15 16Response format: 17 18- `type` (required): "rich" 19- `version` (required): "1.0" 20- `author_name` (optional): display name 21- `author_url` (optional): profile URL 22- `provider_name` (optional): "Bluesky Social" 23- `provider_url` (optional): "https://bsky.app" 24- `cache_age` (optional, integer seconds): 86400 (24 hours) (?) 25- `width` (required): ? 26- `height` (required): ? 27 28Not used: 29 30- title (optional): A text title, describing the resource. 31- thumbnail_url (optional): A URL to a thumbnail image representing the resource. The thumbnail must respect any maxwidth and maxheight parameters. If this parameter is present, thumbnail_width and thumbnail_height must also be present. 32- thumbnail_width (optional): The width of the optional thumbnail. If this parameter is present, thumbnail_url and thumbnail_height must also be present. 33- thumbnail_height (optional): The height of the optional thumbnail. If this parameter is present, thumbnail_url and thumbnail_width must also be present. 34 35Only `json` is supported; `xml` is a 501. 36 37``` 38<link rel="alternate" type="application/json+oembed" href="https://embed.bsky.app/oembed?format=json&url=https://bsky.app/profile/bnewbold.net/post/abc123" /> 39``` 40 41 42## iframe URL 43 44`https://embed.bsky.app/embed/<did>/app.bsky.feed.post/<rkey>` 45`https://embed.bsky.app/static/embed.js` 46 47``` 48<blockquote class="bluesky-post" data-lang="en" data-align="center"> 49 <p lang="en" dir="ltr">{{ post-text }}</p> 50 &mdash; US Department of the Interior (@Interior) <a href="https://twitter.com/Interior/status/463440424141459456?ref_src=twsrc%5Etfw">May 5, 2014</a> 51</blockquote> 52```