âšī¸/reddit
This is complete documentation about how to get Reddit Images using Random Stuff API (This Endpoint is accessible using free plan as well as Paid plan)
Since this API is only accessible using RapidAPI, you need to change the base URL to https://random-stuff-api.p.rapidapi.com
This endpoint allows you to access reddit images/posts from any sub-reddit.
GET
https://api.pgamerx.com/reddit
Path Parameters
Name | Type | Description |
---|---|---|
method* | String | What type of function do you want to perform? |
Query Parameters
Name | Type | Description |
---|---|---|
searchType* | String | What type of post do you want to search- hot, top, new, or rising |
Headers
Name | Type | Description |
---|---|---|
Authorizaion* | String | |
x-rapidapi-key* | String | The API key you received from RapidApi |
x-rapidapi-host* | String | It should always be: "random-stuff-api.p.rapidapi.com" |
Available Methods:
FetchSubredditPost
2. FetchPost
The above 2 methods require another query parameter: subreddit
3. fetchPostById
This method require another query parameter: id
4. RandomMeme
5. FetchRandomPost
For examples in all languages, checkout RapidAPI Page
Last updated