← Planets

Ord Mantell

Rotation period26
Orbital period334
Diameter14050
Climatetemperate
Gravity1 standard
Terrainplains, seas, mesas
Surface water10
Population4000000000

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/27').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":27}
GET /api/planets/27 200
{
  "climate": "temperate",
  "created": "2014-12-15T12:23:41.661000Z",
  "diameter": "14050",
  "edited": "2014-12-20T20:58:18.464000Z",
  "films": [
    "https://swapi.build/api/films/2"
  ],
  "gravity": "1 standard",
  "name": "Ord Mantell",
  "orbital_period": "334",
  "population": "4000000000",
  "residents": [],
  "rotation_period": "26",
  "surface_water": "10",
  "terrain": "plains, seas, mesas",
  "url": "https://swapi.build/api/planets/27"
}