/starships/47

homecaret-rightstarshipscaret-right

47

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/47")
    .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": "AA-9 Coruscant freighter",
  "model": "Botajef AA-9 Freighter-Liner",
  "manufacturer": "Botajef Shipyards",
  "cost_in_credits": "unknown",
  "length": "390",
  "max_atmosphering_speed": "unknown",
  "crew": "unknown",
  "passengers": "30000",
  "cargo_capacity": "unknown",
  "consumables": "unknown",
  "hyperdrive_rating": "unknown",
  "MGLT": "unknown",
  "starship_class": "freighter",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/5"
  ],
  "created": "2014-12-20T17:24:23.509000Z",
  "edited": "2014-12-20T21:23:49.928000Z",
  "url": "https://swapi.info/api/starships/47"
}
eye-open
Good