Μετάβαση στο περιεχόμενο
GET /v1/chapters

A book chapters (subpages)

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/wikibooks-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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",
    
…