/vehicles/67

homecaret-rightvehiclescaret-right

67

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/67")
    .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 tri-fighter",
  "model": "tri-fighter",
  "manufacturer": "Colla Designs, Phlac-Arphocc Automata Industries",
  "cost_in_credits": "20000",
  "length": "5.4",
  "max_atmosphering_speed": "1180",
  "crew": "1",
  "passengers": "0",
  "cargo_capacity": "0",
  "consumables": "none",
  "vehicle_class": "droid starfighter",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T20:05:19.992000Z",
  "edited": "2014-12-20T21:30:21.752000Z",
  "url": "https://swapi.info/api/vehicles/67"
}
eye-open
Good