← Planets

Polis Massa

Rotation period24
Orbital period590
Diameter0
Climateartificial temperate
Gravity0.56 standard
Terrainairless asteroid
Surface water0
Population1000000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/15').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":15}
GET /api/planets/15 200
{
  "climate": "artificial temperate ",
  "created": "2014-12-10T13:33:46.405000Z",
  "diameter": "0",
  "edited": "2014-12-20T20:58:18.444000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "gravity": "0.56 standard",
  "name": "Polis Massa",
  "orbital_period": "590",
  "population": "1000000",
  "residents": [],
  "rotation_period": "24",
  "surface_water": "0",
  "terrain": "airless asteroid",
  "url": "https://swapi.build/api/planets/15"
}