/v1/photo
A photo's info by id
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}