← Planets

Trandosha

Rotation period25
Orbital period371
Diameter0
Climatearid
Gravity0.62 standard
Terrainmountains, seas, grasslands, deserts
Surface waterunknown
Population42000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/29').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":29}
GET /api/planets/29 200
{
  "climate": "arid",
  "created": "2014-12-15T12:53:47.695000Z",
  "diameter": "0",
  "edited": "2014-12-20T20:58:18.468000Z",
  "films": [],
  "gravity": "0.62 standard",
  "name": "Trandosha",
  "orbital_period": "371",
  "population": "42000000",
  "residents": [
    "https://swapi.build/api/people/24"
  ],
  "rotation_period": "25",
  "surface_water": "unknown",
  "terrain": "mountains, seas, grasslands, deserts",
  "url": "https://swapi.build/api/planets/29"
}