Endpoint: vehicles

GEThttps://swapi.mimo.dev/api/vehicles/SPHA

Request

GETvehicles
1fetch("https://swapi.mimo.dev/api/vehicles/SPHA")
2 .then((res) => res.json())
3 .then((json) => console.log(json))
4 .catch((error) => console.error(error))

Response

response.json
1{
2 "name": "SPHA",
3 "model": "Self-Propelled Heavy Artillery",
4 "manufacturer": "Rothana Heavy Engineering",
5 "cost_in_credits": "unknown",
6 "length": "140",
7 "max_atmosphering_speed": "35",
8 "crew": "25",
9 "passengers": "30",
10 "cargo_capacity": "500",
11 "consumables": "7 days",
12 "vehicle_class": "walker",
13 "pilots": [],
14 "films": [
15 "https://swapi.mimo.dev/api/films/5/"
16 ],
17 "created": "2014-12-20T18:12:32.315000Z",
18 "edited": "2014-12-20T21:30:21.731000Z",
19 "url": "https://swapi.mimo.dev/api/vehicles/54/"
20}