← Divertissement

Détail d'un personnage Star Wars

GET /starwars/people/:id

Obtenez des informations détaillées sur un Star Wars character by leur SWAPI ID. Renvoie le character's name, birth year, height, mass, hair color, skin color, eye color, gender, homeworld details, et a lister of films they appear in. Use this pour building character profile pages, Star Wars databases, et detailed character cards in fan applications.

Paramètres

id requis

SWAPI person ID

Exemples de requêtes

Utilisation de base
curl https://nordapi.ee/api/v1/starwars/people/1
Luke Skywalker (ID 1)
curl https://nordapi.ee/api/v1/starwars/people/1
Darth Vader (ID 4)
curl https://nordapi.ee/api/v1/starwars/people/4
Leia Organa (ID 5)
curl https://nordapi.ee/api/v1/starwars/people/5

Réponse en direct

{
  "data": {
    "birth_year": "19BBY",
    "eye_color": "blue",
    "films_count": 4,
    "gender": "male",
    "hair_color": "blond",
    "height": "172",
    "homeworld": "https://swapi.dev/api/planets/1/",
    "mass": "77",
    "name": "Luke Skywalker"
  },
  "success": true
}