← Planets

Dorin

Rotation period22
Orbital period409
Diameter13400
Climatetemperate
Gravity1
Terrainunknown
Surface waterunknown
Populationunknown

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/49').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":49}
GET /api/planets/49 200
{
  "climate": "temperate",
  "created": "2014-12-20T10:48:36.141000Z",
  "diameter": "13400",
  "edited": "2014-12-20T20:58:18.504000Z",
  "films": [],
  "gravity": "1",
  "name": "Dorin",
  "orbital_period": "409",
  "population": "unknown",
  "residents": [
    "https://swapi.build/api/people/58"
  ],
  "rotation_period": "22",
  "surface_water": "unknown",
  "terrain": "unknown",
  "url": "https://swapi.build/api/planets/49"
}