/vehicles/76
Request:
fetch("https://swapi.info/api/vehicles/76")
.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": "AT-RT",
"model": "All Terrain Recon Transport",
"manufacturer": "Kuat Drive Yards",
"cost_in_credits": "40000",
"length": "3.2",
"max_atmosphering_speed": "90",
"crew": "1",
"passengers": "0",
"cargo_capacity": "20",
"consumables": "1 day",
"vehicle_class": "walker",
"pilots": [],
"films": [
"https://swapi.info/api/films/6"
],
"created": "2014-12-20T20:47:49.189000Z",
"edited": "2014-12-20T21:30:21.772000Z",
"url": "https://swapi.info/api/vehicles/76"
}