Zum Inhalt springen
GET /v1/book

The seven books (or one by id)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/harrypotter-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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 
…