Back to DocumentationDocumentation
Media APIs
Endpoints for placeholder images, stock photos, SVGs, avatars, QR codes, and tracking pixels.
Base URL
https://mockly.meReturns a random stock photo from the Unsplash collection. Supports cropping, blur, and grayscale.
Parameters
| Name | Type | Description |
|---|---|---|
width | number | Path segment — crop width (1–2000) |
height | number | Path segment — crop height (1–2000) |
blur | number | Query param — blur amount 0–10 |
grayscale | boolean | Query param — convert to grayscale |
Example Response
Binary JPEG/PNG image (200 OK)Generates a professional avatar with initials. Deterministic when a name is provided.
Parameters
| Name | Type | Description |
|---|---|---|
size | number | Query param — avatar size in pixels (default 200) |
name | string | Query param — name used for initials |
bg_color | string | Query param — background hex without # |
Example Response
Binary PNG image (200 OK)