← Planets
Corellia
Attributes
| Rotation period | 25 |
|---|---|
| Orbital period | 329 |
| Diameter | 11000 |
| Climate | temperate |
| Gravity | 1 standard |
| Terrain | plains, urban, hills, forests |
| Surface water | 70 |
| Population | 3000000000 |
Related records
Residents
Use this record
curl
curl https://swapi.build/api/planets/22
JavaScript
fetch('https://swapi.build/api/planets/22').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/22').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":22}
GET /api/planets/22 200
{
"climate": "temperate",
"created": "2014-12-10T16:49:12.453000Z",
"diameter": "11000",
"edited": "2014-12-20T20:58:18.456000Z",
"films": [],
"gravity": "1 standard",
"name": "Corellia",
"orbital_period": "329",
"population": "3000000000",
"residents": [
"https://swapi.build/api/people/14",
"https://swapi.build/api/people/18"
],
"rotation_period": "25",
"surface_water": "70",
"terrain": "plains, urban, hills, forests",
"url": "https://swapi.build/api/planets/22"
}