RddtUF

Welcome to RddtUF!

This site aims to help unfurl reddit mobile links, which is not currently supported by the Devvit platform.

Devvit fetch example:

⭐ The API key can be kept in the devvit context

⭐ After getting an API key you can call into our endpoint to get the unfurled reddit link

const apikey = await context.settings.get('rddtuf-apikey') const res = await fetch("https://rddtuf.hearteyesemoji.dev/unfurl/?subreddit=programming&shortLink=NpJwOReNkQ", { headers: { Authorization: ~Bearer ${apikey}~ } }) if (!res.ok) { throw new Error("failed") } const json = await response.json() console.log(json) //{ // "link": "https://www.reddit.com/r/programming/comments/1ln9nho/test_names_should_be_sentences/" //}