← Planets

Haruun Kal

Rotation period25
Orbital period383
Diameter10120
Climatetemperate
Gravity0.98
Terraintoxic cloudsea, plateaus, volcanoes
Surface waterunknown
Population705300

Residents

curl

curl https://swapi.build/api/planets/42

JavaScript

fetch('https://swapi.build/api/planets/42').then((r) => r.json())

Python

requests.get('https://swapi.build/api/planets/42').json()

MCP

Connect your agent once:

claude mcp add --transport http swapi-build https://swapi.build/mcp

then call the tool sw_get with:

{"resource":"PLANETS","id":42}
GET /api/planets/42 200
{
  "climate": "temperate",
  "created": "2014-12-20T10:12:28.980000Z",
  "diameter": "10120",
  "edited": "2014-12-20T20:58:18.491000Z",
  "films": [],
  "gravity": "0.98",
  "name": "Haruun Kal",
  "orbital_period": "383",
  "population": "705300",
  "residents": [
    "https://swapi.build/api/people/51"
  ],
  "rotation_period": "25",
  "surface_water": "unknown",
  "terrain": "toxic cloudsea, plateaus, volcanoes",
  "url": "https://swapi.build/api/planets/42"
}