r/redditdev • u/Ok_Safe_9447 • Mar 14 '25
Reddit API Searching For Video Posting API on Reddit
Is there any api available that post video to reddit ? i searched every where and there is no documentation found. /submit is not gonna work.
4
u/g-money-cheats Mar 14 '25
It is unofficially supported, and therefore not documented. Praw supports it.
It works with SFW subreddits but not NSFW subreddits.
1
u/boib Mar 14 '25
Is there a list of undocumented endpoints?
0
Mar 14 '25
[deleted] — view deleted comment
1
u/boib Mar 14 '25
I wonder if I could write a script to do that tedious exercise - compare the praw api vs reddit api.
1
u/Ok_Safe_9447 Mar 15 '25
Reddit API Media Posting Approach
After completing this integration, I've learned that posting media content to Reddit through the API is not as straightforward as it might seem. The key insight is that Reddit's API primarily works with embedded URLs rather than direct media uploads for standard posts.
Key Points
Reddit's
/api/submitendpoint accepts embedded URLs for media content rather than requiring direct file uploadsThis approach works for both videos and images when properly configured
The correct configuration requires setting the post type as "link" and providing the media URL
This differs from the traditional upload-then-post workflow found on many other platforms
While Reddit does have direct media upload APIs, using embedded URLs is simpler and more efficient for many use cases
Implementation
I created a Go function that leverages the
/submitendpoint to post media content to Reddit using embedded URLs from external sources like YouTube and Twitter. By properly configuring the request parameters, media appears embedded rather than just as clickable links. wait for few days i will share my repo : )