/v1/chapters
A book chapters (subpages)
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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",
…