/starships/32

homecaret-rightstarshipscaret-right

32

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/32")
    .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": "Droid control ship",
  "model": "Lucrehulk-class Droid Control Ship",
  "manufacturer": "Hoersch-Kessel Drive, Inc.",
  "cost_in_credits": "unknown",
  "length": "3170",
  "max_atmosphering_speed": "n/a",
  "crew": "175",
  "passengers": "139000",
  "cargo_capacity": "4000000000",
  "consumables": "500 days",
  "hyperdrive_rating": "2.0",
  "MGLT": "unknown",
  "starship_class": "Droid control ship",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/4",
    "https://swapi.info/api/films/5",
    "https://swapi.info/api/films/6"
  ],
  "created": "2014-12-19T17:04:06.323000Z",
  "edited": "2014-12-20T21:23:49.915000Z",
  "url": "https://swapi.info/api/starships/32"
}
eye-open
Good