/vehicles/62

homecaret-rightvehiclescaret-right

62

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/62")
    .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": "Emergency Firespeeder",
  "model": "Fire suppression speeder",
  "manufacturer": "unknown",
  "cost_in_credits": "unknown",
  "length": "unknown",
  "max_atmosphering_speed": "unknown",
  "crew": "2",
  "passengers": "unknown",
  "cargo_capacity": "unknown",
  "consumables": "unknown",
  "vehicle_class": "fire suppression ship",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T19:50:58.559000Z",
  "edited": "2014-12-20T21:30:21.749000Z",
  "url": "https://swapi.info/api/vehicles/62"
}
eye-open
Good