Endpoint: starships

GEThttps://swapi.mimo.dev/api/starships/X-wing

Request

GETstarships
1fetch("https://swapi.mimo.dev/api/starships/X-wing")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "name": "X-wing",
3 "model": "T-65 X-wing",
4 "manufacturer": "Incom Corporation",
5 "cost_in_credits": "149999",
6 "length": "12.5",
7 "max_atmosphering_speed": "1050",
8 "crew": "1",
9 "passengers": "0",
10 "cargo_capacity": "110",
11 "consumables": "1 week",
12 "hyperdrive_rating": "1.0",
13 "MGLT": "100",
14 "starship_class": "Starfighter",
15 "pilots": [
16 "https://swapi.mimo.dev/api/people/1/",
17 "https://swapi.mimo.dev/api/people/9/",
18 "https://swapi.mimo.dev/api/people/18/",
19 "https://swapi.mimo.dev/api/people/19/"
20 ],
21 "films": [
22 "https://swapi.mimo.dev/api/films/1/",
23 "https://swapi.mimo.dev/api/films/2/",
24 "https://swapi.mimo.dev/api/films/3/"
25 ],
26 "created": "2014-12-12T11:19:05.340000Z",
27 "edited": "2014-12-20T21:23:49.886000Z",
28 "url": "https://swapi.mimo.dev/api/starships/12/"
29}