Memable is a Meme Explorer website (im working on) and this is a prototype of the API i created for it. It is powered by Rddit!
git clone https://github.com/harry260/meme-api
npm install
npm start
/memes?subreddits=<subreddit1>,<subreddit>:<last_post_id>&filter=<filter>&max=<max>
Parameter | Description | Example |
---|---|---|
subreddits | Comma separated list of subreddits. Use colon to separate if you need to set last post id | subreddits=wholesomememes:lastIdLOL ,memes,dankmemes |
filter | Add filter (hot |top |new |controversial | raising ) |
filter=hot |
max | Maximum number of memes from each subreddit. Doesn't mean the exact count. | max=50 |
#### Example request & response
```bat
/memes?subreddits=memes,dankmemes:uc569x,wholesomememes&filter=hot&max=69
Example response |
---|
You can deploy this to either Vercel or Railway or any other hosting service.
Show your support by 🌟 Starring this repo or buy me a coffee!