← Planets

Utapau

Rotation period27
Orbital period351
Diameter12900
Climatetemperate, arid, windy
Gravity1 standard
Terrainscrublands, savanna, canyons, sinkholes
Surface water0.9
Population95000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/12').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":12}
GET /api/planets/12 200
{
  "climate": "temperate, arid, windy",
  "created": "2014-12-10T12:49:01.491000Z",
  "diameter": "12900",
  "edited": "2014-12-20T20:58:18.439000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "gravity": "1 standard",
  "name": "Utapau",
  "orbital_period": "351",
  "population": "95000000",
  "residents": [
    "https://swapi.build/api/people/83"
  ],
  "rotation_period": "27",
  "surface_water": "0.9",
  "terrain": "scrublands, savanna, canyons, sinkholes",
  "url": "https://swapi.build/api/planets/12"
}