Naar de inhoud
GET /v1/random

A random card

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "card": {
            "key": "DoctorStrange",
            "url": "/cards/DoctorStrange/",
            "cost": 2,
            "name": "Doctor Strange",
            "image": "https://game-assets.snap.fan/card_variant_images/DoctorStrange-b05d7d9c7f09c8981d5800833bbfe8f8d27777917e7907e15d0f3586ba484f1e.webp",
            "power": 4,
            "series": "Series 1 (Collection Level 18-214)",
            "ability": "On Reveal: Move your highest-Power card(s) to this location.",
            "variants": 21,
            "card_type": 0,
            "turn_drawn": null,
            "is_released": true,
            "series_short": "Series 1",
            "is_collectable": true,
            "starts_in_hand": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:18:26.325Z",
        "request_id": "8deefc4e-ab46-4485-b0b8-9d41cda06710"
    },
    "status": "ok",
    "message": "Random card retrieved successfully",
    "success": true
}