Vai al contenuto
GET /v1/character

A character by name or uid

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "page": 0,
        "count": 16,
        "query": "Picard",
        "total": 16,
        "results": [
            {
                "uid": "CHMA0000015352",
                "name": "Elise Picard",
                "gender": null,
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
                "serial_number": null,
                "year_of_birth": null,
                "year_of_death": null
            },
            {
                "uid": "CHMA0000011750",
                "name": "Javier Maribona-Picard",
                "gender": "M",
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
                "serial_number": null,
                "year_of_birth": null,
                "year_of_death": null
            },
            {
                "uid": "CHMA0000289509",
                "name": "Jean-Luc Picard",
                "gender": "M",
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
                "serial_number": "SP-937-215",
                "year_of_birth": 2305,
                "year_of_death": null
            },
            {
                "uid": "CHMA0000112984",
                "name": "Jean-Luc Picard",
                "gender": null,
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
                "serial_number": null,
                "year_of_birth": null,
                "year_of_death": null
            },
            {
                "uid": "CHMA0000015360",
                "name": "Madison Picard",
                "gender": null,
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
                "serial_number": null,
                "year_of_birth": null,
                "year_of_death": null
            },
            {
                "uid": "CHMA0000015090",
                "name": "Marie Picard",
                "gender": "F",
                "titles": [],
                "species": [],
                "height_cm": null,
                "weight_kg": null,
                "performers": [],
                "occupations": [],
                "organizations": [],
             
…