Skip to content

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

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

EndpointDescription
GET/API info
GET/meme/search?limit=5Get 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

๐Ÿ“ Project Files

CatMemesAPI/
โ”œโ”€โ”€ .github/
โ”‚ โ””โ”€โ”€ FUNDING.yml
โ”œโ”€โ”€ memes/
โ”‚ โ””โ”€โ”€ (1000+ JPG files)
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

๐Ÿ’– Support the Project

If you enjoy CatMemesAPI and want to help keep the project alive, you can support me here:

DonationAlerts

Your support helps me:

  • ๐Ÿฑ Keep adding new memes and features
  • ๐Ÿ› ๏ธ Fix bugs and improve API performance
  • โ˜• Stay awake while coding at 4 AM

Every little bit is appreciated! โค๏ธ

๐Ÿ‘ค Author

  • FelineFantasy
  • License: MIT

About

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

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages