GET /placeholder/:id
Fáðu URLs for a specific placeholder image by its Lorem Picsum ID. Useful when you need a consistent image í page loads rather than random ones.
id
nauðsynlegt
Image ID from Lorem Picsum
width
valfrjálst
sjálfgefið: 600
Width
height
valfrjálst
sjálfgefið: 400
Height
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
id |
Já | - | Image ID from Lorem Picsum |
width |
Nei | 600 | Width |
height |
Nei | 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
}