Post to Reddit via URL
Asked Answered
M

1

26

Is it possible to post a link to Reddit via URL?

For example for Facebook you can do

<a href="https://www.facebook.com/sharer/sharer.php?u=http://stackoverflow.com">
  Share Stackoverflow on your profile!
</a>

Does Reddit have an equivalent endpoint I can hit to share a URL?

Magnetron answered 18/7, 2014 at 10:42 Comment(0)
O
67

There are several ways to do this, depending on exactly what kind of application you have.

  1. If you're making something interactive, you can take a user to the submit page with a URL and title already filled in. The following URL will open the reddit submit form with a link to this question:

    http://www.reddit.com/submit?url=https://mcmap.net/q/514439/-post-to-reddit-via-url&title=Post%20to%20Reddit%20via%20URL

  2. If you just want people to be able to submit your site or blog post to reddit, you can use a reddit button on your page instead.

  3. If you're writing an app or a script where you need to post a URL to reddit, you can use the /api/submit route in the reddit API. If the user that is submitting the link has less than 2 link karma, then a CAPTCHA will probably be given.

Overexcite answered 20/7, 2014 at 14:14 Comment(5)
The first point in your answer is missing the URL to be used.Dimer
Ah... It seems one of the cosmetic filters from my uBlock, intended to block the "Share this content" type clutter from blogs, is removing this URL as well. I did find it weird that the answer would be uncorrected after all these years, but didn't make the leap. Thanks.Dimer
Could it be because the URL is http?Benny
@sundar-ReinstateMonica: I use uBlock as well and see the URL clearly.Cheat
The link to the reddit button is dead, and here is a more complete answer (submission title, text etc.).Cheat

© 2022 - 2024 — McMap. All rights reserved.