Naar de inhoud
GET /v1/oembed

oEmbed for a Spotify URL

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/spotify-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "oembed": {
            "html": "<iframe style=\"border-radius: 12px\" width=\"100%\" height=\"352\" title=\"Spotify Embed: Global Warming\" frameborder=\"0\" allowfullscreen allow=\"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture\" loading=\"lazy\" src=\"https://open.spotify.com/embed/album/4aawyAB9vmqN3uQ7FjRGTy?utm_source=oembed\"></iframe>",
            "type": "rich",
            "title": "Global Warming",
            "width": 456,
            "height": 352,
            "provider": "Spotify",
            "thumbnail_url": "https://image-cdn-fa.spotifycdn.com/image/ab67616d00001e022c5b24ecfa39523a75c993c4"
        }
    },
    "meta": {
        "timestamp": "2026-06-07T16:47:10.706Z",
        "request_id": "cfe8c797-a6e3-423a-9b33-ded6dd58b866"
    },
    "status": "ok",
    "message": "oEmbed retrieved successfully",
    "success": true
}