GET /starwars/people/:id
Get detaljerad information om a specifik Star Wars karaktär by deras SWAPI ID. Returnerar the karaktär's namn, birth year, height, mass, hair color, skin color, eye color, gender, homeworld detaljer, and a list of films they appear in. Använd detta for att bygga karaktär profile sidor, Star Wars databaser, and detaljerad karaktär kort in fan applikationer.
id
obligatorisk
SWAPI person ID
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
id |
Ja | - | SWAPI person ID |
curl https://nordapi.ee/api/v1/starwars/people/1
curl https://nordapi.ee/api/v1/starwars/people/1
curl https://nordapi.ee/api/v1/starwars/people/4
curl https://nordapi.ee/api/v1/starwars/people/5
{
"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
}