/vehicles/57

homecaret-rightvehiclescaret-right

57

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/57")
    .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": "Geonosian starfighter",
  "model": "Nantex-class territorial defense",
  "manufacturer": "Huppla Pasa Tisc Shipwrights Collective",
  "cost_in_credits": "unknown",
  "length": "9.8",
  "max_atmosphering_speed": "20000",
  "crew": "1",
  "passengers": "0",
  "cargo_capacity": "unknown",
  "consumables": "unknown",
  "vehicle_class": "starfighter",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "created": "2014-12-20T18:34:12.541000Z",
  "edited": "2014-12-20T21:30:21.742000Z",
  "url": "https://swapi.info/api/vehicles/57"
}
eye-open
Good