Skip to content

Harry260/meme-api

Repository files navigation

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