Rotation periodunknown
Orbital periodunknown
Diameterunknown
Climatefrigid
Gravityunknown
Terrainoceans, glaciers
Surface water100
Population500000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/55').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":55}
GET /api/planets/55 200
{
  "climate": "frigid",
  "created": "2014-12-20T17:27:41.286000Z",
  "diameter": "unknown",
  "edited": "2014-12-20T20:58:18.516000Z",
  "films": [],
  "gravity": "unknown",
  "name": "Ojom",
  "orbital_period": "unknown",
  "population": "500000000",
  "residents": [
    "https://swapi.build/api/people/71"
  ],
  "rotation_period": "unknown",
  "surface_water": "100",
  "terrain": "oceans, glaciers",
  "url": "https://swapi.build/api/planets/55"
}