/v1/photo
A photo's info by id
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/photos-api/v1/photo" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/photos-api/v1/photo", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/photos-api/v1/photo");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/photos-api/v1/photo",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"photo": {
"id": "237",
"width": 3500,
"author": "André Spieker",
"height": 2095,
"source_url": "https://unsplash.com/photos/8wTPqxlnKM4",
"download_url": "https://picsum.photos/id/237/3500/2095"
}
},
"meta": {
"timestamp": "2026-06-01T00:04:36.583Z",
"request_id": "351843ec-8e7c-4eaf-bcc1-d5044f8dc868"
},
"status": "ok",
"message": "Photo retrieved",
"success": true
}