← Planets
Utapau
Attributes
| Rotation period | 27 |
|---|---|
| Orbital period | 351 |
| Diameter | 12900 |
| Climate | temperate, arid, windy |
| Gravity | 1 standard |
| Terrain | scrublands, savanna, canyons, sinkholes |
| Surface water | 0.9 |
| Population | 95000000 |
Related records
Residents
Films
Use this record
curl
curl https://swapi.build/api/planets/12
JavaScript
fetch('https://swapi.build/api/planets/12').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/12').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":12}
GET /api/planets/12 200
{
"climate": "temperate, arid, windy",
"created": "2014-12-10T12:49:01.491000Z",
"diameter": "12900",
"edited": "2014-12-20T20:58:18.439000Z",
"films": [
"https://swapi.build/api/films/6"
],
"gravity": "1 standard",
"name": "Utapau",
"orbital_period": "351",
"population": "95000000",
"residents": [
"https://swapi.build/api/people/83"
],
"rotation_period": "27",
"surface_water": "0.9",
"terrain": "scrublands, savanna, canyons, sinkholes",
"url": "https://swapi.build/api/planets/12"
}