Hi
How to post Videos on Reddit using c#
Thanks
Hi
How to post Videos on Reddit using c#
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Emily FosterRank #3,495 · 415 reputationPosted May 7, 2025, 8:55 PM EDT
Hello! It seems like you're looking to delve into posting videos on Reddit using C#. While Reddit provides an API for developers to interact with, unfortunately, direct posting of videos is not supported through the API at the moment.
However, you can still achieve a workaround by uploading your video to a third-party platform and then sharing the link to the video on Reddit. For instance, you can upload the video to a service like Imgur or Streamable and then post the link on Reddit.
Here's a simplified example in C# of how you could approach this:
using System; using System.Net.Http; using System.Threading.Tasks; class Program { static async Task Main() { string videoUrl = "your_video_url_here"; string redditPostUrl = "https://www.reddit.com/api/submit"; var httpClient = new HttpClient(); var content = new FormUrlEncodedContent(new[] { new KeyValuePair("title", "Your Reddit Post Title"), new KeyValuePair("url", videoUrl), new KeyValuePair("text", "Optional post text"), new KeyValuePair("subreddit", "SubredditName"), // Add any additional required parameters for posting on Reddit }); var response = await httpClient.PostAsync(redditPostUrl, content); var responseContent = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseContent); } }Remember, before posting on Reddit programmatically, make sure to review Reddit's API documentation and adhere to their guidelines to avoid any issues.
If you have any more specific questions or need further assistance, feel free to ask!