Endpoint: species
GEThttps://swapi.mimo.dev/api/species/Trandoshan
Request
GETspecies
1fetch("https://swapi.mimo.dev/api/species/Trandoshan")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Trandoshan",
3 "classification": "reptile",
4 "designation": "sentient",
5 "average_height": "200",
6 "skin_colors": "brown, green",
7 "hair_colors": "none",
8 "eye_colors": "yellow, orange",
9 "average_lifespan": "unknown",
10 "homeworld": "https://swapi.mimo.dev/api/planets/29/",
11 "language": "Dosh",
12 "people": [
13 "https://swapi.mimo.dev/api/people/24/"
14 ],
15 "films": [
16 "https://swapi.mimo.dev/api/films/2/"
17 ],
18 "created": "2014-12-15T13:07:47.704000Z",
19 "edited": "2014-12-20T21:36:42.151000Z",
20 "url": "https://swapi.mimo.dev/api/species/7/"
21}