← Planets

Shili

Rotation periodunknown
Orbital periodunknown
Diameterunknown
Climatetemperate
Gravity1
Terraincities, savannahs, seas, plains
Surface waterunknown
Populationunknown

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/58').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":58}
GET /api/planets/58 200
{
  "climate": "temperate",
  "created": "2014-12-20T18:43:14.049000Z",
  "diameter": "unknown",
  "edited": "2014-12-20T20:58:18.521000Z",
  "films": [],
  "gravity": "1",
  "name": "Shili",
  "orbital_period": "unknown",
  "population": "unknown",
  "residents": [
    "https://swapi.build/api/people/78"
  ],
  "rotation_period": "unknown",
  "surface_water": "unknown",
  "terrain": "cities, savannahs, seas, plains",
  "url": "https://swapi.build/api/planets/58"
}