← Planets

Mustafar

Rotation period36
Orbital period412
Diameter4200
Climatehot
Gravity1 standard
Terrainvolcanoes, lava rivers, mountains, caves
Surface water0
Population20000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/13').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":13}
GET /api/planets/13 200
{
  "climate": "hot",
  "created": "2014-12-10T12:50:16.526000Z",
  "diameter": "4200",
  "edited": "2014-12-20T20:58:18.440000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "gravity": "1 standard",
  "name": "Mustafar",
  "orbital_period": "412",
  "population": "20000",
  "residents": [],
  "rotation_period": "36",
  "surface_water": "0",
  "terrain": "volcanoes, lava rivers, mountains, caves",
  "url": "https://swapi.build/api/planets/13"
}