/vehicles/35
Request:
fetch("https://swapi.info/api/vehicles/35")
.then((res) => res.json()) // Parse the JSON content from the API to be consumed
.then((json) => console.log(json)) // Log the JSON response to your console
.catch((error) => console.error(error)) // Log the API error (if any) to your console
Result:
{
"name": "Armored Assault Tank",
"model": "Armoured Assault Tank",
"manufacturer": "Baktoid Armor Workshop",
"cost_in_credits": "unknown",
"length": "9.75",
"max_atmosphering_speed": "55",
"crew": "4",
"passengers": "6",
"cargo_capacity": "unknown",
"consumables": "unknown",
"vehicle_class": "repulsorcraft",
"pilots": [],
"films": [
"https://swapi.info/api/films/4"
],
"created": "2014-12-19T17:13:29.799000Z",
"edited": "2014-12-20T21:30:21.703000Z",
"url": "https://swapi.info/api/vehicles/35"
}