← Planets

Geonosis

Rotation period30
Orbital period256
Diameter11370
Climatetemperate, arid
Gravity0.9 standard
Terrainrock, desert, mountain, barren
Surface water5
Population100000000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/11').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":11}
GET /api/planets/11 200
{
  "climate": "temperate, arid",
  "created": "2014-12-10T12:47:22.350000Z",
  "diameter": "11370",
  "edited": "2014-12-20T20:58:18.437000Z",
  "films": [
    "https://swapi.build/api/films/5"
  ],
  "gravity": "0.9 standard",
  "name": "Geonosis",
  "orbital_period": "256",
  "population": "100000000000",
  "residents": [
    "https://swapi.build/api/people/63"
  ],
  "rotation_period": "30",
  "surface_water": "5",
  "terrain": "rock, desert, mountain, barren",
  "url": "https://swapi.build/api/planets/11"
}