Appearance

Physical appearance attributes for a character.

Games And ComicsSuperheroesComic BooksOpen SourceStatic APIGitHub PagesPublic APIs

Properties

Name Type Description
gender string
race stringnull
height array Height pair: imperial then metric (e.g. ["6'8", "203 cm"]).
weight array Weight pair: imperial then metric (e.g. ["980 lb", "441 kg"]).
eyeColor string
hairColor string
View JSON Schema on GitHub

JSON Schema

superheroes-appearance-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://akabab.github.io/superhero-api/api/appearance-schema.json",
  "title": "Appearance",
  "description": "Physical appearance attributes for a character.",
  "type": "object",
  "properties": {
    "gender":    { "type": "string" },
    "race":      { "type": ["string", "null"] },
    "height":    { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2,
                   "description": "Height pair: imperial then metric (e.g. [\"6'8\", \"203 cm\"])." },
    "weight":    { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2,
                   "description": "Weight pair: imperial then metric (e.g. [\"980 lb\", \"441 kg\"])." },
    "eyeColor":  { "type": "string" },
    "hairColor": { "type": "string" }
  }
}