/v1/get
Full detail by category + id
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/starwars-api/v1/get" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starwars-api/v1/get", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starwars-api/v1/get");
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/get",
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": {
"type": "people",
"result": {
"uid": "1",
"url": "https://www.swapi.tech/api/people/1",
"mass": "77",
"name": "Luke Skywalker",
"films": [
"https://www.swapi.tech/api/films/1",
"https://www.swapi.tech/api/films/2",
"https://www.swapi.tech/api/films/3",
"https://www.swapi.tech/api/films/6"
],
"edited": "2026-05-31T05:22:39.375Z",
"gender": "male",
"height": "172",
"created": "2026-05-31T05:22:39.375Z",
"vehicles": [
"https://www.swapi.tech/api/vehicles/14",
"https://www.swapi.tech/api/vehicles/30"
],
"eye_color": "blue",
"homeworld": "https://www.swapi.tech/api/planets/1",
"starships": [
"https://www.swapi.tech/api/starships/12",
"https://www.swapi.tech/api/starships/22"
],
"birth_year": "19BBY",
"hair_color": "blond",
"skin_color": "fair",
"description": "A person within the Star Wars universe"
}
},
"meta": {
"timestamp": "2026-06-01T00:04:37.777Z",
"request_id": "e74e7699-5878-4261-87c0-3c763dded202"
},
"status": "ok",
"message": "Resource retrieved",
"success": true
}