/v1/book
The seven books (or one by id)
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/harrypotter-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/harrypotter-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/harrypotter-api/v1/book");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/harrypotter-api/v1/book",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"books": [
{
"id": "harry-potter-and-the-philosopher-s-stone",
"wiki": "https://harrypotter.fandom.com/wiki/Harry_Potter_and_the_Philosopher's_Stone",
"cover": "https://www.wizardingworld.com/images/products/books/UK/rectangle-1.jpg",
"pages": 223,
"title": "Harry Potter and the Philosopher's Stone",
"author": "J. K. Rowling",
"summary": "Harry Potter has never even heard of Hogwarts when the letters start dropping on the doormat at number four, Privet Drive. Addressed in green ink on yellowish parchment with a purple seal, they are swiftly confiscated by his grisly aunt and uncle. Then, on Harry's eleventh birthday, a great beetle-eyed giant of a man called Rubeus Hagrid bursts in with some astonishing news: Harry Potter is a wizard, and he has a place at Hogwarts School of Witchcraft and Wizardry. An incredible adventure is about to begin!",
"dedication": "For Jessica, who loves stories, for Anne, who loved them too, and for Di, who heard this one first",
"release_date": "1997-06-26"
},
{
"id": "harry-potter-and-the-chamber-of-secrets",
"wiki": "https://harrypotter.fandom.com/wiki/Harry_Potter_and_the_Chamber_of_Secrets",
"cover": "https://www.wizardingworld.com/images/products/books/UK/rectangle-2.jpg",
"pages": 251,
"title": "Harry Potter and the Chamber of Secrets",
"author": "J. K. Rowling",
"summary": "Harry Potter's summer has included the worst birthday ever, doomy warnings from a house-elf called Dobby, and rescue from the Dursleys by his friend Ron Weasley in a magical flying car! Back at Hogwarts School of Witchcraft And Wizardry for his second year, Harry hears strange whispers echo through empty corridors – and then the attacks start. Students are found as though turned to stone... Dobby's sinister predictions seem to be coming true.",
"dedication": "For Séan P. F. Harris, getaway driver and foul-weather friend",
"release_date": "1998-07-02"
},
{
"id": "harry-potter-and-the-prisoner-of-azkaban",
"wiki": "https://harrypotter.fandom.com/wiki/Harry_Potter_and_the_Prisoner_of_Azkaban",
"cover": "https://www.wizardingworld.com/images/products/books/UK/rectangle-3.jpg",
"pages": 317,
"title": "Harry Potter and the Prisoner of Azkaban",
"author": "J. K. Rowling",
"summary": "When the Knight Bus crashes through the darkness and screeches to a halt in front of him, it's the start of another far from ordinary year at Hogwarts for Harry Potter. Sirius Black, escaped mass-murderer and follower of Lord Voldemort, is on the run – and they say he is coming after Harry. In
…