← Planets
Haruun Kal
Attributes
| Rotation period | 25 |
|---|---|
| Orbital period | 383 |
| Diameter | 10120 |
| Climate | temperate |
| Gravity | 0.98 |
| Terrain | toxic cloudsea, plateaus, volcanoes |
| Surface water | unknown |
| Population | 705300 |
Related records
Residents
Use this record
curl
curl https://swapi.build/api/planets/42
JavaScript
fetch('https://swapi.build/api/planets/42').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/42').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":42}
GET /api/planets/42 200
{
"climate": "temperate",
"created": "2014-12-20T10:12:28.980000Z",
"diameter": "10120",
"edited": "2014-12-20T20:58:18.491000Z",
"films": [],
"gravity": "0.98",
"name": "Haruun Kal",
"orbital_period": "383",
"population": "705300",
"residents": [
"https://swapi.build/api/people/51"
],
"rotation_period": "25",
"surface_water": "unknown",
"terrain": "toxic cloudsea, plateaus, volcanoes",
"url": "https://swapi.build/api/planets/42"
}