/vehicles/36

homecaret-rightvehiclescaret-right

36

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/36")
    .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": "Single Trooper Aerial Platform",
  "model": "Single Trooper Aerial Platform",
  "manufacturer": "Baktoid Armor Workshop",
  "cost_in_credits": "2500",
  "length": "2",
  "max_atmosphering_speed": "400",
  "crew": "1",
  "passengers": "0",
  "cargo_capacity": "none",
  "consumables": "none",
  "vehicle_class": "repulsorcraft",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/4"
  ],
  "created": "2014-12-19T17:15:09.511000Z",
  "edited": "2014-12-20T21:30:21.705000Z",
  "url": "https://swapi.info/api/vehicles/36"
}
eye-open
Good