← Utvecklarverktyg

Slumpmässig platshållarbild

GET /placeholder/random

Generate URLs for slumpmässig placeholder bilder från Lorem Picsum. Perfekt för wireframes, mockups, and utveckling. Returnerar direct bild URLs in flera styles inklusive grayscale and blur effekter. Inga hotlinking-begränsningar.

Parametrar

width valfri standard: 600

Image width in pixels

height valfri standard: 400

Image height in pixels

Exempelförfrågningar

Grundläggande användning
curl "https://nordapi.ee/api/v1/placeholder/random?width=800&height=600"
Default 600x400 image
curl https://nordapi.ee/api/v1/placeholder/random
Square 500x500 image
curl "https://nordapi.ee/api/v1/placeholder/random?width=500&height=500"
Banner size 1200x300
curl "https://nordapi.ee/api/v1/placeholder/random?width=1200&height=300"

Livesvar

{
  "data": {
    "blur_url": "https://picsum.photos/800/600?blur=2",
    "grayscale_url": "https://picsum.photos/800/600?grayscale",
    "height": 600,
    "image_url": "https://picsum.photos/800/600",
    "specific_url": "https://picsum.photos/id/197/800/600",
    "width": 800
  },
  "success": true
}