Endpoint: starships
GEThttps://swapi.mimo.dev/api/starships/arc-170
Request
GETstarships
1fetch("https://swapi.mimo.dev/api/starships/arc-170")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "arc-170",
3 "model": "Aggressive Reconnaissance-170 starfighte",
4 "manufacturer": "Incom Corporation, Subpro Corporation",
5 "cost_in_credits": "155000",
6 "length": "14.5",
7 "max_atmosphering_speed": "1000",
8 "crew": "3",
9 "passengers": "0",
10 "cargo_capacity": "110",
11 "consumables": "5 days",
12 "hyperdrive_rating": "1.0",
13 "MGLT": "100",
14 "starship_class": "starfighter",
15 "pilots": [],
16 "films": [
17 "https://swapi.mimo.dev/api/films/6/"
18 ],
19 "created": "2014-12-20T20:03:48.603000Z",
20 "edited": "2014-12-20T21:23:49.953000Z",
21 "url": "https://swapi.mimo.dev/api/starships/66/"
22}