Zum Inhalt springen
GET /v1/url

Build a placeholder-photo URL

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/photos-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/photos-api/v1/url" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/photos-api/v1/url", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/photos-api/v1/url");
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/url",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "url": "https://picsum.photos/seed/oanor/600/400",
        "blur": null,
        "mode": "seeded (deterministic)",
        "seed": "oanor",
        "width": 600,
        "height": 400,
        "photo_id": null,
        "grayscale": false,
        "resolved_url": null
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:36.693Z",
        "request_id": "757a1640-b54b-4569-b91f-ae37ac778208"
    },
    "status": "ok",
    "message": "Photo URL built",
    "success": true
}