← Planets
Bespin
Attributes
| Rotation period | 12 |
|---|---|
| Orbital period | 5110 |
| Diameter | 118000 |
| Climate | temperate |
| Gravity | 1.5 (surface), 1 standard (Cloud City) |
| Terrain | gas giant |
| Surface water | 0 |
| Population | 6000000 |
Related records
Residents
Films
Use this record
curl
curl https://swapi.build/api/planets/6
JavaScript
fetch('https://swapi.build/api/planets/6').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/6').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":6}
GET /api/planets/6 200
{
"climate": "temperate",
"created": "2014-12-10T11:43:55.240000Z",
"diameter": "118000",
"edited": "2014-12-20T20:58:18.427000Z",
"films": [
"https://swapi.build/api/films/2"
],
"gravity": "1.5 (surface), 1 standard (Cloud City)",
"name": "Bespin",
"orbital_period": "5110",
"population": "6000000",
"residents": [
"https://swapi.build/api/people/26"
],
"rotation_period": "12",
"surface_water": "0",
"terrain": "gas giant",
"url": "https://swapi.build/api/planets/6"
}