/starships/29

homecaret-rightstarshipscaret-right

29

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/29")
    .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": "B-wing",
  "model": "A/SF-01 B-wing starfighter",
  "manufacturer": "Slayn & Korpil",
  "cost_in_credits": "220000",
  "length": "16.9",
  "max_atmosphering_speed": "950",
  "crew": "1",
  "passengers": "0",
  "cargo_capacity": "45",
  "consumables": "1 week",
  "hyperdrive_rating": "2.0",
  "MGLT": "91",
  "starship_class": "Assault Starfighter",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-18T11:18:04.763000Z",
  "edited": "2014-12-20T21:23:49.909000Z",
  "url": "https://swapi.info/api/starships/29"
}
eye-open
Good