freeapis

SWAPI

关于星球大战的一切

认证方式
No auth
HTTPS
Yes
CORS
Yes
分类
视频
数据来源
public-apis + marcelscruz

简介

SWAPI(swapi.tech)提供星球大战数据——人物、星球、电影、星舰——免密钥(实测可用)。

快速开始

人物(实测可用——卢克·天行者):

curl "https://www.swapi.tech/api/people/1"
{
  "message": "ok",
  "result": {
    "properties": { "name": "Luke Skywalker", "gender": "male", "height": "172", "mass": "77" }
  }
}

认证方式

无需认证——免密钥。

速率限制与注意事项

  • 免费;请礼貌使用——没有公开的硬性限制。
  • 资源:人物、星球、电影、物种、载具、星舰。
  • 注意:旧版 swapi.dev 已弃用,请用 swapi.tech。

常见问题

SWAPI 免费吗? 是的——免费且免密钥(实测)。

返回什么? 星球大战人物、星球、电影等。

swapi.dev 还是 swapi.tech? 请用 swapi.tech(当前版;swapi.dev 已弃用)。

视频 分类更多

APIAuthHTTPSCORS
An API of Ice And Fire

Game Of Thrones API

No authYesUnknown↗
Bob's Burgers

Bob's Burgers API

No authYesYes↗
Bob's Burgers API

The Bob's Burgers API contains data for hundreds of characters, episodes, running gags, and images from the show

No authYesUnknown↗
Breaking Bad

Breaking Bad API

No authYesUnknown↗
Breaking Bad Quotes

Some Breaking Bad quotes

No authYesUnknown↗