← Planets

Kamino

Rotation period27
Orbital period463
Diameter19720
Climatetemperate
Gravity1 standard
Terrainocean
Surface water100
Population1000000000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/10').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":10}
GET /api/planets/10 200
{
  "climate": "temperate",
  "created": "2014-12-10T12:45:06.577000Z",
  "diameter": "19720",
  "edited": "2014-12-20T20:58:18.434000Z",
  "films": [
    "https://swapi.build/api/films/5"
  ],
  "gravity": "1 standard",
  "name": "Kamino",
  "orbital_period": "463",
  "population": "1000000000",
  "residents": [
    "https://swapi.build/api/people/22",
    "https://swapi.build/api/people/72",
    "https://swapi.build/api/people/73"
  ],
  "rotation_period": "27",
  "surface_water": "100",
  "terrain": "ocean",
  "url": "https://swapi.build/api/planets/10"
}