Endpoint: starships
GEThttps://swapi.mimo.dev/api/starships/Executor
Request
GETstarships
1fetch("https://swapi.mimo.dev/api/starships/Executor")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Executor",
3 "model": "Executor-class star dreadnought",
4 "manufacturer": "Kuat Drive Yards, Fondor Shipyards",
5 "cost_in_credits": "1143350000",
6 "length": "19000",
7 "max_atmosphering_speed": "n/a",
8 "crew": "279,144",
9 "passengers": "38000",
10 "cargo_capacity": "250000000",
11 "consumables": "6 years",
12 "hyperdrive_rating": "2.0",
13 "MGLT": "40",
14 "starship_class": "Star dreadnought",
15 "pilots": [],
16 "films": [
17 "https://swapi.mimo.dev/api/films/2/",
18 "https://swapi.mimo.dev/api/films/3/"
19 ],
20 "created": "2014-12-15T12:31:42.547000Z",
21 "edited": "2014-12-20T21:23:49.893000Z",
22 "url": "https://swapi.mimo.dev/api/starships/15/"
23}