/starships/15

homecaret-rightstarshipscaret-right

15

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/15")
    .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": "Executor",
  "model": "Executor-class star dreadnought",
  "manufacturer": "Kuat Drive Yards, Fondor Shipyards",
  "cost_in_credits": "1143350000",
  "length": "19000",
  "max_atmosphering_speed": "n/a",
  "crew": "279,144",
  "passengers": "38000",
  "cargo_capacity": "250000000",
  "consumables": "6 years",
  "hyperdrive_rating": "2.0",
  "MGLT": "40",
  "starship_class": "Star dreadnought",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/2",
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-15T12:31:42.547000Z",
  "edited": "2014-12-20T21:23:49.893000Z",
  "url": "https://swapi.info/api/starships/15"
}
eye-open
Good