← Planets

Champala

Rotation period27
Orbital period318
Diameterunknown
Climatetemperate
Gravity1
Terrainoceans, rainforests, plateaus
Surface waterunknown
Population3500000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/50').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":50}
GET /api/planets/50 200
{
  "climate": "temperate",
  "created": "2014-12-20T10:52:51.524000Z",
  "diameter": "unknown",
  "edited": "2014-12-20T20:58:18.506000Z",
  "films": [],
  "gravity": "1",
  "name": "Champala",
  "orbital_period": "318",
  "population": "3500000000",
  "residents": [
    "https://swapi.build/api/people/59"
  ],
  "rotation_period": "27",
  "surface_water": "unknown",
  "terrain": "oceans, rainforests, plateaus",
  "url": "https://swapi.build/api/planets/50"
}