/vehicles/51

homecaret-rightvehiclescaret-right

51

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/51")
    .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/c",
  "model": "Low Altitude Assault Transport/carrier",
  "manufacturer": "Rothana Heavy Engineering",
  "cost_in_credits": "unknown",
  "length": "28.82",
  "max_atmosphering_speed": "620",
  "crew": "1",
  "passengers": "0",
  "cargo_capacity": "40000",
  "consumables": "unknown",
  "vehicle_class": "gunship",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "created": "2014-12-20T18:02:46.802000Z",
  "edited": "2014-12-20T21:30:21.725000Z",
  "url": "https://swapi.info/api/vehicles/51"
}
eye-open
Good