← Planets
Mon Cala
Attributes
| Rotation period | 21 |
|---|---|
| Orbital period | 398 |
| Diameter | 11030 |
| Climate | temperate |
| Gravity | 1 |
| Terrain | oceans, reefs, islands |
| Surface water | 100 |
| Population | 27000000000 |
Related records
Residents
Use this record
curl
curl https://swapi.build/api/planets/31
JavaScript
fetch('https://swapi.build/api/planets/31').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/31').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":31}
GET /api/planets/31 200
{
"climate": "temperate",
"created": "2014-12-18T11:07:01.792000Z",
"diameter": "11030",
"edited": "2014-12-20T20:58:18.471000Z",
"films": [],
"gravity": "1",
"name": "Mon Cala",
"orbital_period": "398",
"population": "27000000000",
"residents": [
"https://swapi.build/api/people/27"
],
"rotation_period": "21",
"surface_water": "100",
"terrain": "oceans, reefs, islands",
"url": "https://swapi.build/api/planets/31"
}