How to hit the HP-API (Harry Potter) API

HP-API at https://hp-api.onrender.com/api lists Harry Potter characters, staff, students, and spells. It runs on a free host, so the first request after a quiet spell can be slow.

Authentication

None — no key, no signup. Every example runs as-is.

Full reference: https://hp-api.onrender.com/

Characters in a house

curl https://hp-api.onrender.com/api/characters/house/gryffindor
Run in PostTaco
Example response (trimmed)
[
  {
    "id": "9e3f7ce4-b9a7-4244-b709-dae5c1f1d4a8",
    "name": "Harry Potter",
    "alternate_names": [
      "The Boy Who Lived",
      "The Chosen One"
    ],
    "species": "human",
    "gender": "male",
    "house": "Gryffindor",
    "dateOfBirth": "31-07-1980",
    "yearOfBirth": 1980,
    "wizard": true,
    "ancestry": "half-blood",
    "eyeColour": "green",
    "hairColour": "black",
    "wand": {
      "wood": "holly",
      "core": "phoenix tail feather",
      "length": 11
    },
    "patronus": "stag",
    "hogwartsStudent": true
  },
  {
    "id": "4c7e6819-a91a-45b2-a454-f931e4a7cce3",
    "name": "Hermione Granger",
    "alternate_names": [
      "Hermy",
      "Know-it-all"
    ],
    "species": "human",
    "gender": "female",
    "house": "Gryffindor",
    "dateOfBirth": "19-09-1979",
    "yearOfBirth": 1979,
    "wizard": true,
    "ancestry": "muggleborn",
    "eyeColour": "brown",
    "hairColour": "brown",
    "wand": {
      "wood": "vine",
      "core": "dragon heartstring",
      "length": 10.75
    },
    "patronus": "otter",
    "hogwartsStudent": true
  }
]

Spells

curl https://hp-api.onrender.com/api/spells
Run in PostTaco
Example response (trimmed)
[
  {
    "id": "c76a2922-ba4c-4278-baab-44defb631236",
    "name": "Aberto",
    "description": "Opens locked doors"
  },
  {
    "id": "06485500-d023-4799-93fd-77f2c3341aa3",
    "name": "Accio",
    "description": "Summons objects"
  }
]