/starships/61

homecaret-rightstarshipscaret-right

61

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/61")
    .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": "Theta-class T-2c shuttle",
  "model": "Theta-class T-2c shuttle",
  "manufacturer": "Cygnus Spaceworks",
  "cost_in_credits": "1000000",
  "length": "18.5",
  "max_atmosphering_speed": "2000",
  "crew": "5",
  "passengers": "16",
  "cargo_capacity": "50000",
  "consumables": "56 days",
  "hyperdrive_rating": "1.0",
  "MGLT": "unknown",
  "starship_class": "transport",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-20T19:48:40.409000Z",
  "edited": "2014-12-20T21:23:49.944000Z",
  "url": "https://swapi.info/api/starships/61"
}
eye-open
Good