← Planets

Ryloth

Rotation period30
Orbital period305
Diameter10600
Climatetemperate, arid, subartic
Gravity1
Terrainmountains, valleys, deserts, tundra
Surface water5
Population1500000000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/37').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":37}
GET /api/planets/37 200
{
  "climate": "temperate, arid, subartic",
  "created": "2014-12-20T09:46:25.740000Z",
  "diameter": "10600",
  "edited": "2014-12-20T20:58:18.481000Z",
  "films": [],
  "gravity": "1",
  "name": "Ryloth",
  "orbital_period": "305",
  "population": "1500000000",
  "residents": [
    "https://swapi.build/api/people/45",
    "https://swapi.build/api/people/46"
  ],
  "rotation_period": "30",
  "surface_water": "5",
  "terrain": "mountains, valleys, deserts, tundra",
  "url": "https://swapi.build/api/planets/37"
}