🌐
Reddit
reddit.com › dev › api
reddit.com: api documentation
Get all emojis for a SR. The response includes snoomojis as well as emojis for the SR specified in the request. ... Update the order of flair templates in the specified subreddit. Order should contain every single flair id for that flair type; omitting any id will result in a loss of data. ... Change the flair of multiple users in the same subreddit with a single API call.
🌐
Reddit
reddit.com › r › reddit.com › wiki › api
r/reddit.com Wiki: Reddit API Access
November 28, 2023 - r/reddit.com: Learn how to access the Reddit API. Find developer resources, API documentation, and register your app with our community tools.
🌐
AlpsCode
alpscode.com › blog › how-to-use-reddit-api
How to use Reddit API - AlpsCode
December 18, 2018 - Reddit’s API documentation has almost everything there is to know. Let us try to search for a keyword and list the obtained subreddits. The API says the url is subreddits/search with a few parameters. We will put puppies for the query string, and also a limit of 5 subreddits and sort by relevance. ... payload = {'q': 'puppies', 'limit': 5, 'sort': 'relevance'} response = requests.get(api_url + '/subreddits/search', headers=headers, params=payload) print(response.status_code)
🌐
Data365
data365.co › blog › how-to-get-reddit-api-key
How to Get Reddit API Key: Step-by-Step or Skip-the-Setup? | Data365.co
So, once you’ve got your credentials sorted, the next step is to decide exactly what kind of access you want — and that means understanding Reddit’s scopes. Ready? Let’s move further. Not ready? Need a way out? Then skip it all and move to Step 6. Or even shorter way… just fill in the form to get 14-free trial period with Data365 API and already retrieve public Reddit data.
🌐
Reddit Help
support.reddithelp.com › hc › en-us › articles › 16160319875092-Reddit-Data-API-Wiki
Reddit Data API Wiki – Reddit Help
You can use the Reddit Data API, subject to our Responsible Builder Policy, Developer Terms and Data API Terms.
🌐
Reddit Help
support.reddithelp.com › hc › en-us › articles › 14945211791892-Developer-Platform-Accessing-Reddit-Data
Developer Platform & Accessing Reddit Data – Reddit Help
Reddit offers a variety of tools and services to developers, including a dedicated Developer Platform for running your apps on the Reddit platform, a Data API for developers accessing and using content on Reddit, an Ads API for advertisers accessing information about their campaigns on Reddit, a researchers API to support the work of academics, and Reddit Embeds for embedding content from Reddit on your apps.
🌐
Educative
educative.io › home › courses › getting started with the reddit apis in python › get started with the reddit api
Get Started with the Reddit API
Line 46: We return the generated URL because the request is not from Reddit's permission page. Line 49: We start the Flask server. Add the refresh and access tokens in the code widget below. Click "Run" to verify them. ... Now that we’ve saved our tokens, we can start making API calls.
🌐
JC Chouinard
jcchouinard.com › accueil › reddit api with python (complete guide)
Reddit API with Python (Complete Guide) - UPDATED 2024
April 4, 2025 - The Reddit API (Application Programming Interface) allows you to extract data, or post to Reddit using a web application or your preferred programming language. ... Yes, the Reddit is free. However, it has been announced that it will become a paid feature. ... Go to Reddit Apps to create your app and then get the refresh token using PRAW in Python.
Find elsewhere
🌐
Apidog
apidog.com › blog › reddit-api-guide
Reddit API: Features, Pricing & Set-ups
August 1, 2025 - Here is how you use Apidog to get OAuth tokens and send API request: Step 1: Sign up for an account on Apidog sign-up page. Step2: Navigate to the project workplace and choose “New Request” to access the API Request Panel.
🌐
Reddit
developers.reddit.com › docs › 0.9 › api
Reddit API | Reddit for Developers
The code below will create Menu item available on posts and then use Devvit.Types.RedditAPI.Flair.FlairList to get a list of a user's flair on a particular post. import { Context, Devvit, PostContextActionEvent } from '@devvit/public-api'; import { FlairListResponse, Metadata } from '@devvit/protos'; const flair = Devvit.use(Devvit.Types.RedditAPI.Flair); async function getFlair(event: PostContextActionEvent, metadata?: Metadata) { let success = true; let response: FlairListResponse | string; try { // The following call makes a call to https://www.reddit.com/dev/api/#GET_api_flairlist response
🌐
Public APIs
publicapis.io › home › social › reddit
Reddit API — Free Public API | Public APIs Directory
2 days ago - Listing JSON responses contain after and before fields which are equivalent to the "next" and "prev" buttons on the site and in combination with count can be used to page through the listing. Get API details, uptime stats, pricing info, and integration examples for Reddit.
🌐
Reddit
reddit.com › r/redditdev › how to get reddit api data using json?
r/redditdev on Reddit: How to get Reddit API data using JSON?
January 4, 2022 -

Hi there, I don't know if this is a stupid question but I can't seem to find a clear cut way to access the Reddit REST API (or does Reddit not have one), which I want to use in a basic Reddit clone app built using Flutter. I have googled quite abit but I haven't found any tutorials which help me understand how to get any sort of data from the API using JSON (there are tutorials for Python and whatnot).

But idk whether I'm missing out on something because I just started researching yesterday and I am at my wit's end. Please, if anyone could give me an easy to understand, step-by-step tutorial on how to even get any data (especially data for a specific user) from the Reddit API using JSON that would be very helpful.

🌐
Medium
medium.com › geekculture › utilizing-reddits-api-8d9f6933e192
Utilizing Reddit’s API
July 30, 2021 - In this tutorial, I wish to explain ... to the API and extracting users’ posts. First, venture over to https://www.reddit.com/prefs/apps and create a new app....
🌐
Pipedream
pipedream.com › apps › reddit
Reddit API Integrations - Pipedream
Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Reddit API. Pipedream requests the following authorization scopes when you connect your account: accountidentityedithistoryreadsubmitmysubredditssubscribeprivatemessages ... GEThttps://www.reddit.com/api/v1/authorize?client_id={{custom_fields.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}&duration=permanent
Top answer
1 of 2
24

As of right now, you cannot retrieve a permanent access token. You have 2 options that come close.

The first is to request a "refresh" token when using the standard OAuth flow. That's what you're doing by sending "duration" as "permanent" in your code. The refresh token can be used to automatically retrieve new 1 hour access tokens without user intervention; the only manual steps are on the initial retrieval of the refresh token.

The second alternative, which applies only when writing a script for personal use, is to use the password grant type. The steps are described in more detail on reddit's "OAuth Quick Start" wiki page, but I'll summarize here:

  1. Create an OAuth client (under https://www.reddit.com/prefs/apps) with type = "script"
  2. Make a request to https://www.reddit.com/api/v1/access_token with POST parameters grant_type=password&username=<USERNAME>&password=<PASSWORD>. Send your client ID and secret as HTTP basic authentication. <USERNAME> must be registered as a developer of the OAuth 2 client ID you send.
2 of 2
17

A client_id and client_secret can be generated for a reddit account by going to https://www.reddit.com/prefs/apps and creating an app:


The part I have hidden is my client_id.

Then you can use a client like praw to access reddit e.g. with Python:

import praw
r = praw.Reddit(client_id='insert id here',
                client_secret='insert secret here',
                user_agent='insert user agent')
page = r.subreddit('aww')
top_posts = page.hot(limit=None)
for post in top_posts:
    print(post.title, post.ups)

You could use your current browser's user agent, which can be easily found by google searching "what is my user agent" (among other ways).