📦 Placeholder API

Generate placeholder images and icons on the fly. Simple, fast, and customizable.

Images

Generate placeholder images of any size with customizable colors, text, and format.

Endpoint

GET /v1/image/{width}x{height}

Parameters

ParamTypeDefaultDescription
bghexccccccBackground color
fghex888888Text & border color
borderfloat0.05Border ratio (0-0.5)
textstringWxHCustom text
sizeintautoFont size in pixels
formatstringpngpng, jpg, or svg

Examples

/v1/image/400x200
400x200 placeholder
/v1/image/300x150?text=Hero Image&bg=3498db&fg=ffffff
Custom text placeholder
/v1/image/300x150?bg=1a1a2e&fg=eee&border=0.02
Dark theme placeholder

Icons

Square icon placeholders with optional shapes.

Endpoint

GET /v1/icon/{size}

Parameters

ParamTypeDefaultDescription
bghexccccccBackground color
fghex888888Icon color
shapestringsquaresquare, circle, or rounded
formatstringpngpng or jpg

Examples

/v1/icon/64 Square icon
/v1/icon/64?shape=circle Circle icon
/v1/icon/64?shape=rounded Rounded icon
/v1/icon/64?...&bg=e74c3c Red circle icon

Grids

Grid layouts for dashboard mockups and galleries.

Endpoint

GET /v1/grid/{width}x{height}

Parameters

ParamTypeDefaultDescription
colsint3Number of columns (1-20)
rowsint3Number of rows (1-20)
gapint8Gap between cells in pixels
bghexccccccBackground color
fghex888888Cell color
formatstringpngpng or jpg

Examples

/v1/grid/400x200
3x3 grid
/v1/grid/400x150?cols=4&rows=2&gap=4
4x2 grid
/v1/grid/400x100?cols=6&rows=1&bg=2c3e50&fg=3498db
Horizontal grid

Video

Video poster placeholders with play button and duration.

Endpoint

GET /v1/video/{width}x{height}

Parameters

ParamTypeDefaultDescription
durationstring0:00Duration (M:SS or MM:SS)
bghexccccccBackground color
fghex888888Foreground color
formatstringpngpng or jpg

Examples

/v1/video/400x225?duration=3:42
Video placeholder
/v1/video/400x225?duration=12:30&bg=1a1a2e&fg=e94560
Video dark theme

Audio

Audio placeholders with waveform visualization.

Endpoint

GET /v1/audio/{width}x{height}

Examples

/v1/audio/400x100?duration=2:45
Audio placeholder
/v1/audio/400x80?duration=4:20&bg=2d3436&fg=00cec9
Audio dark theme

Documents

Document thumbnail placeholders.

Endpoint

GET /v1/doc/{width}x{height}

Parameters

ParamTypeDefaultDescription
typestringgenericpdf, doc, xls, or generic
pagesint-Number of pages (optional)
bghexccccccBackground color
fghex888888Foreground color

Examples

/v1/doc/120x160?type=pdf PDF doc
/v1/doc/120x160?type=doc DOC doc
/v1/doc/120x160?type=xls XLS doc
/v1/doc/120x160 Generic doc

JSON Data

Generate fake JSON data for prototypes and testing.

Endpoint

GET /v1/json

Parameters

ParamTypeDefaultDescription
schemastringuseruser, post, product, comment, todo, company
countint10Number of items (1-100)
seedint-Seed for deterministic output

Examples

/v1/json?schema=user&count=3
[{"id": 1, "name": "...", "email": "..."}, ...]
/v1/json?schema=product&count=5
[{"id": 1, "name": "...", "price": 99.99, ...}, ...]

Available schemas: user, post, product, comment, todo, company

Skeleton Screens

HTML skeleton loading screens for SPAs.

Endpoint

GET /v1/skeleton

Parameters

ParamTypeDefaultDescription
variantstringcardcard, list, table, form, profile
countint1Number of skeleton items (1-10)
animatedbooltrueInclude shimmer animation

Examples

/v1/skeleton?variant=card&count=2

Returns HTML with card skeleton screens

/v1/skeleton?variant=list&count=5

Returns HTML with list skeleton screens

/v1/skeleton?variant=table&count=4

Returns HTML with table skeleton (4 rows)

Available variants: card, list, table, form, profile

Quick Copy

Use these in your HTML:

<img src="http://goosegoosego.nl/v1/image/800x400" alt="Placeholder">

<img src="http://goosegoosego.nl/v1/icon/32?shape=circle" alt="Avatar">

Other Endpoints

/_metricsAPI usage metrics (JSON)
/_docsThis page (also available at /)