Back to APIs list

Reddit API examples & templates

Use these vals as a playground to view and fork Reddit API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
Glench avatar
googlePhotosMarketingRSS
@Glench
http
An interactive, runnable TypeScript val by Glench
tambre avatar
getRedditAccessToken
@tambre
script
// The account's 2FA needs to be disabled.
mschleske avatar
authenticateReddit
@mschleske
script
An interactive, runnable TypeScript val by mschleske
andreterron avatar
subredditExample
@andreterron
script
// Reddit recent posts from /r/aww (cute animals)
pdebie avatar
syncCommentToLemmy
@pdebie
script
This allows copying specific comments from Reddit to a Lemmy thread. Might be super specific to my use case, but we use this for example to copy over some content from the r/SpaceX Starship thread to the one on the Lemmy community (with their blessing).
bnorick avatar
exampleCheckReddit
@bnorick
script
An interactive, runnable TypeScript val by bnorick
park avatar
subredditExample
@park
script
// Reddit recent posts from /r/aww (cute animals)
bnorick avatar
toggleSubreddits
@bnorick
script
An interactive, runnable TypeScript val by bnorick
bnorick avatar
redditAlertBackup
@bnorick
script
An interactive, runnable TypeScript val by bnorick
rcoady avatar
subredditExample
@rcoady
script
// Reddit recent posts from /r/aww (cute animals)
francoischalifour avatar
getInvitesFromReddit
@francoischalifour
script
An interactive, runnable TypeScript val by francoischalifour
stevekrouse avatar
redditNewExampleBefore
@stevekrouse
script
An interactive, runnable TypeScript val by stevekrouse
tfiers avatar
subredditExample
@tfiers
script
// Reddit recent posts from /r/aww (cute animals)
francoischalifour avatar
emailInvitesFromReddit
@francoischalifour
script
An interactive, runnable TypeScript val by francoischalifour
tambre avatar
pollVulkanRSSFeed
@tambre
interval
Polls the Vulkan specification repository for specification updates. If found, sends an email and makes a post on /r/vulkan.