Books

All seven Harry Potter novels, with chapter listings.

All 7 novels by J.K. Rowling, including a full chapter listing for each.

ListGET /api/books
SingleGET /api/books/{slug}
Records7

Fields

idrequiredstring
Same as slug. Stable identifier.
slugrequiredstring
URL-safe identifier, e.g. harry-potter-and-the-goblet-of-fire.
titlerequiredstring
Full published title.
summaryrequiredstring
Blurb describing the plot.
authorrequiredstring
Always J. K. Rowling.
release_daterequiredstring
ISO 8601 date, e.g. 1997-06-26.
dedicationrequiredstring
The book's printed dedication.
pagesrequiredinteger
Page count of the original edition.
coverrequiredstring
URL of the cover image.
chaptersrequiredarray
Ordered chapter list. Each entry has order, title and summary.
wikirequiredstring
Link to the Fandom wiki article.

Examples

curl
JavaScript
curl https://hogwarts-api.com/api/books
curl https://hogwarts-api.com/api/books/harry-potter-and-the-philosopher-s-stone
curl "https://hogwarts-api.com/api/books?search=azkaban"
{
  "data": {
    "id": "harry-potter-and-the-philosopher-s-stone",
    "slug": "harry-potter-and-the-philosopher-s-stone",
    "title": "Harry Potter and the Philosopher's Stone",
    "author": "J. K. Rowling",
    "release_date": "1997-06-26",
    "pages": 223,
    "chapters": [
      { "order": 1, "title": "The Boy Who Lived", "summary": "In the first chapter…" }
    ]
  }
}