/vehicles/45

homecaret-rightvehiclescaret-right

45

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/45")
    .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": "Koro-2 Exodrive airspeeder",
  "model": "Koro-2 Exodrive airspeeder",
  "manufacturer": "Desler Gizh Outworld Mobility Corporation",
  "cost_in_credits": "unknown",
  "length": "6.6",
  "max_atmosphering_speed": "800",
  "crew": "1",
  "passengers": "1",
  "cargo_capacity": "80",
  "consumables": "unknown",
  "vehicle_class": "airspeeder",
  "pilots": [
    "https://swapi.info/api/people/70"
  ],
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "created": "2014-12-20T17:17:33.526000Z",
  "edited": "2014-12-20T21:30:21.716000Z",
  "url": "https://swapi.info/api/vehicles/45"
}
eye-open
Good