← Planets

Glee Anselm

Rotation period33
Orbital period206
Diameter15600
Climatetropical, temperate
Gravity1
Terrainlakes, islands, swamps, seas
Surface water80
Population500000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/44').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":44}
GET /api/planets/44 200
{
  "climate": "tropical, temperate",
  "created": "2014-12-20T10:18:26.110000Z",
  "diameter": "15600",
  "edited": "2014-12-20T20:58:18.495000Z",
  "films": [],
  "gravity": "1",
  "name": "Glee Anselm",
  "orbital_period": "206",
  "population": "500000000",
  "residents": [
    "https://swapi.build/api/people/53"
  ],
  "rotation_period": "33",
  "surface_water": "80",
  "terrain": "lakes, islands, swamps, seas",
  "url": "https://swapi.build/api/planets/44"
}