← Planets

Kashyyyk

Rotation period26
Orbital period381
Diameter12765
Climatetropical
Gravity1 standard
Terrainjungle, forests, lakes, rivers
Surface water60
Population45000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/14').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":14}
GET /api/planets/14 200
{
  "climate": "tropical",
  "created": "2014-12-10T13:32:00.124000Z",
  "diameter": "12765",
  "edited": "2014-12-20T20:58:18.442000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "gravity": "1 standard",
  "name": "Kashyyyk",
  "orbital_period": "381",
  "population": "45000000",
  "residents": [
    "https://swapi.build/api/people/13",
    "https://swapi.build/api/people/80"
  ],
  "rotation_period": "26",
  "surface_water": "60",
  "terrain": "jungle, forests, lakes, rivers",
  "url": "https://swapi.build/api/planets/14"
}