← Planets

Dathomir

Rotation period24
Orbital period491
Diameter10480
Climatetemperate
Gravity0.9
Terrainforests, deserts, savannas
Surface waterunknown
Population5200

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/36').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":36}
GET /api/planets/36 200
{
  "climate": "temperate",
  "created": "2014-12-19T18:00:40.142000Z",
  "diameter": "10480",
  "edited": "2014-12-20T20:58:18.480000Z",
  "films": [],
  "gravity": "0.9",
  "name": "Dathomir",
  "orbital_period": "491",
  "population": "5200",
  "residents": [
    "https://swapi.build/api/people/44"
  ],
  "rotation_period": "24",
  "surface_water": "unknown",
  "terrain": "forests, deserts, savannas",
  "url": "https://swapi.build/api/planets/36"
}