Skip to main content
Retrieve the full image for an upload.

Request

curl https://fucksornot.com/api/image/550e8400-e29b-41d4-a716-446655440000

Response

Returns binary image data with appropriate headers:
HeaderValueDescription
Content-Typeimage/webp, image/jpeg, etc.Image format
Cache-Controlpublic, max-age=31536000, immutable1 year, immutable cache for public images
CDN-Cache-Controlpublic, max-age=31536000, immutable1 year, immutable cache at the CDN edge for public images
ETagContent hashFor cache validation

Content Types

FormatContent-Type
WebPimage/webp
JPEGimage/jpeg
PNGimage/png
GIFimage/gif

Caching

Images are aggressively cached:
  • Public images: 1 year, immutable cache (public, max-age=31536000, immutable), set on both the Cache-Control and CDN-Cache-Control headers
  • Private images: No cache (private, no-store, must-revalidate)
Use the ETag header for conditional requests:
curl https://fucksornot.com/api/image/550e8400-e29b-41d4-a716-446655440000 \
  -H "If-None-Match: \"abc123\""
Returns 304 Not Modified if unchanged.

Access Control

  • Public images: Accessible to everyone
  • Private images: Only accessible to owner and admins
Private images return 404 Not Found if accessed without authorization.

Direct Image URL

For embedding in HTML:
<img src="https://fucksornot.com/api/image/550e8400-e29b-41d4-a716-446655440000"
     alt="Upload image" />

Errors

StatusDescription
304Not Modified (cached)
404Image not found or access denied