Developer API Reference

Integrate Glass Gallery images into your own applications, creative projects, or websites. Our public REST API is completely free and requires no authentication for read-only access.

API Capabilities

GET

Random Images Endpoint

/api/random

Fetches a random set of photographs from the gallery, optionally filtered by keyword or subject.

GET

Single Image Metadata

/api/images?action=get_single&imageId={id}

Fetches complete metadata for an individual image by its unique ID, including title, tags, photographer, license, and download links.

EMBED / 302 REDIRECT

Direct HTML Image Embed

/api/images?action=render

Embed high-quality photos directly onto any external webpage. This endpoint issues an HTTP 302 redirect directly to the optimized CDN image URL.

Render Endpoint Query Parameters
Parameter Type Description
imageId string Specific unique image ID to render
category string Category filter (e.g. Space, Wallpaper, Anime, Nature)
format string Set to "json" for JSON response instead of 302 redirect