/vehicles/56

homecaret-rightvehiclescaret-right

56

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/56")
    .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": "Neimoidian shuttle",
  "model": "Sheathipede-class transport shuttle",
  "manufacturer": "Haor Chall Engineering",
  "cost_in_credits": "unknown",
  "length": "20",
  "max_atmosphering_speed": "880",
  "crew": "2",
  "passengers": "6",
  "cargo_capacity": "1000",
  "consumables": "7 days",
  "vehicle_class": "transport",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T18:25:44.912000Z",
  "edited": "2014-12-20T21:30:21.739000Z",
  "url": "https://swapi.info/api/vehicles/56"
}
eye-open
Good