← Planets

Mygeeto

Rotation period12
Orbital period167
Diameter10088
Climatefrigid
Gravity1 standard
Terrainglaciers, mountains, ice canyons
Surface waterunknown
Population19000000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/16').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":16}
GET /api/planets/16 200
{
  "climate": "frigid",
  "created": "2014-12-10T13:43:39.139000Z",
  "diameter": "10088",
  "edited": "2014-12-20T20:58:18.446000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "gravity": "1 standard",
  "name": "Mygeeto",
  "orbital_period": "167",
  "population": "19000000",
  "residents": [],
  "rotation_period": "12",
  "surface_water": "unknown",
  "terrain": "glaciers, mountains, ice canyons",
  "url": "https://swapi.build/api/planets/16"
}