Gary & Goober API Documentation

A RESTful API providing random images, quotes, and jokes with structured JSON responses

API Information

Base URL: https://api.garythe.cat

All endpoints return JSON responses unless otherwise specified. Images include extracted numeric IDs from filenames.

GET /gary

Retrieves a random Gary image URL with its extracted numeric identifier from the filename.

{
  "url": "https://api.garythe.cat/Gary/Gary76.jpg",
  "number": 76
}

GET /gary/image

Returns a random Gary image directly as binary JPEG data for immediate display or download.

GET /goober

Retrieves a random Goober image URL with its extracted numeric identifier from the filename.

{
  "url": "https://api.garythe.cat/Goober/goober8.jpg",
  "number": 8
}

GET /goober/image

Returns a random Goober image directly as binary JPEG data for immediate display or download.

GET /quote

Retrieves a random inspirational quote from the configured quote collection.

{
  "quote": "Be yourself; everyone else is already taken."
}

GET /gully

Retrieves a random Gully image URL with its extracted numeric identifier from the filename.

{
    "url": "https://api.garythe.cat/Gully/gully1.jpg",
    "number": 1
  }

GET /gully/image

Returns a random Gully image directly as binary JPEG data for immediate display or download.

GET /gary/count, /goober/count, /gully/count

Returns the current number of images available for each collection. Useful for monitoring or UI counters.

{ "count": 42 }
{ "count": 8 }
{ "count": 10 }

GET /joke

Retrieves a random joke from the collection for entertainment purposes.

{
  "joke": "Why don't scientists trust atoms? Because they make up everything!"
}