Endpoint: starships
GEThttps://swapi.mimo.dev/api/starships/Y-wing
Request
GETstarships
1fetch("https://swapi.mimo.dev/api/starships/Y-wing")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Y-wing",
3 "model": "BTL Y-wing",
4 "manufacturer": "Koensayr Manufacturing",
5 "cost_in_credits": "134999",
6 "length": "14",
7 "max_atmosphering_speed": "1000km",
8 "crew": "2",
9 "passengers": "0",
10 "cargo_capacity": "110",
11 "consumables": "1 week",
12 "hyperdrive_rating": "1.0",
13 "MGLT": "80",
14 "starship_class": "assault starfighter",
15 "pilots": [],
16 "films": [
17 "https://swapi.mimo.dev/api/films/1/",
18 "https://swapi.mimo.dev/api/films/2/",
19 "https://swapi.mimo.dev/api/films/3/"
20 ],
21 "created": "2014-12-12T11:00:39.817000Z",
22 "edited": "2014-12-20T21:23:49.883000Z",
23 "url": "https://swapi.mimo.dev/api/starships/11/"
24}