Aller au contenu
GET /v1/list

List a category (paginated; films whole)

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/starwars-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "page": 1,
        "type": "people",
        "count": 10,
        "total": 82,
        "results": [
            {
                "uid": "1",
                "name": "Luke Skywalker"
            },
            {
                "uid": "2",
                "name": "C-3PO"
            },
            {
                "uid": "3",
                "name": "R2-D2"
            },
            {
                "uid": "4",
                "name": "Darth Vader"
            },
            {
                "uid": "5",
                "name": "Leia Organa"
            },
            {
                "uid": "6",
                "name": "Owen Lars"
            },
            {
                "uid": "7",
                "name": "Beru Whitesun lars"
            },
            {
                "uid": "8",
                "name": "R5-D4"
            },
            {
                "uid": "9",
                "name": "Biggs Darklighter"
            },
            {
                "uid": "10",
                "name": "Obi-Wan Kenobi"
            }
        ],
        "total_pages": 9
    },
    "meta": {
        "timestamp": "2026-06-01T00:04:38.362Z",
        "request_id": "af0393c7-32fc-4d0b-83bd-7d3d1c5bb808"
    },
    "status": "ok",
    "message": "Resources listed",
    "success": true
}