I found an API that returns data from the Harry Potter universe:

https://github.com/MossPiglets/WizardWorldAPI

And you can try it here! ⏬

https://editor.p5js.org/shawnliu0327/full/D_w4dpYcT

Key Features:

Usage Instructions:

  1. Enter a Term: Use the search box to enter a search term like the name of an elixir, spell, wizard, or ingredient. For example, you can search for “Polyjuice” or “Expelliarmus.”
  2. Select a Category: Choose the type of magical data you want to explore:
  3. Click Search: Press the "Search" button to retrieve the results from the API. The results will display in a list below the search form.
  4. More Details: For each result, there is a "more" button. Clicking this button will reveal additional information such as the elixir's side effects, a spell’s incantation, or details about a specific wizard.