/v1/image
One file by name
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/commons-api/v1/image" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/commons-api/v1/image", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/commons-api/v1/image");
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/commons-api/v1/image",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"file": {
"date": "2026-05-28",
"mime": "image/jpeg",
"title": "Example.jpg",
"width": 172,
"author": "",
"credit": "Own work",
"height": 178,
"license": "Public domain",
"page_url": "https://commons.wikimedia.org/wiki/File:Example.jpg",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
"categories": "PD ineligible|PD text|Protected files|Vector version available|Example images|Commons prohibited file names|English-language image placeholders|PD-text missing SDC copyright status",
"size_bytes": 9022,
"license_url": null,
"thumbnail_url": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg"
}
},
"meta": {
"timestamp": "2026-05-31T11:06:35.152Z",
"request_id": "23c0a66f-a2d3-468e-85c2-d81522a2bddf"
},
"status": "ok",
"message": "File retrieved",
"success": true
}