Skip to content

Latest commit

 

History

History
94 lines (63 loc) · 2.55 KB

README.md

File metadata and controls

94 lines (63 loc) · 2.55 KB

Memes Api


Bob The Bot
Memable API

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!

Bob The Bot


Table of content


Usage

Clone the repo

git clone https://github.com/harry260/meme-api

Install dependencies

npm install

Run the server

npm start

Endpoints

/memes

/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

Deploy

You can deploy this to either Vercel or Railway or any other hosting service.

Deploy on Railway

Deploy with Vercel

Show your support

Show your support by 🌟 Starring this repo or buy me a coffee!

Buy Me A Coffee