/vehicles/19

homecaret-rightvehiclescaret-right

19

API Endpoint:

Request:

fetch("https://swapi.info/api/vehicles/19")
    .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": "AT-ST",
  "model": "All Terrain Scout Transport",
  "manufacturer": "Kuat Drive Yards, Imperial Department of Military Research",
  "cost_in_credits": "unknown",
  "length": "2",
  "max_atmosphering_speed": "90",
  "crew": "2",
  "passengers": "0",
  "cargo_capacity": "200",
  "consumables": "none",
  "vehicle_class": "walker",
  "pilots": [
    "https://swapi.info/api/people/13"
  ],
  "films": [
    "https://swapi.info/api/films/2",
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-15T12:46:42.384000Z",
  "edited": "2014-12-20T21:30:21.679000Z",
  "url": "https://swapi.info/api/vehicles/19"
}
eye-open
Good