SWAPI Planet

A planet within the Star Wars universe.

Star WarsOpen-SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Properties

Name Type Description
name string
rotation_period string Standard hours per rotation.
orbital_period string Standard days per orbit.
diameter string Diameter in kilometers.
climate string
gravity string
terrain string
surface_water string Percent of surface that is water.
population string
residents array
films array
created string
edited string
url string
View JSON Schema on GitHub

JSON Schema

swapi-planet-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swapi/main/json-schema/swapi-planet-schema.json",
  "title": "SWAPI Planet",
  "description": "A planet within the Star Wars universe.",
  "type": "object",
  "required": ["name", "url"],
  "properties": {
    "name": {"type": "string", "example": "Tatooine"},
    "rotation_period": {"type": "string", "description": "Standard hours per rotation.", "example": "23"},
    "orbital_period": {"type": "string", "description": "Standard days per orbit.", "example": "304"},
    "diameter": {"type": "string", "description": "Diameter in kilometers.", "example": "10465"},
    "climate": {"type": "string", "example": "arid"},
    "gravity": {"type": "string", "example": "1 standard"},
    "terrain": {"type": "string", "example": "desert"},
    "surface_water": {"type": "string", "description": "Percent of surface that is water.", "example": "1"},
    "population": {"type": "string", "example": "200000"},
    "residents": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "films": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "created": {"type": "string", "format": "date-time"},
    "edited": {"type": "string", "format": "date-time"},
    "url": {"type": "string", "format": "uri"}
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/swapi-planet"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.