← Planets

Cerea

Rotation period27
Orbital period386
Diameterunknown
Climatetemperate
Gravity1
Terrainverdant
Surface water20
Population450000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/43').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":43}
GET /api/planets/43 200
{
  "climate": "temperate",
  "created": "2014-12-20T10:14:48.178000Z",
  "diameter": "unknown",
  "edited": "2014-12-20T20:58:18.493000Z",
  "films": [],
  "gravity": "1",
  "name": "Cerea",
  "orbital_period": "386",
  "population": "450000000",
  "residents": [
    "https://swapi.build/api/people/52"
  ],
  "rotation_period": "27",
  "surface_water": "20",
  "terrain": "verdant",
  "url": "https://swapi.build/api/planets/43"
}