/vehicles/73

homecaret-rightvehiclescaret-right

73

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/73")
    .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": "Droid gunship",
  "model": "HMP droid gunship",
  "manufacturer": "Baktoid Fleet Ordnance, Haor Chall Engineering",
  "cost_in_credits": "60000",
  "length": "12.3",
  "max_atmosphering_speed": "820",
  "crew": "0",
  "passengers": "0",
  "cargo_capacity": "0",
  "consumables": "none",
  "vehicle_class": "airspeeder",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T20:32:05.687000Z",
  "edited": "2014-12-20T21:30:21.768000Z",
  "url": "https://swapi.info/api/vehicles/73"
}
eye-open
Good