Rotation period48
Orbital period1770
Diameter12190
Climateunknown
Gravityunknown
Terrainbarren, ash
Surface waterunknown
Population0

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/41').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":41}
GET /api/planets/41 200
{
  "climate": "unknown",
  "created": "2014-12-20T10:07:29.578000Z",
  "diameter": "12190",
  "edited": "2014-12-20T20:58:18.489000Z",
  "films": [],
  "gravity": "unknown",
  "name": "Tund",
  "orbital_period": "1770",
  "population": "0",
  "residents": [
    "https://swapi.build/api/people/50"
  ],
  "rotation_period": "48",
  "surface_water": "unknown",
  "terrain": "barren, ash",
  "url": "https://swapi.build/api/planets/41"
}