Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Post to Reddit via URL

Tags:

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?

like image 761
Don P Avatar asked Jul 18 '14 10:07

Don P


People also ask

Where is the URL on Reddit?

The URL of any subreddit is http://www.reddit.com/r/SubredditName. r/help is at http://www.reddit.com/r/help, for example.

How do I post a link on Reddit mobile?

To hyperlink on Reddit in the mobile app, tap the text box at the top of the screen to bring up the keyboard. Tap and hold the link you want to share, then release it. Tap “Copy.” Tap and hold in the text box where you want to paste the link, then release it.

How do you share on Reddit?

Head to the specific subreddit you'd like to post to, then click the Create Post button. From here you can post three kinds of things: a Text post, an Image or video, or a Link. Text posts require a Title, and should probably also include some Text. This is a great way to start a conversation.


1 Answers

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://stackoverflow.com/questions/24823114/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.

like image 115
Bill the Lizard Avatar answered Oct 02 '22 01:10

Bill the Lizard