Aller au contenu
GET /v1/preview

Link preview / unfurl

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/url-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/url-api/v1/preview" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/url-api/v1/preview", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/url-api/v1/preview");
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/url-api/v1/preview",
    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": {
        "url": "https://github.com/",
        "type": "object",
        "image": "https://images.ctfassets.net/8aevphvgewt8/4pe4eOtUJ0ARpZRE4fNekf/f52b1f9c52f059a33170229883731ed0/GH-Homepage-Universe-img.png",
        "title": "GitHub · Change is constant. GitHub keeps you ahead.",
        "favicon": "https://github.com/fluidicon.png",
        "final_url": "https://github.com/",
        "site_name": "GitHub",
        "description": "Join the world's most widely adopted, AI-powered developer platform where millions of developers, businesses, and the largest open source community build software that advances humanity."
    },
    "meta": {
        "timestamp": "2026-05-30T01:37:03.784Z",
        "request_id": "f7e153ea-64fb-4c3d-b777-68214156ddb7"
    },
    "status": "ok",
    "message": "Preview retrieved successfully",
    "success": true
}