GET /placeholder/:id
Get URLs for a specific placeholder image by its Lorem Picsum ID. Useful when you need a consistent image across page loads rather than random ones.
id
required
Image ID from Lorem Picsum
width
optional
default: 600
Width
height
optional
default: 400
Height
| Name | Required | Default | Description |
|---|---|---|---|
id |
Yes | - | Image ID from Lorem Picsum |
width |
No | 600 | Width |
height |
No | 400 | Height |
curl "https://nordapi.ee/api/v1/placeholder/237?width=800&height=600"
curl https://nordapi.ee/api/v1/placeholder/237
curl "https://nordapi.ee/api/v1/placeholder/10?width=1200&height=400"
{
"data": {
"height": 600,
"id": "237",
"image_url": "https://picsum.photos/id/237/800/600",
"info_url": "https://picsum.photos/id/237/info",
"width": 800
},
"success": true
}