/vehicles/30

homecaret-rightvehiclescaret-right

30

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/30")
    .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": "Imperial Speeder Bike",
  "model": "74-Z speeder bike",
  "manufacturer": "Aratech Repulsor Company",
  "cost_in_credits": "8000",
  "length": "3",
  "max_atmosphering_speed": "360",
  "crew": "1",
  "passengers": "1",
  "cargo_capacity": "4",
  "consumables": "1 day",
  "vehicle_class": "speeder",
  "pilots": [
    "https://swapi.info/api/people/1",
    "https://swapi.info/api/people/5"
  ],
  "films": [
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-18T11:20:04.625000Z",
  "edited": "2014-12-20T21:30:21.693000Z",
  "url": "https://swapi.info/api/vehicles/30"
}
eye-open
Good