/starships/27

homecaret-rightstarshipscaret-right

27

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/27")
    .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": "Calamari Cruiser",
  "model": "MC80 Liberty type Star Cruiser",
  "manufacturer": "Mon Calamari shipyards",
  "cost_in_credits": "104000000",
  "length": "1200",
  "max_atmosphering_speed": "n/a",
  "crew": "5400",
  "passengers": "1200",
  "cargo_capacity": "unknown",
  "consumables": "2 years",
  "hyperdrive_rating": "1.0",
  "MGLT": "60",
  "starship_class": "Star Cruiser",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-18T10:54:57.804000Z",
  "edited": "2014-12-20T21:23:49.904000Z",
  "url": "https://swapi.info/api/starships/27"
}
eye-open
Good