← Planets

Rodia

Rotation period29
Orbital period305
Diameter7549
Climatehot
Gravity1 standard
Terrainjungles, oceans, urban, swamps
Surface water60
Population1300000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/23').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":23}
GET /api/planets/23 200
{
  "climate": "hot",
  "created": "2014-12-10T17:03:28.110000Z",
  "diameter": "7549",
  "edited": "2014-12-20T20:58:18.458000Z",
  "films": [],
  "gravity": "1 standard",
  "name": "Rodia",
  "orbital_period": "305",
  "population": "1300000000",
  "residents": [
    "https://swapi.build/api/people/15"
  ],
  "rotation_period": "29",
  "surface_water": "60",
  "terrain": "jungles, oceans, urban, swamps",
  "url": "https://swapi.build/api/planets/23"
}