/starships/11

homecaret-rightstarshipscaret-right

11

API Endpoint:

Request:

fetch("https://swapi.info/api/starships/11")
    .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": "Y-wing",
  "model": "BTL Y-wing",
  "manufacturer": "Koensayr Manufacturing",
  "cost_in_credits": "134999",
  "length": "14",
  "max_atmosphering_speed": "1000km",
  "crew": "2",
  "passengers": "0",
  "cargo_capacity": "110",
  "consumables": "1 week",
  "hyperdrive_rating": "1.0",
  "MGLT": "80",
  "starship_class": "assault starfighter",
  "pilots": [],
  "films": [
    "https://swapi.info/api/films/1",
    "https://swapi.info/api/films/2",
    "https://swapi.info/api/films/3"
  ],
  "created": "2014-12-12T11:00:39.817000Z",
  "edited": "2014-12-20T21:23:49.883000Z",
  "url": "https://swapi.info/api/starships/11"
}
eye-open
Good