← Planets
Yavin IV
Attributes
| Rotation period | 24 |
|---|---|
| Orbital period | 4818 |
| Diameter | 10200 |
| Climate | temperate, tropical |
| Gravity | 1 standard |
| Terrain | jungle, rainforests |
| Surface water | 8 |
| Population | 1000 |
Related records
Films
Use this record
curl
curl https://swapi.build/api/planets/3
JavaScript
fetch('https://swapi.build/api/planets/3').then((r) => r.json())
Python
requests.get('https://swapi.build/api/planets/3').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":3}
GET /api/planets/3 200
{
"climate": "temperate, tropical",
"created": "2014-12-10T11:37:19.144000Z",
"diameter": "10200",
"edited": "2014-12-20T20:58:18.421000Z",
"films": [
"https://swapi.build/api/films/1"
],
"gravity": "1 standard",
"name": "Yavin IV",
"orbital_period": "4818",
"population": "1000",
"residents": [],
"rotation_period": "24",
"surface_water": "8",
"terrain": "jungle, rainforests",
"url": "https://swapi.build/api/planets/3"
}