Skip to content
TEBHOS API

Unfurl

Unfurl turns one URL into the preview a message would show for it, as an array of embed objects. It fetches the URL again on every call.

The route is user-only, so a bot token or OAuth2 bearer credential gets 403 ACCESS_DENIED.

The sites below get a dedicated preview. Any other URL gets a preview from its page metadata, or a media embed when it points to an image, video or audio file.

SiteMatched URL
Hacker Newsnews.ycombinator.com/item with an id query parameter
Klipy1klipy.com and www.klipy.com
Tenortenor.com
xkcdxkcd.com
YouTube1youtube.com and its www, m and music hosts, youtube-nocookie.com and www.youtube-nocookie.com, and youtu.be
Wikipediawikipedia.org and its www, en, de, fr, es, it, ja, ru and zh hosts, under /wiki/
BlueskyPost and profile URLs on bsky.app
FxTwitterfxtwitter.com, fixupx.com, twittpr.com, xfixup.com and their subdomains

1 Needs an API key for this site on the instance. Without one, the URL gets the generic preview.

POST/v1/unfurl

Returns the embeds for url. TEBHOS only fetches public HTTP and HTTPS addresses, and a fetch fails after five redirects or on a document larger than 8 MiB.

FieldTypeDescription
urlstringThe HTTP or HTTPS URL to preview (1-2048 characters)
StatusBodyCondition
200array[embed object]Resolution finished, possibly with no embed
403error responseACCESS_DENIED for a bot token or OAuth2 bearer credential
502error responseBAD_GATEWAY when the unfurl service returns an error
503error responseSERVICE_UNAVAILABLE when no unfurl service is answering
504error responseGATEWAY_TIMEOUT when the unfurl service doesn’t answer within 12 seconds

The rate limit is 10 requests per minute, on the unfurl:debug bucket.