SWAPI GraphQL
Star Wars GraphQL API
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 视频
简介
SWAPI GraphQL 把星球大战数据作为 GraphQL API 暴露——免密钥。
注(2026-08 实测):URL 308 重定向到
/swapi-graphql/(HTTP 200)——请跟随重定向(curl -L)。
快速开始
GraphQL 查询(跟随重定向):
curl -L -X POST "https://graphql.org/swapi-graphql/" \
-H "Content-Type: application/json" \
-d '{"query": "{ allPeople { people { name } } }"}'
{ "data": { "allPeople": { "people": [ { "name": "Luke Skywalker" } ] } } }
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;请礼貌使用——没有公开的硬性限制。
- 基于 SWAPI 数据集的 GraphQL schema。
常见问题
SWAPI GraphQL 免费吗? 是的——免费且免密钥。
为什么 308?
URL 重定向到尾斜杠路径(已实测)——请用 curl -L。
什么格式? GraphQL。
视频 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| An API of Ice And Fire Game Of Thrones API | No auth | Yes | Unknown | ↗ |
| Bob's Burgers Bob's Burgers API | No auth | Yes | Yes | ↗ |
| Breaking Bad Breaking Bad API | No auth | Yes | Unknown | ↗ |
| Breaking Bad Quotes Some Breaking Bad quotes | No auth | Yes | Unknown | ↗ |
| Catalogopolis Doctor Who API | No auth | Yes | Unknown | ↗ |