/vehicles/50

homecaret-rightvehiclescaret-right

50

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/50")
    .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": "LAAT/i",
  "model": "Low Altitude Assault Transport/infrantry",
  "manufacturer": "Rothana Heavy Engineering",
  "cost_in_credits": "unknown",
  "length": "17.4",
  "max_atmosphering_speed": "620",
  "crew": "6",
  "passengers": "30",
  "cargo_capacity": "170",
  "consumables": "unknown",
  "vehicle_class": "gunship",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T18:01:21.014000Z",
  "edited": "2014-12-20T21:30:21.723000Z",
  "url": "https://swapi.info/api/vehicles/50"
}
eye-open
Good