/vehicles/69
Request:
fetch("https://swapi.info/api/vehicles/69")
.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": "Oevvaor jet catamaran",
"model": "Oevvaor jet catamaran",
"manufacturer": "Appazanna Engineering Works",
"cost_in_credits": "12125",
"length": "15.1",
"max_atmosphering_speed": "420",
"crew": "2",
"passengers": "2",
"cargo_capacity": "50",
"consumables": "3 days",
"vehicle_class": "airspeeder",
"pilots": [],
"films": [
"https://swapi.info/api/films/6"
],
"created": "2014-12-20T20:20:53.931000Z",
"edited": "2014-12-20T21:30:21.756000Z",
"url": "https://swapi.info/api/vehicles/69"
}