freeapis

SWAPI GraphQL

Star Wars GraphQL API

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

简介

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。

视频 分类更多

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↗