/v1/videos/embed-html
Video embed HTML
oEmbed-iframe-HTML zum Einbinden.
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/youtube-api/v1/videos/embed-html" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/youtube-api/v1/videos/embed-html", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/youtube-api/v1/videos/embed-html");
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/youtube-api/v1/videos/embed-html",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"html": "<iframe width=\"200\" height=\"113\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen title=\"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)\"></iframe>",
"video_id": "dQw4w9WgXcQ"
},
"meta": {
"timestamp": "2026-05-04T13:59:36.422Z",
"request_id": "95602f48-a57a-4854-b772-4ef96e2aaa84"
},
"status": "ok",
"message": "Video embed HTML retrieved successfully",
"success": true
}