Zum Inhalt springen
GET /v1/chapters

A book chapters (subpages)

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/wikibooks-api/v1/chapters" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wikibooks-api/v1/chapters", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wikibooks-api/v1/chapters");
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/wikibooks-api/v1/chapters",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "book": "Python Programming",
        "count": 82,
        "chapters": [
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FOperators",
                "title": "Python Programming/Operators",
                "chapter": "Operators"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FClasses",
                "title": "Python Programming/Classes",
                "chapter": "Classes"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FPrint_version",
                "title": "Python Programming/Print version",
                "chapter": "Print version"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FLists",
                "title": "Python Programming/Lists",
                "chapter": "Lists"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FInput_and_Output",
                "title": "Python Programming/Input and Output",
                "chapter": "Input and Output"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FStrings",
                "title": "Python Programming/Strings",
                "chapter": "Strings"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FGetting_Python",
                "title": "Python Programming/Getting Python",
                "chapter": "Getting Python"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FTkinter",
                "title": "Python Programming/Tkinter",
                "chapter": "Tkinter"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FFunctions",
                "title": "Python Programming/Functions",
                "chapter": "Functions"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FControl_Flow",
                "title": "Python Programming/Control Flow",
                "chapter": "Control Flow"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FVersion_history",
                "title": "Python Programming/Version history",
                "chapter": "Version history"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FExcel",
                "title": "Python Programming/Excel",
                "chapter": "Excel"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FData_Types",
                "title": "Python Programming/Data Types",
                "chapter": "Data Types"
            },
            {
                "url": "https://en.wikibooks.org/wiki/Python_Programming%2FGUI_Programming",
    
…