Endpoint: species
GEThttps://swapi.mimo.dev/api/species/Dug
Request
GETspecies
1fetch("https://swapi.mimo.dev/api/species/Dug")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Dug",
3 "classification": "mammal",
4 "designation": "sentient",
5 "average_height": "100",
6 "skin_colors": "brown, purple, grey, red",
7 "hair_colors": "none",
8 "eye_colors": "yellow, blue",
9 "average_lifespan": "unknown",
10 "homeworld": "https://swapi.mimo.dev/api/planets/35/",
11 "language": "Dugese",
12 "people": [
13 "https://swapi.mimo.dev/api/people/41/"
14 ],
15 "films": [
16 "https://swapi.mimo.dev/api/films/4/"
17 ],
18 "created": "2014-12-19T17:53:11.214000Z",
19 "edited": "2014-12-20T21:36:42.167000Z",
20 "url": "https://swapi.mimo.dev/api/species/14/"
21}