Skip to content

FelineFantasy/CatMemesAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฑ CatMemesAPI

Random cat memes API. 1000 memes, zero dogs. Built with FastAPI.

๐Ÿ”— Live API: https://catmemesapi.onrender.com

๐Ÿ“– Interactive Docs: https://catmemesapi.onrender.com/docs


โš ๏ธ WARNING โš ๏ธ

...

NEVER open the memes/ folder in your browser or file explorer!

  • Folder contains 1000+ JPG files (85 MB total)
  • Your browser will crash or freeze for minutes
  • Your file explorer might stop responding
  • Only access memes through the API endpoints

โœ… Correct way: Use /meme/search?limit=5 or /meme/{meme_id}
โŒ Wrong way: Clicking on memes/ folder in GitHub web interface

Your RAM will thank you.

๐Ÿ“ Description

CatMemeAPI returns random cat memes with metadata (width, height). All memes are curated and sorted.

Features

  • ๐Ÿฑ 1000 cat memes
  • ๐Ÿ–ผ๏ธ Returns image dimensions (width, height)
  • ๐Ÿ“ฆ Single endpoint for random memes
  • โšก FastAPI + PIL
  • โš ๏ธ Safe API access only (no browser folder browsing!)

โš™๏ธ Installation

pip install -r requirements.txt

๐ŸŽฎ Usage

Start the server:

uvicorn main:app --host 0.0.0.0 --port 8000

API Endpoints

Endpoint Description
GET / API info
GET /meme/search?limit=5 Get 5 random memes
GET /meme/{meme_id} Get meme by ID

Example response (/meme/search?limit=2)

[
  {
    "id": 42,
    "url": "http://localhost:8000/meme/42",
    "width": 640,
    "height": 480
  },
  {
    "id": 777,
    "url": "http://localhost:8000/meme/777",
    "width": 800,
    "height": 600
  }
]

๐Ÿ“ฆ Requirements

  • Python 3.x
  • FastAPI
  • uvicorn
  • Pillow

๐Ÿ‘ค Author

  • FelineFantasy
  • License: MIT

About

๐Ÿฑ Random cat memes API. Built with FastAPI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages