Naar de inhoud
GET /v1/character

A character by name or uid

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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": [],
             
…