Skip to content
GET /v1/photo

A photo's info by id

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/photos-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}