GET /starwars/starships/:id
按 SWAPI ID 获取特定 Star Wars 星舰的详细规格。返回星舰名称、型号、制造商、信用点成本、长度、船员数、乘客容量、货物容量、消耗品持续时间、超空间驱动等级、MGLT 速度和星舰等级。适用于 Star Wars 技术数据库、星舰比较工具和科幻舰队管理游戏。
id
必填
SWAPI starship ID
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
id |
是 | - | SWAPI starship ID |
curl https://nordapi.ee/api/v1/starwars/starships/9
curl https://nordapi.ee/api/v1/starwars/starships/9
curl https://nordapi.ee/api/v1/starwars/starships/10
curl https://nordapi.ee/api/v1/starwars/starships/12
{
"data": {
"cost_in_credits": "1000000000000",
"crew": "342,953",
"hyperdrive_rating": "4.0",
"length": "120000",
"manufacturer": "Imperial Department of Military Research, Sienar Fleet Systems",
"max_speed": "n/a",
"model": "DS-1 Orbital Battle Station",
"name": "Death Star",
"passengers": "843,342",
"starship_class": "Deep Space Mobile Battlestation"
},
"success": true
}