Endpoint: starships
GEThttps://swapi.mimo.dev/api/starships/Scimitar
Request
GETstarships
1fetch("https://swapi.mimo.dev/api/starships/Scimitar")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))
Response
response.json
1{
2 "name": "Scimitar",
3 "model": "Star Courier",
4 "manufacturer": "Republic Sienar Systems",
5 "cost_in_credits": "55000000",
6 "length": "26.5",
7 "max_atmosphering_speed": "1180",
8 "crew": "1",
9 "passengers": "6",
10 "cargo_capacity": "2500000",
11 "consumables": "30 days",
12 "hyperdrive_rating": "1.5",
13 "MGLT": "unknown",
14 "starship_class": "Space Transport",
15 "pilots": [
16 "https://swapi.mimo.dev/api/people/44/"
17 ],
18 "films": [
19 "https://swapi.mimo.dev/api/films/4/"
20 ],
21 "created": "2014-12-20T09:39:56.116000Z",
22 "edited": "2014-12-20T21:23:49.922000Z",
23 "url": "https://swapi.mimo.dev/api/starships/41/"
24}