← Planets

Bestine IV

Rotation period26
Orbital period680
Diameter6400
Climatetemperate
Gravityunknown
Terrainrocky islands, oceans
Surface water98
Population62000000

Residents

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/planets/26').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":26}
GET /api/planets/26 200
{
  "climate": "temperate",
  "created": "2014-12-12T11:16:55.078000Z",
  "diameter": "6400",
  "edited": "2014-12-20T20:58:18.463000Z",
  "films": [],
  "gravity": "unknown",
  "name": "Bestine IV",
  "orbital_period": "680",
  "population": "62000000",
  "residents": [
    "https://swapi.build/api/people/19"
  ],
  "rotation_period": "26",
  "surface_water": "98",
  "terrain": "rocky islands, oceans",
  "url": "https://swapi.build/api/planets/26"
}