← Planets

Stewjon

Rotation periodunknown
Orbital periodunknown
Diameter0
Climatetemperate
Gravity1 standard
Terraingrass
Surface waterunknown
Populationunknown

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/20').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":20}
GET /api/planets/20 200
{
  "climate": "temperate",
  "created": "2014-12-10T16:16:26.566000Z",
  "diameter": "0",
  "edited": "2014-12-20T20:58:18.452000Z",
  "films": [],
  "gravity": "1 standard",
  "name": "Stewjon",
  "orbital_period": "unknown",
  "population": "unknown",
  "residents": [
    "https://swapi.build/api/people/10"
  ],
  "rotation_period": "unknown",
  "surface_water": "unknown",
  "terrain": "grass",
  "url": "https://swapi.build/api/planets/20"
}