Vai al contenuto
GET /v1/character

A character by id or filtered search

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/gameofthrones-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "character": {
            "id": 583,
            "born": "In 283 AC",
            "died": null,
            "name": "Jon Snow",
            "gender": "Male",
            "titles": [
                "Lord Commander of the Night's Watch"
            ],
            "aliases": [
                "Lord Snow",
                "Ned Stark's Bastard",
                "The Snow of Winterfell",
                "The Crow-Come-Over",
                "The 998th Lord Commander of the Night's Watch",
                "The Bastard of Winterfell",
                "The Black Bastard of the Wall",
                "Lord Crow"
            ],
            "culture": "Northmen",
            "book_ids": [
                5
            ],
            "father_id": null,
            "mother_id": null,
            "played_by": [
                "Kit Harington"
            ],
            "spouse_id": null,
            "tv_series": [
                "Season 1",
                "Season 2",
                "Season 3",
                "Season 4",
                "Season 5",
                "Season 6"
            ],
            "allegiance_house_ids": [
                362
            ]
        }
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:32.772Z",
        "request_id": "97a29067-59f2-4b11-938b-987cc53a05a4"
    },
    "status": "ok",
    "message": "Character retrieved",
    "success": true
}