Endpoint: species
GEThttps://swapi.mimo.dev/api/species/Chagrian
Request
GETspecies
1fetch("https://swapi.mimo.dev/api/species/Chagrian")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Chagrian",
3 "classification": "amphibian",
4 "designation": "sentient",
5 "average_height": "190",
6 "skin_colors": "blue",
7 "hair_colors": "none",
8 "eye_colors": "blue",
9 "average_lifespan": "unknown",
10 "homeworld": "https://swapi.mimo.dev/api/planets/50/",
11 "language": "Chagria",
12 "people": [
13 "https://swapi.mimo.dev/api/people/59/"
14 ],
15 "films": [
16 "https://swapi.mimo.dev/api/films/4/",
17 "https://swapi.mimo.dev/api/films/6/"
18 ],
19 "created": "2014-12-20T10:53:28.795000Z",
20 "edited": "2014-12-20T21:36:42.193000Z",
21 "url": "https://swapi.mimo.dev/api/species/27/"
22}