← Planets
Dagobah
Attributes
| Rotation period | 23 |
|---|---|
| Orbital period | 341 |
| Diameter | 8900 |
| Climate | murky |
| Gravity | N/A |
| Terrain | swamp, jungles |
| Surface water | 8 |
| Population | unknown |
Related records
Use this record
curl
curl https://swapi.build/api/planets/5
JavaScript
fetch('https://swapi.build/api/planets/5').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/5').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":5}
GET /api/planets/5 200
{
"climate": "murky",
"created": "2014-12-10T11:42:22.590000Z",
"diameter": "8900",
"edited": "2014-12-20T20:58:18.425000Z",
"films": [
"https://swapi.build/api/films/2",
"https://swapi.build/api/films/3",
"https://swapi.build/api/films/6"
],
"gravity": "N/A",
"name": "Dagobah",
"orbital_period": "341",
"population": "unknown",
"residents": [],
"rotation_period": "23",
"surface_water": "8",
"terrain": "swamp, jungles",
"url": "https://swapi.build/api/planets/5"
}