← Planets
Nal Hutta
Attributes
| Rotation period | 87 |
|---|---|
| Orbital period | 413 |
| Diameter | 12150 |
| Climate | temperate |
| Gravity | 1 standard |
| Terrain | urban, oceans, swamps, bogs |
| Surface water | unknown |
| Population | 7000000000 |
Related records
Residents
Use this record
curl
curl https://swapi.build/api/planets/24
JavaScript
fetch('https://swapi.build/api/planets/24').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/24').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":24}
GET /api/planets/24 200
{
"climate": "temperate",
"created": "2014-12-10T17:11:29.452000Z",
"diameter": "12150",
"edited": "2014-12-20T20:58:18.460000Z",
"films": [],
"gravity": "1 standard",
"name": "Nal Hutta",
"orbital_period": "413",
"population": "7000000000",
"residents": [
"https://swapi.build/api/people/16"
],
"rotation_period": "87",
"surface_water": "unknown",
"terrain": "urban, oceans, swamps, bogs",
"url": "https://swapi.build/api/planets/24"
}