/vehicles/14

homecaret-rightvehiclescaret-right

14

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/14")
    .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": "Snowspeeder",
  "model": "t-47 airspeeder",
  "manufacturer": "Incom corporation",
  "cost_in_credits": "unknown",
  "length": "4.5",
  "max_atmosphering_speed": "650",
  "crew": "2",
  "passengers": "0",
  "cargo_capacity": "10",
  "consumables": "none",
  "vehicle_class": "airspeeder",
  "pilots": [
    "https://swapi.info/api/people/1",
    "https://swapi.info/api/people/18"
  ],
  "films": [
    "https://swapi.info/api/films/2"
  ],
  "created": "2014-12-15T12:22:12Z",
  "edited": "2014-12-20T21:30:21.672000Z",
  "url": "https://swapi.info/api/vehicles/14"
}
eye-open
Good