Lorem Picsum API

Random placeholder images

🔑 Auth: None 🔒 HTTPS: Yes 🌐 CORS: Enabled

Live Technical Metrics

Pre-calculated · updated every 20 min
Server-measured technical metrics for the Lorem Picsum API
Uptime Status ⬜ Unknown — not yet probed
Server Latency N/A
Hosting Server Not disclosed
Content-Type Not disclosed
Cache-Control Not set
CORS Support ✅ Enabled — safe for browser fetch()
Authentication ✅ None required — call the API directly without a key
Category Photography

Quick Integration Code

✅ No API key needed
fetch("https://picsum.photos/")
  .then(response => {
    if (!response.ok) throw new Error(`HTTP ${response.status}`);
    return response.json();
  })
  .then(data => console.log(data))
  .catch(error => console.error("Request failed:", error));
import requests

url = "https://picsum.photos/"
headers = {
    "Accept": "application/json",
    # "Authorization": "Bearer YOUR_TOKEN_HERE",
}

response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()
data = response.json()
print(data)
curl -X GET "https://picsum.photos/" \
  -H "Accept: application/json" \
  -H "User-Agent: MyApp/1.0" \
  --max-time 10 \
  --silent | python3 -m json.tool

Sample JSON Response — Photography

Photography

  "id" "abc123xyz"
  "created_at" "2025-01-10T14:22:11Z"
  "width" 5472
  "height" 3648
  "description" "A serene mountain lake at golden hour"
  "urls" 
    "raw" "https://images.unsplash.com/photo-abc"
    "full" "https://images.unsplash.com/photo-abc?w=2048"
    "thumb" "https://images.unsplash.com/photo-abc?w=200"
  
  "likes" 4312
  "views" 182000
  "user" 
    "username" "johndoe"
    "name" "John Doe"